summaryrefslogtreecommitdiff
path: root/scripts/file-size.sh
diff options
context:
space:
mode:
authorMarc Orr <marcorr@google.com>2019-04-01 23:56:00 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2019-04-05 21:08:30 +0200
commitc73f4c998e1fd4249b9edfa39e23f4fda2b9b041 (patch)
treeedc7161946e921978f8f5050c99f0e881de60900 /scripts/file-size.sh
parentacff78477b9b4f26ecdf65733a4ed77fe837e9dc (diff)
KVM: x86: nVMX: fix x2APIC VTPR read intercept
Referring to the "VIRTUALIZING MSR-BASED APIC ACCESSES" chapter of the SDM, when "virtualize x2APIC mode" is 1 and "APIC-register virtualization" is 0, a RDMSR of 808H should return the VTPR from the virtual APIC page. However, for nested, KVM currently fails to disable the read intercept for this MSR. This means that a RDMSR exit takes precedence over "virtualize x2APIC mode", and KVM passes through L1's TPR to L2, instead of sourcing the value from L2's virtual APIC page. This patch fixes the issue by disabling the read intercept, in VMCS02, for the VTPR when "APIC-register virtualization" is 0. The issue described above and fix prescribed here, were verified with a related patch in kvm-unit-tests titled "Test VMX's virtualize x2APIC mode w/ nested". Signed-off-by: Marc Orr <marcorr@google.com> Reviewed-by: Jim Mattson <jmattson@google.com> Fixes: c992384bde84f ("KVM: vmx: speed up MSR bitmap merge") Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/file-size.sh')
0 files changed, 0 insertions, 0 deletions