On 04/01/2016 11:18 AM, Paolo Bonzini wrote:
Microsoft loves Linux, and Red Hat loves .NET.  Since we can put whatever
we want in the Hyper-V vendor signature, let's show some love too!

Cc: Andreas Färber <[email protected]>
Cc: Alex Williamson <[email protected]>
Cc: Denis V. Lunev <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: Roman Kagan <[email protected]>
Cc: KY Srinivasan <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
---
  target-i386/kvm.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 799fdfa..1968f04 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -592,7 +592,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
          c = &cpuid_data.entries[cpuid_i++];
          c->function = HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS;
          if (!cpu->hyperv_vendor_id) {
-            memcpy(signature, "Microsoft Hv", 12);
+            memcpy(signature, "KVM<3HyperV!", 12);
          } else {
              size_t len = strlen(cpu->hyperv_vendor_id);
potentially this could be dangerous. This could break
hypervisor detection code. I'll check this today and
reply.

But you have made my day. Thank you for April 1.

Reply via email to