qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-i386: Disable CPUID_EXT_MONITOR when KVM is enabled
@ 2013-05-25  1:13 Bandan Das
  2013-05-25  1:21 ` Bandan Das
  0 siblings, 1 reply; 12+ messages in thread
From: Bandan Das @ 2013-05-25  1:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Igor Mammedov, Eduardo Habkost, Andreas Färber


By default, CPUID_EXT_MONITOR is enabled for some cpu models 
such as Opteron_G3. Disable it if kvm_enabled() is true since 
monitor/mwait aren't supported by KVM yet. 

Signed-off-by: Bandan Das <bsd@redhat.com>
---
There is no user visible side-effect to this behavior, the aim 
is to clean up the default flags that are not supported (yet).

 target-i386/cpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 1a501d9..c83ba1c 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1749,6 +1749,7 @@ static void cpu_x86_register(X86CPU *cpu, const char *name, Error **errp)
 
     if (kvm_enabled()) {
         def->features[FEAT_KVM] |= kvm_default_features;
+        def->features[FEAT_1_ECX] &= ~CPUID_EXT_MONITOR;
     }
     def->features[FEAT_1_ECX] |= CPUID_EXT_HYPERVISOR;
 
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-05-29 14:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-25  1:13 [Qemu-devel] [PATCH] target-i386: Disable CPUID_EXT_MONITOR when KVM is enabled Bandan Das
2013-05-25  1:21 ` Bandan Das
2013-05-25  6:25   ` Paolo Bonzini
2013-05-27 12:09     ` Eduardo Habkost
2013-05-27 12:21       ` Paolo Bonzini
2013-05-27 13:07         ` Eduardo Habkost
2013-05-27 13:14           ` Paolo Bonzini
2013-05-27 13:32             ` Eduardo Habkost
2013-05-28 16:34           ` Bandan Das
2013-05-28 16:46             ` Paolo Bonzini
2013-05-28 16:48               ` Andreas Färber
2013-05-29 14:31                 ` Eduardo Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).