linux/virt/kvm/arm/vgic
Eric Auger ccc27bf5be KVM: arm/arm64: Helper to register a new redistributor region
We introduce a new helper that creates and inserts a new redistributor
region into the rdist region list. This helper both handles the case
where the redistributor region size is known at registration time
and the legacy case where it is not (eventually depending on the number
of online vcpus). Depending on pfns, we perform all the possible checks
that we can do:

- end of memory crossing
- incorrect alignment of the base address
- collision with distributor region if already defined
- collision with already registered rdist regions
- check of the new index

Rdist regions must be inserted by increasing order of indices. Indices
must be contiguous.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2018-05-25 12:29:26 +01:00
..
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vgic-debug.c KVM: arm/arm64: vgic: constify seq_operations and file_operations 2017-09-05 17:33:38 +02:00
vgic-init.c KVM: arm/arm64: Replace the single rdist region by a list 2018-05-25 12:29:26 +01:00
vgic-irqfd.c KVM: arm/arm64: vgic-irqfd: Fix MSI entry allocation 2017-11-29 16:46:12 +01:00
vgic-its.c KVM: arm/arm64: vgic-its: Fix potential overrun in vgic_copy_lpi_list 2018-03-26 10:56:49 +01:00
vgic-kvm-device.c KVM: arm/arm64: Replace the single rdist region by a list 2018-05-25 12:29:26 +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: Helper to register a new redistributor region 2018-05-25 12:29:26 +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 KVM: arm/arm64: Separate guest and uaccess writes to dist {sc}active 2017-05-23 12:48:11 +02:00
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: Adapt vgic_v3_check_base to multiple rdist regions 2018-05-25 12:29:26 +01:00
vgic-v4.c KVM: arm64: Fix GICv4 init when called from vgic_its_create 2018-01-12 11:40:21 +01:00
vgic.c KVM/arm fixes for 4.17, take #2 2018-05-05 23:05:31 +02:00
vgic.h KVM: arm/arm64: Helper to register a new redistributor region 2018-05-25 12:29:26 +01:00