kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Reinstate cpuid vendor override when kvm is enabled
@ 2009-12-28  8:48 Avi Kivity
  2009-12-28 20:47 ` Marcelo Tosatti
  2009-12-29 13:28 ` [Qemu-devel] " Jamie Lokier
  0 siblings, 2 replies; 3+ messages in thread
From: Avi Kivity @ 2009-12-28  8:48 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: kvm, qemu-devel

Due to upstream qemu changes we no longer expose the host cpu vendor id
to the guest.  This leads to failures when the syscall/sysenter instructions
are used in compatibility mode.

Change the default to override when kvm is enabled.

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 target-i386/helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/target-i386/helper.c b/target-i386/helper.c
index 9a50da6..b58fd82 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -518,7 +518,7 @@ static int cpu_x86_register (CPUX86State *env, const char *cpu_model)
         env->cpuid_vendor2 = CPUID_VENDOR_INTEL_2;
         env->cpuid_vendor3 = CPUID_VENDOR_INTEL_3;
     }
-    env->cpuid_vendor_override = def->vendor_override;
+    env->cpuid_vendor_override = def->vendor_override || kvm_enabled();
     env->cpuid_level = def->level;
     if (def->family > 0x0f)
         env->cpuid_version = 0xf00 | ((def->family - 0x0f) << 20);
-- 
1.6.5.3


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

* Re: [PATCH] Reinstate cpuid vendor override when kvm is enabled
  2009-12-28  8:48 [PATCH] Reinstate cpuid vendor override when kvm is enabled Avi Kivity
@ 2009-12-28 20:47 ` Marcelo Tosatti
  2009-12-29 13:28 ` [Qemu-devel] " Jamie Lokier
  1 sibling, 0 replies; 3+ messages in thread
From: Marcelo Tosatti @ 2009-12-28 20:47 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm, qemu-devel

On Mon, Dec 28, 2009 at 10:48:00AM +0200, Avi Kivity wrote:
> Due to upstream qemu changes we no longer expose the host cpu vendor id
> to the guest.  This leads to failures when the syscall/sysenter instructions
> are used in compatibility mode.
> 
> Change the default to override when kvm is enabled.

Applied and queued for stable-0.12, thanks.


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

* Re: [Qemu-devel] [PATCH] Reinstate cpuid vendor override when kvm is enabled
  2009-12-28  8:48 [PATCH] Reinstate cpuid vendor override when kvm is enabled Avi Kivity
  2009-12-28 20:47 ` Marcelo Tosatti
@ 2009-12-29 13:28 ` Jamie Lokier
  1 sibling, 0 replies; 3+ messages in thread
From: Jamie Lokier @ 2009-12-29 13:28 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Marcelo Tosatti, qemu-devel, kvm

Avi Kivity wrote:
> Due to upstream qemu changes we no longer expose the host cpu vendor id
> to the guest.  This leads to failures when the syscall/sysenter instructions
> are used in compatibility mode.
> 
> Change the default to override when kvm is enabled.

This is a good change, although it always bothers me when there has to
be a difference between kvm-enabled and kvm-disabled, because I run
some guests in both modes at different times.

Out of interest, are the guest-visible differences between kvm-enabled
mode and kvm-disabled mode documented somewhere?

Thanks,
-- Jamie

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

end of thread, other threads:[~2009-12-29 13:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-28  8:48 [PATCH] Reinstate cpuid vendor override when kvm is enabled Avi Kivity
2009-12-28 20:47 ` Marcelo Tosatti
2009-12-29 13:28 ` [Qemu-devel] " Jamie Lokier

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).