[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH-for-9.1 v2 12/21] hw/i386/pc: Remove PCMachineClass::enforce_
From: |
Zhao Liu |
Subject: |
Re: [PATCH-for-9.1 v2 12/21] hw/i386/pc: Remove PCMachineClass::enforce_aligned_dimm |
Date: |
Thu, 28 Mar 2024 10:54:03 +0800 |
On Wed, Mar 27, 2024 at 10:51:14AM +0100, Philippe Mathieu-Daudé wrote:
> Date: Wed, 27 Mar 2024 10:51:14 +0100
> From: Philippe Mathieu-Daudé <philmd@linaro.org>
> Subject: [PATCH-for-9.1 v2 12/21] hw/i386/pc: Remove
> PCMachineClass::enforce_aligned_dimm
> X-Mailer: git-send-email 2.41.0
>
> PCMachineClass::enforce_aligned_dimm was only used by the
> pc-i440fx-2.1 machine, which got removed. It is now always
> true. Remove it, simplifying pc_get_device_memory_range().
> Update the comment in Avocado test_phybits_low_pse36().
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> include/hw/i386/pc.h | 3 ---
> hw/i386/pc.c | 14 +++-----------
> tests/avocado/mem-addr-space-check.py | 3 +--
> 3 files changed, 4 insertions(+), 16 deletions(-)
[snip]
> diff --git a/tests/avocado/mem-addr-space-check.py
> b/tests/avocado/mem-addr-space-check.py
> index af019969c0..ad75170d52 100644
> --- a/tests/avocado/mem-addr-space-check.py
> +++ b/tests/avocado/mem-addr-space-check.py
> @@ -31,8 +31,7 @@ def test_phybits_low_pse36(self):
> at 4 GiB boundary when "above_4g_mem_size" is 0 (this would be true
> when
> we have 0.5 GiB of VM memory, see pc_q35_init()). This means total
> hotpluggable memory size is 60 GiB. Per slot, we reserve 1 GiB of
> memory
> - for dimm alignment for all newer machines (see enforce_aligned_dimm
> - property for pc machines and pc_get_device_memory_range()). That
> leaves
> + for dimm alignment for all machines. That leaves
Just nit, better align it here.
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
> total hotpluggable actual memory size of 59 GiB. If the VM is started
> with 0.5 GiB of memory, maxmem should be set to a maximum value of
> 59.5 GiB to ensure that the processor can address all memory
> directly.
> --
> 2.41.0
>
- [PATCH-for-9.1 v2 08/21] target/i386/kvm: Remove x86_cpu_change_kvm_default() and 'kvm-cpu.h', (continued)
- [PATCH-for-9.1 v2 08/21] target/i386/kvm: Remove x86_cpu_change_kvm_default() and 'kvm-cpu.h', Philippe Mathieu-Daudé, 2024/03/27
- [PATCH-for-9.1 v2 09/21] hw/i386/pc: Remove PCMachineClass::smbios_uuid_encoded, Philippe Mathieu-Daudé, 2024/03/27
- [PATCH-for-9.1 v2 10/21] hw/smbios: Remove 'uuid_encoded' argument from smbios_set_defaults(), Philippe Mathieu-Daudé, 2024/03/27
- [PATCH-for-9.1 v2 11/21] hw/smbios: Remove 'smbios_uuid_encoded', simplify smbios_encode_uuid(), Philippe Mathieu-Daudé, 2024/03/27
- [PATCH-for-9.1 v2 12/21] hw/i386/pc: Remove PCMachineClass::enforce_aligned_dimm, Philippe Mathieu-Daudé, 2024/03/27
- Re: [PATCH-for-9.1 v2 12/21] hw/i386/pc: Remove PCMachineClass::enforce_aligned_dimm,
Zhao Liu <=
- [PATCH-for-9.1 v2 13/21] hw/mem/pc-dimm: Remove legacy_align argument from pc_dimm_pre_plug(), Philippe Mathieu-Daudé, 2024/03/27
- [PATCH-for-9.1 v2 14/21] hw/mem/memory-device: Remove legacy_align from memory_device_pre_plug(), Philippe Mathieu-Daudé, 2024/03/27
- [PATCH-for-9.1 v2 15/21] hw/i386/pc: Remove deprecated pc-i440fx-2.2 machine, Philippe Mathieu-Daudé, 2024/03/27
- [PATCH-for-9.1 v2 16/21] hw/i386/pc: Remove PCMachineClass::resizable_acpi_blob, Philippe Mathieu-Daudé, 2024/03/27