diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-03-03 00:56:23 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-16 17:58:09 +0100 |
commit | cfc481810c903a5f74e5c7bf50ca8e28318dbc44 (patch) | |
tree | 2f618589dd4f45024f5211dd0e9a627c24b354b7 /mm | |
parent | KVM: VMX: Add helpers to query Intel PT mode (diff) | |
download | linux-cfc481810c903a5f74e5c7bf50ca8e28318dbc44.tar.xz linux-cfc481810c903a5f74e5c7bf50ca8e28318dbc44.zip |
KVM: x86: Calculate the supported xcr0 mask at load time
Add a new global variable, supported_xcr0, to track which xcr0 bits can
be exposed to the guest instead of calculating the mask on every call.
The supported bits are constant for a given instance of KVM.
This paves the way toward eliminating the ->mpx_supported() call in
kvm_mpx_supported(), e.g. eliminates multiple retpolines in VMX's nested
VM-Enter path, and eventually toward eliminating ->mpx_supported()
altogether.
No functional change intended.
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions