aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-10-09 15:03:12 -0300
committerMarcelo Tosatti <mtosatti@redhat.com>2009-10-13 14:01:06 -0300
commit64f320008d513c9812582eb3308bf7f910ec5297 (patch)
tree44d74bfeea60fd8ca4946d32196d1de2a1fd02c7 /qemu-kvm.c
parentremove unneded opaque. (diff)
downloadqemu-kvm-64f320008d513c9812582eb3308bf7f910ec5297.tar.gz
qemu-kvm-64f320008d513c9812582eb3308bf7f910ec5297.tar.bz2
qemu-kvm-64f320008d513c9812582eb3308bf7f910ec5297.zip
remove kvm_context from vcpu structure
It is not used anywhere, so just blow it away. Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-kvm.c')
-rw-r--r--qemu-kvm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 35a3be4dd..199e62031 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -441,9 +441,7 @@ kvm_vcpu_context_t kvm_create_vcpu(CPUState *env, int id)
long mmap_size;
int r;
kvm_vcpu_context_t vcpu_ctx = qemu_malloc(sizeof(struct kvm_vcpu_context));
- kvm_context_t kvm = kvm_context;
- vcpu_ctx->kvm = kvm;
vcpu_ctx->id = id;
r = kvm_vm_ioctl(kvm_state, KVM_CREATE_VCPU, id);
@@ -938,8 +936,8 @@ int kvm_run(kvm_vcpu_context_t vcpu, void *env)
int r;
int fd = vcpu->fd;
struct kvm_run *run = vcpu->run;
- kvm_context_t kvm = vcpu->kvm;
CPUState *_env = env;
+ kvm_context_t kvm = &_env->kvm_state->kvm_context;
again:
push_nmi(kvm);