[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/8] i386/pc: Support cache topology in -machine for PC machine
From: |
Zhao Liu |
Subject: |
[PATCH 7/8] i386/pc: Support cache topology in -machine for PC machine |
Date: |
Thu, 4 Jul 2024 11:16:02 +0800 |
Allow user to configure l1d, l1i, l2 and l3 cache topologies for PC
machine.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
Changes since RFC v2:
* Used cache_supported array.
---
hw/i386/pc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 77415064c62e..1614a3b1bf19 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1773,6 +1773,10 @@ static void pc_machine_class_init(ObjectClass *oc, void
*data)
mc->nvdimm_supported = true;
mc->smp_props.dies_supported = true;
mc->smp_props.modules_supported = true;
+ mc->smp_props.cache_supported[SMP_CACHE_L1D] = true;
+ mc->smp_props.cache_supported[SMP_CACHE_L1I] = true;
+ mc->smp_props.cache_supported[SMP_CACHE_L2] = true;
+ mc->smp_props.cache_supported[SMP_CACHE_L3] = true;
mc->default_ram_id = "pc.ram";
pcmc->default_smbios_ep_type = SMBIOS_ENTRY_POINT_TYPE_AUTO;
--
2.34.1
- Re: [PATCH 2/8] qapi/qom: Introduce smp-cache object, (continued)
- Re: [PATCH 2/8] qapi/qom: Introduce smp-cache object, Zhao Liu, 2024/07/24
- Re: [PATCH 2/8] qapi/qom: Introduce smp-cache object, Zhao Liu, 2024/07/24
- Re: [PATCH 2/8] qapi/qom: Introduce smp-cache object, Markus Armbruster, 2024/07/25
- Message not available
- Re: [PATCH 2/8] qapi/qom: Introduce smp-cache object, Jonathan Cameron, 2024/07/25
- Re: [PATCH 2/8] qapi/qom: Introduce smp-cache object, Zhao Liu, 2024/07/25
- Re: [PATCH 2/8] qapi/qom: Introduce smp-cache object, Zhao Liu, 2024/07/25
[PATCH 3/8] hw/core: Add smp cache topology for machine, Zhao Liu, 2024/07/03
[PATCH 5/8] i386/cpu: Support thread and module level cache topology, Zhao Liu, 2024/07/03
[PATCH 4/8] hw/core: Check smp cache topology support for machine, Zhao Liu, 2024/07/03
[PATCH 6/8] i386/cpu: Update cache topology with machine's configuration, Zhao Liu, 2024/07/03
[PATCH 7/8] i386/pc: Support cache topology in -machine for PC machine,
Zhao Liu <=
[PATCH 8/8] qemu-options: Add the description of smp-cache object, Zhao Liu, 2024/07/03
Re: [PATCH 0/8] Introduce SMP Cache Topology, Zhao Liu, 2024/07/22