linux/virt/kvm/arm/vgic
Ard Biesheuvel ba56bc3a07 KVM: arm/arm64: Drop resource size check for GICV window
When booting a 64 KB pages kernel on a ACPI GICv3 system that
implements support for v2 emulation, the following warning is
produced

  GICV size 0x2000 not a multiple of page size 0x10000

and support for v2 emulation is disabled, preventing GICv2 VMs
from being able to run on such hosts.

The reason is that vgic_v3_probe() performs a sanity check on the
size of the window (it should be a multiple of the page size),
while the ACPI MADT parsing code hardcodes the size of the window
to 8 KB. This makes sense, considering that ACPI does not bother
to describe the size in the first place, under the assumption that
platforms implementing ACPI will follow the architecture and not
put anything else in the same 64 KB window.

So let's just drop the sanity check altogether, and assume that
the window is at least 64 KB in size.

Fixes: 9097773245 ("KVM: arm/arm64: vgic-new: vgic_init: implement kvm_vgic_hyp_init")
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2018-06-21 09:14:44 +01:00
..
trace.h
vgic-debug.c kvm: no need to check return value of debugfs_create functions 2018-06-01 19:18:27 +02:00
vgic-init.c KVM: arm/arm64: Check vcpu redist base before registering an iodev 2018-05-25 12:29:27 +01:00
vgic-irqfd.c
vgic-its.c KVM: arm/arm64: VGIC/ITS save/restore: protect kvm_read_guest() calls 2018-05-15 13:36:53 +02:00
vgic-kvm-device.c KVM: arm/arm64: Implement KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 2018-05-25 12:29:27 +01:00
vgic-mmio-v2.c KVM: arm/arm64: vgic: fix possible spectre-v1 in vgic_mmio_read_apr() 2018-04-26 17:06:00 +01:00
vgic-mmio-v3.c KVM: arm/arm64: Implement KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION 2018-05-25 12:29:27 +01:00
vgic-mmio.c KVM: arm/arm64: vgic: Fix source vcpu issues for GICv2 SGI 2018-04-27 12:39:09 +01:00
vgic-mmio.h
vgic-v2.c KVM: arm/arm64: vgic: Fix source vcpu issues for GICv2 SGI 2018-04-27 12:39:09 +01:00
vgic-v3.c KVM: arm/arm64: Drop resource size check for GICV window 2018-06-21 09:14:44 +01:00
vgic-v4.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
vgic.c KVM: arm/arm64: Properly protect VGIC locks from IRQs 2018-05-15 13:36:27 +02:00
vgic.h kvm: no need to check return value of debugfs_create functions 2018-06-01 19:18:27 +02:00