KVM: x86: Add a helper to check for user interception of KVM hypercalls
Add and use user_exit_on_hypercall() to check if userspace wants to handle a KVM hypercall instead of open-coding the logic everywhere. No functional change intended. Signed-off-by:Binbin Wu <binbin.wu@linux.intel.com> Reviewed-by:
Isaku Yamahata <isaku.yamahata@intel.com> Reviewed-by:
Kai Huang <kai.huang@intel.com> Reviewed-by:
Xiaoyao Li <xiaoyao.li@intel.com> [sean: squash into one patch, keep explicit KVM_HC_MAP_GPA_RANGE check] Signed-off-by:
Sean Christopherson <seanjc@google.com> Reviewed-by:
Tom Lendacky <thomas.lendacky@amd.com> Message-ID: <20241128004344.4072099-3-seanjc@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Loading
Please register or sign in to comment