summaryrefslogtreecommitdiff
path: root/target-i386/cpu-qom.h
diff options
context:
space:
mode:
authorBenoît Canet <benoit@irqsave.net>2013-09-02 17:06:37 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-09-20 12:38:40 +0200
commit787aaf5703a702094f395db6795e74230282cd62 (patch)
tree3ff3b47cf751c04798fb4923a8fceeec3b4fc9a8 /target-i386/cpu-qom.h
parentc5daeae1b4ddff97d605bd954a7c2a2b2cf6040f (diff)
downloadqemu-787aaf5703a702094f395db6795e74230282cd62.tar.gz
target-i386: forward CPUID cache leaves when -cpu host is used
Some users running cpu intensive tasks checking the cache CPUID leaves at startup and making decisions based on the result reported that the guest was not reflecting the host CPUID leaves when -cpu host is used. This patch fix this. Signed-off-by: Benoît Canet <benoit@irqsave.net> [Rename new field to cache_info_passthrough - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-i386/cpu-qom.h')
-rw-r--r--target-i386/cpu-qom.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-i386/cpu-qom.h b/target-i386/cpu-qom.h
index c4447c2b6e..f4fab155bd 100644
--- a/target-i386/cpu-qom.h
+++ b/target-i386/cpu-qom.h
@@ -70,6 +70,9 @@ typedef struct X86CPU {
bool hyperv_relaxed_timing;
int hyperv_spinlock_attempts;
+ /* if true the CPUID code directly forward host cache leaves to the guest */
+ bool cache_info_passthrough;
+
/* Features that were filtered out because of missing host capabilities */
uint32_t filtered_features[FEATURE_WORDS];