From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6KXc-0005hH-Dh for qemu-devel@nongnu.org; Thu, 23 Jan 2014 08:42:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6KXW-0007OT-6X for qemu-devel@nongnu.org; Thu, 23 Jan 2014 08:41:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:25931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6KXV-0007OL-Ud for qemu-devel@nongnu.org; Thu, 23 Jan 2014 08:41:50 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0NDfmfB000341 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 23 Jan 2014 08:41:49 -0500 From: Vadim Rozenfeld Date: Fri, 24 Jan 2014 00:40:43 +1100 Message-Id: <1390484449-20974-2-git-send-email-vrozenfe@redhat.com> In-Reply-To: <1390484449-20974-1-git-send-email-vrozenfe@redhat.com> References: <1390484449-20974-1-git-send-email-vrozenfe@redhat.com> Subject: [Qemu-devel] [PATCH v2 1/7] Don't report "Microsoft" as the vendor ID signature. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, mtosatti@redhat.com, Vadim Rozenfeld According to "Requirements for Implementing the Microsoft Hypervisor Interface" (http://msdn.microsoft.com/library/windows/hardware/hh975392) page 4, conformant hypervisors are not required to report the vendor id signature. Guest use this information for reporting and diagnostic purposes only. Signed-off-by: Vadim Rozenfeld --- target-i386/kvm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 7522e98..db1583a 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -463,11 +463,8 @@ int kvm_arch_init_vcpu(CPUState *cs) /* Paravirtualization CPUIDs */ c = &cpuid_data.entries[cpuid_i++]; c->function = KVM_CPUID_SIGNATURE; - if (!hyperv_enabled(cpu)) { - memcpy(signature, "KVMKVMKVM\0\0\0", 12); - c->eax = 0; - } else { - memcpy(signature, "Microsoft Hv", 12); + memcpy(signature, "KVMKVMKVM\0\0\0", 12); + if (hyperv_enabled(cpu)) { c->eax = HYPERV_CPUID_MIN; } c->ebx = signature[0]; -- 1.8.1.4