From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: [PATCH 10/10] remove id field from vcpu context structure Date: Fri, 9 Oct 2009 15:03:18 -0300 Message-ID: <1255111398-15251-11-git-send-email-glommer@redhat.com> References: <1255111398-15251-1-git-send-email-glommer@redhat.com> <1255111398-15251-2-git-send-email-glommer@redhat.com> <1255111398-15251-3-git-send-email-glommer@redhat.com> <1255111398-15251-4-git-send-email-glommer@redhat.com> <1255111398-15251-5-git-send-email-glommer@redhat.com> <1255111398-15251-6-git-send-email-glommer@redhat.com> <1255111398-15251-7-git-send-email-glommer@redhat.com> <1255111398-15251-8-git-send-email-glommer@redhat.com> <1255111398-15251-9-git-send-email-glommer@redhat.com> <1255111398-15251-10-git-send-email-glommer@redhat.com> Cc: avi@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:32837 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761240AbZJISEF (ORCPT ); Fri, 9 Oct 2009 14:04:05 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n99I3dQj025544 for ; Fri, 9 Oct 2009 14:03:39 -0400 In-Reply-To: <1255111398-15251-10-git-send-email-glommer@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: qemu already stores id information in a couple of places. No need to do it here too. Signed-off-by: Glauber Costa --- qemu-kvm.c | 2 -- qemu-kvm.h | 1 - 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 8257dd3..06c1226 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -442,8 +442,6 @@ kvm_vcpu_context_t kvm_create_vcpu(CPUState *env, int id) int r; kvm_vcpu_context_t vcpu_ctx = qemu_malloc(sizeof(struct kvm_vcpu_context)); - vcpu_ctx->id = id; - r = kvm_vm_ioctl(kvm_state, KVM_CREATE_VCPU, id); if (r < 0) { fprintf(stderr, "kvm_create_vcpu: %m\n"); diff --git a/qemu-kvm.h b/qemu-kvm.h index f051889..d07aa86 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -78,7 +78,6 @@ struct kvm_context { struct kvm_vcpu_context { int fd; - uint32_t id; }; typedef struct kvm_context *kvm_context_t; -- 1.6.2.5