[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 2/6] hw/arm/virt: Add a control for the the highmem redist
|
From: |
Eric Auger |
|
Subject: |
Re: [PATCH v4 2/6] hw/arm/virt: Add a control for the the highmem redistributors |
|
Date: |
Mon, 10 Jan 2022 16:48:32 +0100 |
|
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
Hi Marc,
On 1/10/22 4:45 PM, Marc Zyngier wrote:
> Hi Eric,
>
> On Mon, 10 Jan 2022 15:35:44 +0000,
> Eric Auger <eric.auger@redhat.com> wrote:
>> Hi Marc,
>>
>> On 1/7/22 5:33 PM, Marc Zyngier wrote:
> [...]
>
>>> @@ -190,7 +191,8 @@ static inline int
>>> virt_gicv3_redist_region_count(VirtMachineState *vms)
>>>
>>> assert(vms->gic_version == VIRT_GIC_VERSION_3);
>>>
>>> - return MACHINE(vms)->smp.cpus > redist0_capacity ? 2 : 1;
>>> + return (MACHINE(vms)->smp.cpus > redist0_capacity &&
>>> + vms->highmem_redists) ? 2 : 1;
>> If we fail to use the high redist region, is there any check that the
>> number of vcpus does not exceed the first redist region capacity.
>> Did you check that config, does it nicely fail?
> I did, and it does (example on M1 with KVM):
>
> $ /home/maz/vminstall/qemu-hack -m 1G -smp 256 -cpu host -machine
> virt,accel=kvm,gic-version=3,highmem=on -nographic -drive
> if=pflash,format=raw,readonly=on,file=/usr/share/AAVMF/AAVMF_CODE.fd
> qemu-hack: warning: Number of SMP cpus requested (256) exceeds the
> recommended cpus supported by KVM (8)
> qemu-hack: warning: Number of hotpluggable cpus requested (256) exceeds the
> recommended cpus supported by KVM (8)
> qemu-hack: Capacity of the redist regions(123) is less than number of
> vcpus(256)
OK perfect!
Eric
>
> Thanks,
>
> M.
>
- [PATCH v4 3/6] hw/arm/virt: Honor highmem setting when computing the memory map, (continued)
[PATCH v4 1/6] hw/arm/virt: Add a control for the the highmem PCIe MMIO, Marc Zyngier, 2022/01/07