On Fri, 1 Jun 2018 at 00:55, Jim Mattson <jmattson@xxxxxxxxxx> wrote: > > From: Eric Northup <digitaleric@xxxxxxxxxx> > > Return L2 cache and TLB information to guests. > They could have been set before, but the defaults that KVM returns will be > necessary for usermode that doesn't supply their own CPUID tables. > > Signed-off-by: Eric Northup <digitaleric@xxxxxxxxxx> > Signed-off-by: Jim Mattson <jmattson@xxxxxxxxxx> > --- I boot a guest w/ -smp 8, sockets=1, cores=4, threads=2 -cpu host on a haswell client w/ and w/o the patch, what can be observed in the guest is the same. lscpu on the host: L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 8192K lscpu in the guest: L1d cache: 32K L1i cache: 32K L2 cache: 4096K L3 cache: 16384K Regards, Wanpeng Li