mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target-i386: Disable cache info passthrough by default
The host cache information may not make sense for the guest if the VM CPU topology doesn't match the host CPU topology. To make sure we won't expose broken cache information to the guest, disable cache info passthrough by default, and add a new "host-cache-info" property that can be used to enable the old behavior for users that really need it. Cc: Benoît Canet <benoit@irqsave.net> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
dd75d4fcb4
commit
e265e3e480
2 changed files with 6 additions and 3 deletions
|
@ -318,6 +318,11 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
|
|||
.driver = "Broadwell-noTSX-" TYPE_X86_CPU,\
|
||||
.property = "abm",\
|
||||
.value = "off",\
|
||||
},\
|
||||
{\
|
||||
.driver = "host" "-" TYPE_X86_CPU,\
|
||||
.property = "host-cache-info",\
|
||||
.value = "on",\
|
||||
},
|
||||
|
||||
#define PC_COMPAT_2_3 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue