From: Cornelia Huck <cohuck@redhat.com>
To: Gavin Shan <gshan@redhat.com>, qemu-arm@nongnu.org
Cc: qemu-devel@nongnu.org, maz@kernel.org, eric.auger@redhat.com,
zhenyzha@redhat.com, richard.henderson@linaro.org,
peter.maydell@linaro.org, shan.gavin@gmail.com
Subject: Re: [PATCH v6 7/7] hw/arm/virt: Add properties to disable high memory regions
Date: Tue, 25 Oct 2022 12:54:25 +0200 [thread overview]
Message-ID: <874jvsfa1q.fsf@redhat.com> (raw)
In-Reply-To: <20221024035416.34068-8-gshan@redhat.com>
On Mon, Oct 24 2022, Gavin Shan <gshan@redhat.com> wrote:
> These 3 high memory regions are usually enabled by default, but
s/These 3/The/ ?
> they may be not used. For example, VIRT_HIGH_GIC_REDIST2 isn't
> needed by GICv2. This leads to waste in the PA space.
When building the command line, do we have enough information on when
the regions provide something useful, and when they just waste space?
>
> Add properties to allow users selectively disable them if needed:
> "highmem-redists", "highmem-ecam", "highmem-mmio".
>
> Suggested-by: Marc Zyngier <maz@kernel.org>
> Signed-off-by: Gavin Shan <gshan@redhat.com>
> ---
> docs/system/arm/virt.rst | 12 ++++++++
> hw/arm/virt.c | 64 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 76 insertions(+)
>
> diff --git a/docs/system/arm/virt.rst b/docs/system/arm/virt.rst
> index 4454706392..a1668a969d 100644
> --- a/docs/system/arm/virt.rst
> +++ b/docs/system/arm/virt.rst
> @@ -98,6 +98,18 @@ compact-highmem
> Set ``on``/``off`` to enable/disable the compact layout for high memory regions.
> The default is ``on`` for machine types later than ``virt-7.2``.
>
> +highmem-redists
> + Set ``on``/``off`` to enable/disable the high memry region for GICv3/4
s/memry/memory/
> + redistributor. The default is ``on``.
Do we need to add a note about what effects setting this to "off" may
have, e.g. "Setting this to ``off`` may limit the maximum number of
cpus." or so? And/or "Setting this to ``off`` when using GICv2 will save
some space."?
> +
> +highmem-ecam
> + Set ``on``/``off`` to enable/disable the high memry region for PCI ECAM.
s/memry/memory/
> + The default is ``on`` for machine types later than ``virt-3.0``.
> +
> +highmem-mmio
> + Set ``on``/``off`` to enable/disable the high memry region for PCI MMIO.
s/memry/memory/
> + The default is ``on``.
> +
> gic-version
> Specify the version of the Generic Interrupt Controller (GIC) to provide.
> Valid values are:
next prev parent reply other threads:[~2022-10-25 10:55 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-24 3:54 [PATCH v6 0/7] hw/arm/virt: Improve address assignment for high memory regions Gavin Shan
2022-10-24 3:54 ` [PATCH v6 1/7] hw/arm/virt: Introduce virt_set_high_memmap() helper Gavin Shan
2022-10-24 3:54 ` [PATCH v6 2/7] hw/arm/virt: Rename variable size to region_size in virt_set_high_memmap() Gavin Shan
2022-10-24 3:54 ` [PATCH v6 3/7] hw/arm/virt: Introduce variable region_base " Gavin Shan
2022-10-24 3:54 ` [PATCH v6 4/7] hw/arm/virt: Introduce virt_get_high_memmap_enabled() helper Gavin Shan
2022-10-24 3:54 ` [PATCH v6 5/7] hw/arm/virt: Improve high memory region address assignment Gavin Shan
2022-10-25 16:29 ` Eric Auger
2022-10-26 0:33 ` Gavin Shan
2022-10-26 10:43 ` Cornelia Huck
2022-10-28 6:45 ` Gavin Shan
2022-10-24 3:54 ` [PATCH v6 6/7] hw/arm/virt: Add 'compact-highmem' property Gavin Shan
2022-10-25 10:30 ` Cornelia Huck
2022-10-25 16:33 ` Eric Auger
2022-10-26 3:16 ` Gavin Shan
2022-10-24 3:54 ` [PATCH v6 7/7] hw/arm/virt: Add properties to disable high memory regions Gavin Shan
2022-10-25 10:54 ` Cornelia Huck [this message]
2022-10-26 3:55 ` Gavin Shan
2022-10-26 11:10 ` Cornelia Huck
2022-10-28 6:53 ` Gavin Shan
2022-10-26 0:29 ` [PATCH v6 0/7] hw/arm/virt: Improve address assignment for " Gavin Shan
2022-10-28 18:06 ` Peter Maydell
2022-10-29 22:53 ` Gavin Shan
2022-10-29 11:29 ` Marc Zyngier
2022-10-29 22:49 ` Gavin Shan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874jvsfa1q.fsf@redhat.com \
--to=cohuck@redhat.com \
--cc=eric.auger@redhat.com \
--cc=gshan@redhat.com \
--cc=maz@kernel.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=shan.gavin@gmail.com \
--cc=zhenyzha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.