Re: [RFC v2 3/7] hw/core: Add cache topology options in -smp

2024-06-04 Thread Zhao Liu
Hi Markus and Daniel, (I replied to both of you because I discussed the idea of cache object at the end) On Tue, Jun 04, 2024 at 10:32:14AM +0100, Daniel P. Berrangé wrote: > Date: Tue, 4 Jun 2024 10:32:14 +0100 > From: "Daniel P. Berrangé" > Subject: Re: [RFC v2 3/7]

Re: [RFC v2 3/7] hw/core: Add cache topology options in -smp

2024-06-04 Thread Daniel P . Berrangé
On Tue, Jun 04, 2024 at 10:54:51AM +0200, Markus Armbruster wrote: > Zhao Liu writes: > > > Add "l1d-cache", "l1i-cache". "l2-cache", and "l3-cache" options in > > -smp to define the cache topology for SMP system. > > > > Signed-off-by: Zhao Liu > > [...] > > > diff --git a/qapi/machine.json

Re: [RFC v2 3/7] hw/core: Add cache topology options in -smp

2024-06-04 Thread Markus Armbruster
Zhao Liu writes: > Add "l1d-cache", "l1i-cache". "l2-cache", and "l3-cache" options in > -smp to define the cache topology for SMP system. > > Signed-off-by: Zhao Liu [...] > diff --git a/qapi/machine.json b/qapi/machine.json > index 7ac5a05bb9c9..8fa5af69b1bf 100644 > --- a/qapi/machine.json

[RFC v2 3/7] hw/core: Add cache topology options in -smp

2024-05-30 Thread Zhao Liu
Add "l1d-cache", "l1i-cache". "l2-cache", and "l3-cache" options in -smp to define the cache topology for SMP system. Signed-off-by: Zhao Liu --- Changes since RFC v1: * Set has_*_cache field in machine_get_smp(). (JeeHeng) * Adjust string breaking style in error_setg() for more semantic