From: Guillaume Thouvenin Subject: [PATCH] kvm-userspace: Add missing KVM string in the signature of CPUID Date: Tue, 2 Dec 2008 11:29:30 +0100 Message-ID: <20081202112930.1bf2820d@frecb000711> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Avi Kivity To: kvm Return-path: Received: from ecfrec.frec.bull.fr ([129.183.4.8]:35440 "EHLO ecfrec.frec.bull.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753230AbYLBK3e (ORCPT ); Tue, 2 Dec 2008 05:29:34 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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 --- 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