• Eric Auger's avatar
    KVM: arm/arm64: Helper to register a new redistributor region · ccc27bf5
    Eric Auger authored
    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: default avatarEric Auger <eric.auger@redhat.com>
    Reviewed-by: default avatarChristoffer Dall <christoffer.dall@arm.com>
    Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    ccc27bf5
vgic.h 10.7 KB