Skip to contentSkip to conversation

Why Qemu doesn't present L3 cache info for guest?

Qemu-devel Shannon Zhao 2 participants 2 messages Aug 25, 2016

lore
Share & tools
lore
#0 lore raw

Hi guys,

Looking at the codes, for pc-2.4 machine it enables host-cache-info for guest so guest can get the L3 cache info of host. But since QEMU has its own rule to generate ACPI ID, guest will not use the L3 cache correctly.

I also notice that QEMU present L1 and L2 cache for guest via its own rule, why it not present L3 cache info which is consistent with the ACPI ID? Are there any downsides?

Thanks,

Signature · 1 line
Shannon
#1 lore raw
Quoted 9 lines · Shannon Zhao

Hi guys,

Looking at the codes, for pc-2.4 machine it enables host-cache-info for guest so guest can get the L3 cache info of host. But since QEMU has its own rule to generate ACPI ID, guest will not use the L3 cache correctly.

I also notice that QEMU present L1 and L2 cache for guest via its own rule, why it not present L3 cache info which is consistent with the ACPI ID? Are there any downsides?

host-cache-info is there only for compatibility with old behavior of "-cpu host", but I wouldn't advise anyone to use it. We would need a proper way to configure cache information exposed to the guest (including both CPUID and anything that would be exposed through ACPI), but we don't have one yet.

Signature · 1 line
Eduardo