aboutsummaryrefslogtreecommitdiffstats
path: root/include/kvm
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2018-05-22 09:55:12 +0200
committerMarc Zyngier <marc.zyngier@arm.com>2018-05-25 12:29:26 +0100
commitccc27bf5be7b78f64b67902bf27f6ef484bedc2c (patch)
tree08ea46b5b09d5a5e074ab162fe1b1fdf7a063a6f /include/kvm
parentKVM: arm/arm64: Adapt vgic_v3_check_base to multiple rdist regions (diff)
downloadlinux-dev-ccc27bf5be7b78f64b67902bf27f6ef484bedc2c.tar.xz
linux-dev-ccc27bf5be7b78f64b67902bf27f6ef484bedc2c.zip
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>
Diffstat (limited to 'include/kvm')
0 files changed, 0 insertions, 0 deletions