KVM: nSVM: Check for CR0.CD and CR0.NW on VMRUN of nested guests
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Thu, 9 Apr 2020 20:50:33 +0000 (16:50 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Apr 2020 13:13:10 +0000 (09:13 -0400)
commit4f233371f6bb1578340b6c7034ddf7b76606d4ae
treee36ba16d940f239cfcca574773baf3179f156bc9
parenta9ab13ff6e844ad5b3ed39339e6db9a76bb539ad
KVM: nSVM: Check for CR0.CD and CR0.NW on VMRUN of nested guests

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

"CR0.CD is zero and CR0.NW is set"

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Message-Id: <20200409205035.16830-2-krish.sadhukhan@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c