KVM: nSVM: CR3 MBZ bits are only 63:52
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Sat, 29 Aug 2020 00:48:22 +0000 (00:48 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:23 +0000 (07:57 -0400)
commitfb0f33fdefe9f473dc5f7b71345096c8d60ab9dd
tree5d395dee638386809fe454801cab262211a9e3fe
parenta9e2e0ae686094571378c72d8146b5a1a92d0652
KVM: nSVM: CR3 MBZ bits are only 63:52

Commit 761e4169346553c180bbd4a383aedd72f905bc9a created a wrong mask for the
CR3 MBZ bits. According to APM vol 2, only the upper 12 bits are MBZ.

Fixes: 761e41693465 ("KVM: nSVM: Check that MBZ bits in CR3 and CR4 are not set on vmrun of nested guests", 2020-07-08)
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Message-Id: <20200829004824.4577-2-krish.sadhukhan@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.h