From: Glauber Costa <[email protected]> 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 <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]> diff --git a/qemu-kvm.c b/qemu-kvm.c index ccd28c4..8647dc9 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 8b5cfb7..84862f9 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; }; -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
