]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nSVM: Check that MBZ bits in CR3 and CR4 are not set on vmrun of nested guests
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Wed, 8 Jul 2020 00:39:56 +0000 (00:39 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:59 +0000 (16:21 -0400)
commit522a43512ef161e6601b6eb41d05c593674a3b75
treeced456fa86e62cae7839526c65627c22048597b5
parent26d3dc56586a5ad3529e12317d0ad90b4348b613
KVM: nSVM: Check that MBZ bits in CR3 and CR4 are not set on vmrun of nested guests

According to section "Canonicalization and Consistency Checks" in APM vol. 2
the following guest state is illegal:

    "Any MBZ bit of CR3 is set."
    "Any MBZ bit of CR4 is set."

Suggeted-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Message-Id: <1594168797-29444-3-git-send-email-krish.sadhukhan@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.h
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h