]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
kvm: arm/arm64: Fix stage2_flush_memslot for 4 level page table
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 26 Sep 2018 16:32:37 +0000 (17:32 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Nov 2019 04:59:27 +0000 (23:59 -0500)
commitde469c60e19540d6a3adc5698740f4c95ed4f7b0
tree1501d5b821978c78d8f85ef079491d27485bdf01
parent07313520b3947623ef4c4ec12b2a377674f46be3
kvm: arm/arm64: Fix stage2_flush_memslot for 4 level page table

BugLink: https://bugs.launchpad.net/bugs/1854216
[ Upstream commit d2db7773ba864df6b4e19643dfc54838550d8049 ]

So far we have only supported 3 level page table with fixed IPA of
40bits, where PUD is folded. With 4 level page tables, we need
to check if the PUD entry is valid or not. Fix stage2_flush_memslot()
to do this check, before walking down the table.

Acked-by: Christoffer Dall <cdall@kernel.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
virt/kvm/arm/mmu.c