diff mbox

[09/10] remove kvm_run from vcpu_context

Message ID 1255111398-15251-10-git-send-email-glommer@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Glauber Costa Oct. 9, 2009, 6:03 p.m. UTC
None
diff mbox

Patch

diff --git a/qemu-kvm.c b/qemu-kvm.c
index fb50bb4..8257dd3 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -467,8 +467,6 @@  kvm_vcpu_context_t kvm_create_vcpu(CPUState *env, int id)
         goto err_fd;
     }
 
-    vcpu_ctx->run = env->kvm_run;
-
     return vcpu_ctx;
   err_fd:
     close(vcpu_ctx->fd);
@@ -938,9 +936,9 @@  int kvm_run(kvm_vcpu_context_t vcpu, void *env)
 {
     int r;
     int fd = vcpu->fd;
-    struct kvm_run *run = vcpu->run;
     CPUState *_env = env;
     kvm_context_t kvm = &_env->kvm_state->kvm_context;
+    struct kvm_run *run = _env->kvm_run;
 
   again:
     push_nmi(kvm);
diff --git a/qemu-kvm.h b/qemu-kvm.h
index adb2970..f051889 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -78,7 +78,6 @@  struct kvm_context {
 
 struct kvm_vcpu_context {
     int fd;
-    struct kvm_run *run;
     uint32_t id;
 };