[PATCH 9/9] remove id from vcpu context

Glauber Costa
2009-07-29T17:49:25Z

Fields in CPUState are enough to keep track of it.

Signed-off-by: Glauber Costa <glommer@redhat.com>
---
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