Re: [PATCH v2 6/7] i386/cpu: Update cache topology with machine's configuration

2024-10-07 Thread Zhao Liu
On Tue, Sep 17, 2024 at 10:06:41AM +0100, Jonathan Cameron wrote: > Date: Tue, 17 Sep 2024 10:06:41 +0100 > From: Jonathan Cameron > Subject: Re: [PATCH v2 6/7] i386/cpu: Update cache topology with machine's > configuration > X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-

Re: [PATCH v2 6/7] i386/cpu: Update cache topology with machine's configuration

2024-10-07 Thread Zhao Liu
Hi Ali, [snip] > > + > > +/* > > + * TODO: Add a SMPCompatProps.has_caches flag to avoid useless > > Updates > > + * if user didn't set smp_cache. > > + */ > Hi Zhao, > > Thanks for sending this patchset so quickly. I really appreciate the > TODO already :) Welcome! And I'm also

[PATCH v2 6/7] i386/cpu: Update cache topology with machine's configuration

2024-09-08 Thread Zhao Liu
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 Tested-by: Yongwei Ma --- Changes since RFC v2: * Used smp_cache array to override cache topology. * Wrapped the