diff options
author | John Allen <john.allen@amd.com> | 2019-12-19 14:17:59 -0600 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-01-27 19:59:35 +0100 |
commit | a47970ed74a535b1accb4bc73643fd5a93993c3e (patch) | |
tree | 31d40bc27e0c957f81ab4ce892ec9c20ad480167 /arch/x86/kvm/vmx/vmx.c | |
parent | KVM: Move vcpu->run page allocation out of kvm_vcpu_init() (diff) | |
download | linux-dev-a47970ed74a535b1accb4bc73643fd5a93993c3e.tar.xz linux-dev-a47970ed74a535b1accb4bc73643fd5a93993c3e.zip |
kvm/svm: PKU not currently supported
Current SVM implementation does not have support for handling PKU. Guests
running on a host with future AMD cpus that support the feature will read
garbage from the PKRU register and will hit segmentation faults on boot as
memory is getting marked as protected that should not be. Ensure that cpuid
from SVM does not advertise the feature.
Signed-off-by: John Allen <john.allen@amd.com>
Cc: stable@vger.kernel.org
Fixes: 0556cbdc2fbc ("x86/pkeys: Don't check if PKRU is zero before writing it")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | arch/x86/kvm/vmx/vmx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 2134726b0442..5415cd40678c 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -7849,6 +7849,7 @@ static struct kvm_x86_ops vmx_x86_ops __ro_after_init = { .xsaves_supported = vmx_xsaves_supported, .umip_emulated = vmx_umip_emulated, .pt_supported = vmx_pt_supported, + .pku_supported = vmx_pku_supported, .request_immediate_exit = vmx_request_immediate_exit, |