Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MobzZ-0007nw-Oh for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MobzV-0007nA-6Z for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:09 -0400 Received: from [199.232.76.173] (port=38451 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MobzV-0007n7-4N for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:05 -0400 Received: from tx2ehsobe003.messaging.microsoft.com ([65.55.88.13]:53238 helo=TX2EHSOBE005.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1MobzU-0003Jd-PC for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:04 -0400 Received: from mail31-tx2 (localhost.localdomain [127.0.0.1]) by mail31-tx2-R.bigfish.com (Postfix) with ESMTP id EBDB7359014B for ; Fri, 18 Sep 2009 11:51:02 +0000 (UTC) Received: from TX2EHSMHS003.bigfish.com (unknown [10.9.14.237]) by mail31-tx2.bigfish.com (Postfix) with ESMTP id 76EE13020057 for ; Fri, 18 Sep 2009 11:51:01 +0000 (UTC) Received: from svlb1twp01.amd.com ([139.95.250.34]) by svlb1extmailp01.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n8IBotnW025573 for ; Fri, 18 Sep 2009 04:50:58 -0700 Received: from SSVLEXBH1.amd.com (ssvlexbh1.amd.com [139.95.53.182]) by svlb1twp01.amd.com (Tumbleweed MailGate 3.7.0) with ESMTP id 29C5D19A014F for ; Fri, 18 Sep 2009 04:50:52 -0700 (PDT) From: Andre Przywara Date: Fri, 18 Sep 2009 13:47:57 +0200 Message-ID: <1253274494-13244-5-git-send-email-andre.przywara@amd.com> In-Reply-To: <1253274494-13244-1-git-send-email-andre.przywara@amd.com> References: <1253274494-13244-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 04/21] cpuid: fix comments List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Andre Przywara 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 --- 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