Fields in CPUState are enough to keep track of it.
Signed-off-by: Glauber Costa <[email protected]>
---
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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html