diff options
author | Sean Christopherson | 2023-06-01 18:19:19 -0700 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-06-09 10:34:27 +0200 |
commit | 5f4d3810ca9c0304850ddfed360a49b01125bc17 (patch) | |
tree | 56fd50707d5124afdf0c9c3ceca6c29a3e6c7aa8 /arch/x86/um/syscalls_64.c | |
parent | b1d5667afad146cb4109d41ca7b85b0ad451166b (diff) |
KVM: x86: Account fastpath-only VM-Exits in vCPU stats
commit 8b703a49c9df5e74870381ad7ba9c85d8a74ed2c upstream.
Increment vcpu->stat.exits when handling a fastpath VM-Exit without
going through any part of the "slow" path. Not bumping the exits stat
can result in wildly misleading exit counts, e.g. if the primary reason
the guest is exiting is to program the TSC deadline timer.
Fixes: 404d5d7bff0d ("KVM: X86: Introduce more exit_fastpath_completion enum values")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230602011920.787844-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/um/syscalls_64.c')
0 files changed, 0 insertions, 0 deletions