]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
KVM: nVMX: Write ENCLS-exiting bitmap once per vmcs02
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 7 May 2019 16:06:29 +0000 (09:06 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:46:53 +0000 (11:46 +0200)
commitc538d57f6726022f9810bfbb52c4696cfdaf10a7
tree796fb336fcab2726b3b87f7694db209450e6f733
parent3b013a2972d5bc344d6eaa8f24fdfe268211e45f
KVM: nVMX: Write ENCLS-exiting bitmap once per vmcs02

KVM doesn't yet support SGX virtualization, i.e. writes a constant value
to ENCLS_EXITING_BITMAP so that it can intercept ENCLS and inject a #UD.

Fixes: 0b665d3040281 ("KVM: vmx: Inject #UD for SGX ENCLS instruction in guest")
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c