]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: nVMX: Fix nested_vmx_check_msr_bitmap_controls
authorJim Mattson <jmattson@google.com>
Thu, 6 Jul 2017 23:33:07 +0000 (16:33 -0700)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 12 Jul 2017 16:41:12 +0000 (18:41 +0200)
commit5fa99cbe7b666dce6dd8ac55b253778893b9c5df
tree07f4e3fb2a1b6f2a7157dde29dacedd7d12df9c7
parent56a205100d3933f785ca970c58aecedd94ff90b2
kvm: nVMX: Fix nested_vmx_check_msr_bitmap_controls

Allow the L1 guest to specify the last page of addressable guest
physical memory for an L2 MSR permission bitmap. Also remove the
vmcs12_read_any() check that should never fail.

Fixes: 3af18d9c5fe95 ("KVM: nVMX: Prepare for using hardware MSR bitmap")
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c