diff options
author | Binbin Wu <binbin.wu@linux.intel.com> | 2024-11-28 03:43:40 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-22 21:00:25 +0300 |
commit | c4c083d95105445ebf1cadfb7d05dd2630976241 (patch) | |
tree | 03ab07a860124c8a178ada6f62862144f6cf76f1 /tools/perf/scripts/python/stackcollapse.py | |
parent | 9a1dfeff4414112ce89652a5017538016ccd656c (diff) | |
download | linux-c4c083d95105445ebf1cadfb7d05dd2630976241.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions