]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: nVMX: check host CR3 on vmentry and vmexit
authorLadi Prosek <lprosek@redhat.com>
Wed, 30 Nov 2016 15:03:11 +0000 (16:03 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 Dec 2016 14:31:10 +0000 (15:31 +0100)
commit1dc35dacc16b4f13547125c5df2d026d9e46ea01
treeb65c2fffe3be59f812ab38da97b73e249657ce8f
parent9ed38ffad47316dbdc16de0de275868c7771754d
KVM: nVMX: check host CR3 on vmentry and vmexit

This commit adds missing host CR3 checks. Before entering guest mode, the value
of CR3 is checked for reserved bits. After returning, nested_vmx_load_cr3 is
called to set the new CR3 value and check and load PDPTRs.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/include/uapi/asm/vmx.h
arch/x86/kvm/vmx.c