qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 04/21] cpuid: fix comments


From: Andre Przywara
Subject: [Qemu-devel] [PATCH v2 04/21] cpuid: fix comments
Date: Fri, 18 Sep 2009 13:47:57 +0200

Some comments regarding CPUID features were not up-to-date.
- Nested SVM is supported in qemu-kvm, but not in upstream qemu (yet).
- We support syscall/sysenter emulation in KVM now, so the comment
  explaining the vendor string issue can be more relaxed.

Signed-off-by: Andre Przywara <address@hidden>
---
 target-i386/cpuid.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c
index 8d986fc..bdc8fe0 100644
--- a/target-i386/cpuid.c
+++ b/target-i386/cpuid.c
@@ -606,10 +606,12 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, 
uint32_t count,
         *edx = env->cpuid_vendor2;
         *ecx = env->cpuid_vendor3;
 
-        /* sysenter isn't supported on compatibility mode on AMD.  and syscall
-         * isn't supported in compatibility mode on Intel.  so advertise the
-         * actuall cpu, and say goodbye to migration between different vendors
-         * is you use compatibility mode. */
+        /* sysenter isn't supported on compatibility mode on AMD, syscall
+         * isn't supported in compatibility mode on Intel.
+         * Normally we advertise the actual cpu vendor, but you can override
+         * this if you want to use KVM's sysenter/syscall emulation
+         * in compatibility mode and when doing cross vendor migration
+         */
         if (kvm_enabled() && !env->cpuid_vendor_override)
             host_cpuid(0, 0, NULL, ebx, ecx, edx);
         break;
@@ -716,7 +718,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, 
uint32_t count,
         }
 
         if (kvm_enabled()) {
-            /* Nested SVM not yet supported in KVM */
+            /* Nested SVM not yet supported in upstream QEMU */
             *ecx &= ~CPUID_EXT3_SVM;
         } else {
             /* AMD 3DNow! is not supported in QEMU */
-- 
1.6.1.3






reply via email to

[Prev in Thread] Current Thread [Next in Thread]