On Sun, Oct 30 2022, Gavin Shan <gs...@redhat.com> wrote: > The 3 high memory regions are usually enabled by default, but they may > be not used. For example, VIRT_HIGH_GIC_REDIST2 isn't needed by GICv2. > This leads to waste in the PA space. > > Add properties ("highmem-redists", "highmem-ecam", "highmem-mmio") to > allow users selectively disable them if needed. After that, the high > memory region for GICv3 or GICv4 redistributor can be disabled by user, > the number of maximal supported CPUs needs to be calculated based on > 'vms->highmem_redists'. The follow-up error message is also improved > to indicate if the high memory region for GICv3 and GICv4 has been > enabled or not. > > Suggested-by: Marc Zyngier <m...@kernel.org> > Signed-off-by: Gavin Shan <gs...@redhat.com> > Reviewed-by: Marc Zyngier <m...@kernel.org> > --- > docs/system/arm/virt.rst | 13 +++++++ > hw/arm/virt.c | 75 ++++++++++++++++++++++++++++++++++++++-- > 2 files changed, 86 insertions(+), 2 deletions(-)
Reviewed-by: Cornelia Huck <coh...@redhat.com>