]> git.baikalelectronics.ru Git - kernel.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)
commitdb6dd73f5370a32ec5976da949237bc599836e78
treeea67d45478d6ec40f7c0d3cacdd0fdfdbef1270e
parent74c711f126032ffdf9370e52c075ab55fd6b5f04
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: 8276afa6dc25 ("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