]> 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)
commit111c23576e0312b4307e064f2bcfd28ea2a47e8d
tree4dc5d9c7f1f4b6f33ba0401fa2dcc3f1129ccd4b
parent536e203d8d08ed4096388a6618d7808a159cd3f2
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