File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -576,6 +576,7 @@ struct kvm_vcpu_stat {
576
576
u64 wfi_exit_stat ;
577
577
u64 mmio_exit_user ;
578
578
u64 mmio_exit_kernel ;
579
+ u64 signal_exits ;
579
580
u64 exits ;
580
581
};
581
582
Original file line number Diff line number Diff line change @@ -783,6 +783,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
783
783
if (signal_pending (current )) {
784
784
ret = - EINTR ;
785
785
run -> exit_reason = KVM_EXIT_INTR ;
786
+ ++ vcpu -> stat .signal_exits ;
786
787
}
787
788
788
789
/*
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ const struct _kvm_stats_desc kvm_vcpu_stats_desc[] = {
50
50
STATS_DESC_COUNTER (VCPU , wfi_exit_stat ),
51
51
STATS_DESC_COUNTER (VCPU , mmio_exit_user ),
52
52
STATS_DESC_COUNTER (VCPU , mmio_exit_kernel ),
53
+ STATS_DESC_COUNTER (VCPU , signal_exits ),
53
54
STATS_DESC_COUNTER (VCPU , exits )
54
55
};
55
56
static_assert (ARRAY_SIZE (kvm_vcpu_stats_desc ) ==
You can’t perform that action at this time.
0 commit comments