It adds a missing "KVM" string in the signature of the CPUID. Without
it signature[2] is not well defined.

Signed-off-by: Guillaume Thouvenin <[EMAIL PROTECTED]>

---
 qemu/qemu-kvm-x86.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu/qemu-kvm-x86.c b/qemu/qemu-kvm-x86.c
index 671b5b3..e9b200a 100644
--- a/qemu/qemu-kvm-x86.c
+++ b/qemu/qemu-kvm-x86.c
@@ -573,7 +573,7 @@ int kvm_arch_qemu_init_env(CPUState *cenv)
 
 #ifdef KVM_CPUID_SIGNATURE
     /* Paravirtualization CPUIDs */
-    memcpy(signature, "KVMKVMKVM", 12);
+    memcpy(signature, "KVMKVMKVMKVM", 12);
     pv_ent = &cpuid_ent[cpuid_nent++];
     memset(pv_ent, 0, sizeof(*pv_ent));
     pv_ent->function = KVM_CPUID_SIGNATURE;
-- 
1.6.0.4.623.g171d7

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to