]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf8b79624b9c3a2f82397258cb1aa9170ea381fe1
tree5d395dee638386809fe454801cab262211a9e3fe
parent389bb7cad4cf33809f6b8acc40e8ae8b03e73532
KVM: nSVM: CR3 MBZ bits are only 63:52

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

Fixes: b173fd358779 ("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