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)
commit761e4169346553c180bbd4a383aedd72f905bc9a
treeced456fa86e62cae7839526c65627c22048597b5
parent53efe527ca4a4432d17c693efde6eec56fb43ebb
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