]> git.dujemihanovic.xyz Git - linux.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)
commit28f091bc2f8c23b7eac2402956b692621be7f9f4
tree4dc5d9c7f1f4b6f33ba0401fa2dcc3f1129ccd4b
parent4b85c921cd393764d22c0cdab6d7d5d120aa0980
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