From: Glauber Costa <glom...@redhat.com>

qemu already stores id information in a couple of places.
No need to do it here too.

Signed-off-by: Glauber Costa <glom...@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com>

diff --git a/qemu-kvm.c b/qemu-kvm.c
index 8647dc9..15b9129 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 84862f9..863911d 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;
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to