public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: x86: Check hypercall's exit to userspace generically
@ 2024-07-08  9:21 Binbin Wu
  2024-07-08  9:21 ` [PATCH 1/2] " Binbin Wu
  2024-07-08  9:21 ` [PATCH 2/2] KVM: x86: Use is_kvm_hc_exit_enabled() instead of opencode Binbin Wu
  0 siblings, 2 replies; 5+ messages in thread
From: Binbin Wu @ 2024-07-08  9:21 UTC (permalink / raw)
  To: kvm, linux-kernel
  Cc: pbonzini, seanjc, isaku.yamahata, michael.roth, binbin.wu

Currently in kvm_emulate_hypercall, KVM_HC_MAP_GPA_RANGE is checked
specifically to decide whether a KVM hypercall needs to exit to userspace
or not.  Do the check based on the hypercall_exit_enabled field of
struct kvm_arch.

Also use the API is_kvm_hc_exit_enabled() to replace the opencode.

Binbin Wu (2):
  KVM: x86: Check hypercall's exit to userspace generically
  KVM: x86: Use is_kvm_hc_exit_enabled() instead of opencode

 arch/x86/kvm/svm/sev.c | 4 ++--
 arch/x86/kvm/x86.c     | 6 +++---
 arch/x86/kvm/x86.h     | 4 ++++
 3 files changed, 9 insertions(+), 5 deletions(-)


base-commit: 771df9ffadb8204e61d3e98f36c5067102aab78f
-- 
2.43.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-26  2:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-08  9:21 [PATCH 0/2] KVM: x86: Check hypercall's exit to userspace generically Binbin Wu
2024-07-08  9:21 ` [PATCH 1/2] " Binbin Wu
2024-07-24 13:48   ` kernel test robot
2024-07-26  2:11     ` Binbin Wu
2024-07-08  9:21 ` [PATCH 2/2] KVM: x86: Use is_kvm_hc_exit_enabled() instead of opencode Binbin Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox