]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Disable intercept for FS/GS base MSRs in vmcs02 when possible
authorSean Christopherson <sean.j.christopherson@xxxxxxxxx>
Wed, 8 May 2019 14:32:15 +0000 (07:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 May 2019 20:53:44 +0000 (22:53 +0200)
commitb0b80cca0cf29a1fb210c2a6f5d5f9a76b88e03a
treee054df4261c2403c98fca18cd31ce47c52af71fc
parentc686c2e71fcd69e156d142083670b97f675b9585
KVM: nVMX: Disable intercept for FS/GS base MSRs in vmcs02 when possible

If L1 is using an MSR bitmap, unconditionally merge the MSR bitmaps from
L0 and L1 for MSR_{KERNEL,}_{FS,GS}_BASE.  KVM unconditionally exposes
MSRs L1.  If KVM is also running in L1 then it's highly likely L1 is
also exposing the MSRs to L2, i.e. KVM doesn't need to intercept L2
accesses.

Based on code from Jintack Lim.

Cc: Jintack Lim <jintack@xxxxxxxxxxxxxxx>
Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c