[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 5/5] hw/arm/virt: Disable highmem devices that don't fit i
From: |
Andrew Jones |
Subject: |
Re: [PATCH v2 5/5] hw/arm/virt: Disable highmem devices that don't fit in the PA range |
Date: |
Mon, 4 Oct 2021 12:12:40 +0200 |
On Sun, Oct 03, 2021 at 05:46:05PM +0100, Marc Zyngier wrote:
> Make sure both the highmem PCIe and GICv3 regions are disabled when
> they don't fully fit in the PA range.
>
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> ---
> hw/arm/virt.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index a572e0c9d9..756f67b6c8 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -1673,6 +1673,9 @@ static void virt_set_memmap(VirtMachineState *vms, int
> pa_bits)
> if (base <= BIT_ULL(pa_bits)) {
> vms->highest_gpa = base -1;
> } else {
> + /* Advertise that we have disabled the highmem devices */
> + vms->highmem_ecam = false;
> + vms->highmem_redists = false;
> vms->highest_gpa = memtop - 1;
> }
>
> --
> 2.30.2
>
Reviewed-by: Andrew Jones <drjones@redhat.com>
- [PATCH v2 1/5] hw/arm/virt: Key enablement of highmem PCIe on highmem_ecam, (continued)
- [PATCH v2 1/5] hw/arm/virt: Key enablement of highmem PCIe on highmem_ecam, Marc Zyngier, 2021/10/03
- [PATCH v2 4/5] hw/arm/virt: Use the PA range to compute the memory map, Marc Zyngier, 2021/10/03
- [PATCH v2 3/5] hw/arm/virt: Honor highmem setting when computing the memory map, Marc Zyngier, 2021/10/03
- [PATCH v2 5/5] hw/arm/virt: Disable highmem devices that don't fit in the PA range, Marc Zyngier, 2021/10/03
- Re: [PATCH v2 5/5] hw/arm/virt: Disable highmem devices that don't fit in the PA range,
Andrew Jones <=
- [PATCH v2 2/5] hw/arm/virt: Add a control for the the highmem redistributors, Marc Zyngier, 2021/10/03