[PATCH v2] KVM: arm/arm64: Check memslot bounds before mapping hugepages

2018-09-26 Thread Lukas Braun
memslots. Consequently, this patch adds a bounds check when populating guest page tables and forces the creation of regular PTEs if mapping an entire hugepage would violate the memslots bounds. Signed-off-by: Lukas Braun --- Hi everyone, for v2, in addition to writing the condition the way Marc

[PATCH] KVM: arm/arm64: Check memslot bounds before mapping hugepages

2018-09-04 Thread Lukas Braun
memslots. Consequently, this patch adds a bounds check when populating guest page tables and forces the creation of regular PTEs if mapping an entire hugepage would violate the memslots bounds. Signed-off-by: Lukas Braun --- virt/kvm/arm/mmu.c | 15 +-- 1 file changed, 13 insertions(+), 2