[PATCH 3/9] put env inside vcpu_context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this is only to make integration easier.

Signed-off-by: Glauber Costa <glommer@xxxxxxxxxx>
---
 qemu-kvm.c |    1 +
 qemu-kvm.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/qemu-kvm.c b/qemu-kvm.c
index 65042d2..ba937ca 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -448,6 +448,7 @@ kvm_vcpu_context_t kvm_create_vcpu(CPUState *env, int id)
 
     env->kvm_fd = r;
     env->kvm_state = kvm_state;
+    vcpu_ctx->env = env;
 
 	mmap_size = kvm_ioctl(kvm_state, KVM_GET_VCPU_MMAP_SIZE, 0);
 	if (mmap_size < 0) {
diff --git a/qemu-kvm.h b/qemu-kvm.h
index 8dfdf6b..440afba 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -71,6 +71,7 @@ struct kvm_context {
 
 struct kvm_vcpu_context
 {
+    CPUState *env;
 	int fd;
 	struct kvm_run *run;
 	struct kvm_context *kvm;
-- 
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux