i386/cpu: Update cache topology with machine's configuration
authorZhao Liu <zhao1.liu@intel.com>
Fri, 10 Jan 2025 14:51:13 +0000 (22:51 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 25 Feb 2025 15:18:12 +0000 (16:18 +0100)
commit5ca9282d25157004601c520ed59dcb380177f728
tree97e337b3e8a2f42434d11dfc3f3360839cfaf2c7
parent2152b4bfcd91d7d8b99cd502ed049b0ab8e38649
i386/cpu: Update cache topology with machine's configuration

User will configure smp cache topology via -machine smp-cache.

For this case, update the x86 CPUs' cache topology with user's
configuration in MachineState.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/20250110145115.1574345-4-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c