]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: shadow nested paging does not have PKU
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Nov 2021 18:01:37 +0000 (13:01 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Nov 2021 08:09:26 +0000 (03:09 -0500)
commit8cadb3452503c093bc0017cf777d5a2ae52ad519
tree4dc5d9c7f1f4b6f33ba0401fa2dcc3f1129ccd4b
parent7b2667590d8f4f3aa3923fd83bedd1d1be279f75
KVM: MMU: shadow nested paging does not have PKU

Initialize the mask for PKU permissions as if CR4.PKE=0, avoiding
incorrect interpretations of the nested hypervisor's page tables.

Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c