From: Guillaume Thouvenin Subject: [PATCH] kvm-userspace: Add '\0' at the end of the signature of CPUID Date: Tue, 9 Dec 2008 15:13:34 +0100 Message-ID: <20081209151334.74cd5717@frecb000711> References: <20081202112930.1bf2820d@frecb000711> <493E7167.70602@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: kvm To: Avi Kivity Return-path: Received: from ecfrec.frec.bull.fr ([129.183.4.8]:50743 "EHLO ecfrec.frec.bull.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752455AbYLIONe (ORCPT ); Tue, 9 Dec 2008 09:13:34 -0500 In-Reply-To: <493E7167.70602@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Add '\0' at the end of the signature of CPUID in order to fill the signature with known values. 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..2e68ace 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, "KVMKVMKVM\0\0\0", 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