]> 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)
commit5114c6c6c30023c7d22dbc3de568e44e4fadafe2
tree5d395dee638386809fe454801cab262211a9e3fe
parente0cedcec19eba0830946e2ed5351a1a4337d74d6
KVM: nSVM: CR3 MBZ bits are only 63:52

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

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