diff options
| author | Sean Christopherson <[email protected]> | 2024-11-28 00:43:42 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2024-12-22 18:00:25 +0000 |
| commit | 05a518b49dd6f674cd0b1fe1eb6c8f9c3953b63d (patch) | |
| tree | a4942b16676f2cc6822a6cc0361961f807cb97c7 /net/unix/af_unix.c | |
| parent | KVM: x86: Move "emulate hypercall" function declarations to x86.h (diff) | |
| download | kernel-05a518b49dd6f674cd0b1fe1eb6c8f9c3953b63d.tar.gz kernel-05a518b49dd6f674cd0b1fe1eb6c8f9c3953b63d.zip | |
KVM: x86: Bump hypercall stat prior to fully completing hypercall
Increment the "hypercalls" stat for KVM hypercalls as soon as KVM knows
it will skip the guest instruction, i.e. once KVM is committed to emulating
the hypercall. Waiting until completion adds no known value, and creates a
discrepancy where the stat will be bumped if KVM exits to userspace as a
result of trying to skip the instruction, but not if the hypercall itself
exits.
Handling the stat in common code will also avoid the need for another
helper to dedup code when TDX comes along (TDX needs a separate completion
path due to GPR usage differences).
Signed-off-by: Sean Christopherson <[email protected]>
Reviewed-by: Binbin Wu <[email protected]>
Reviewed-by: Kai Huang <[email protected]>
Reviewed-by: Tom Lendacky <[email protected]>
Reviewed-by: Xiaoyao Li <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
