[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 1/7] Don't report "Microsoft" as the vendor ID si
From: |
Vadim Rozenfeld |
Subject: |
[Qemu-devel] [PATCH v2 1/7] Don't report "Microsoft" as the vendor ID signature. |
Date: |
Fri, 24 Jan 2014 00:40:43 +1100 |
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 <address@hidden>
---
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
- [Qemu-devel] [PATCH v2 0/7] Hyper-V parameters update, Vadim Rozenfeld, 2014/01/23
- [Qemu-devel] [PATCH v2 1/7] Don't report "Microsoft" as the vendor ID signature.,
Vadim Rozenfeld <=
- [Qemu-devel] [PATCH v2 2/7] Don't specify hypervisor system identity, Vadim Rozenfeld, 2014/01/23
- [Qemu-devel] [PATCH v2 3/7] Don't specify implementation limits, Vadim Rozenfeld, 2014/01/23
- [Qemu-devel] [PATCH v2 4/7] Don't report the KVM signature twice, since it's already reported in KVM_CPUID_SIGNATURE CPUID leaf., Vadim Rozenfeld, 2014/01/23
- [Qemu-devel] [PATCH v2 5/7] make hyperv hypercall and guest os id MSRs migratable., Vadim Rozenfeld, 2014/01/23
- [Qemu-devel] [PATCH v2 6/7] make hyperv vapic assist page migratable, Vadim Rozenfeld, 2014/01/23
- [Qemu-devel] [PATCH v2 7/7] add support for hyper-v timers http://msdn.microsoft.com/en-us/library/windows/hardware/ff541625%28v=vs.85%29.aspx This code is generic for activating reference time counter or virtual reference time stamp counter, Vadim Rozenfeld, 2014/01/23
- Re: [Qemu-devel] [PATCH v2 0/7] Hyper-V parameters update, Paolo Bonzini, 2014/01/23