KVM: x86: Inject #GP if guest attempts to set unsupported EFER bits
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 2 Apr 2019 15:19:16 +0000 (08:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Apr 2019 13:39:07 +0000 (15:39 +0200)
commit0a62956312e9dcd0ce5c59be4f0a8d8292a62402
treea9587e54b5bf3e4fe9fc70e9b9c08c47909cce41
parent11988499e62b310f3bf6f6d0a807a06d3f9ccc96
KVM: x86: Inject #GP if guest attempts to set unsupported EFER bits

EFER.LME and EFER.NX are considered reserved if their respective feature
bits are not advertised to the guest.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c