]> git.dujemihanovic.xyz Git - linux.git/commit
KVM: X86: Fix when shadow_root_level=5 && guest root_level<4
authorLai Jiangshan <laijs@linux.alibaba.com>
Wed, 24 Nov 2021 12:20:43 +0000 (20:20 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Nov 2021 13:14:20 +0000 (08:14 -0500)
commit12ec33a705749e18d9588b0a0e69e02821371156
treeea67d45478d6ec40f7c0d3cacdd0fdfdbef1270e
parent908fa88e420f30dde6d80f092795a18ec72ca6d3
KVM: X86: Fix when shadow_root_level=5 && guest root_level<4

If the is an L1 with nNPT in 32bit, the shadow walk starts with
pae_root.

Fixes: a717a780fc4e ("KVM: x86/mmu: Support shadowing NPT when 5-level paging is enabled in host)
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Message-Id: <20211124122055.64424-2-jiangshanlai@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c