From: Glauber Costa Subject: [PATCH 9/9] remove id from vcpu context Date: Wed, 29 Jul 2009 13:49:19 -0400 Message-ID: <1248889759-25063-10-git-send-email-glommer@redhat.com> References: <1248889759-25063-1-git-send-email-glommer@redhat.com> <1248889759-25063-2-git-send-email-glommer@redhat.com> <1248889759-25063-3-git-send-email-glommer@redhat.com> <1248889759-25063-4-git-send-email-glommer@redhat.com> <1248889759-25063-5-git-send-email-glommer@redhat.com> <1248889759-25063-6-git-send-email-glommer@redhat.com> <1248889759-25063-7-git-send-email-glommer@redhat.com> <1248889759-25063-8-git-send-email-glommer@redhat.com> <1248889759-25063-9-git-send-email-glommer@redhat.com> Cc: avi@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:57771 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbZG2RtZ (ORCPT ); Wed, 29 Jul 2009 13:49:25 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6THnPoI000313 for ; Wed, 29 Jul 2009 13:49:25 -0400 In-Reply-To: <1248889759-25063-9-git-send-email-glommer@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Fields in CPUState are enough to keep track of it. 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 bc06f9f..3303622 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -434,8 +434,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 1fc1e8f..ba5b4f2 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -71,7 +71,6 @@ struct kvm_context { struct kvm_vcpu_context { CPUState *env; - uint32_t id; }; typedef struct kvm_context *kvm_context_t; -- 1.6.2.2