aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-10-09 15:03:17 -0300
committerMarcelo Tosatti <mtosatti@redhat.com>2009-10-13 14:01:19 -0300
commitceb85db56b4fb3b87b0eeca91f8ffe5333132ba0 (patch)
treea06214be3c78299fb3e43a2119dabde4794dd68e /qemu-kvm.c
parentuse env in kvm_arch_run (diff)
downloadqemu-kvm-ceb85db56b4fb3b87b0eeca91f8ffe5333132ba0.tar.gz
qemu-kvm-ceb85db56b4fb3b87b0eeca91f8ffe5333132ba0.tar.bz2
qemu-kvm-ceb85db56b4fb3b87b0eeca91f8ffe5333132ba0.zip
remove kvm_run from vcpu_context
There are no more users of kvm_run inside vcpu context. Remove it, and leave the one inside CPUState for the job. 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 ccd28c438..8647dc929 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);