duplicate KVMState
commit083a3c080eac2c7dd7f07c98464487410fc9e338
authorGlauber Costa <glommer@redhat.com>
Tue, 14 Jul 2009 15:35:15 +0000 (14 11:35 -0400)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 14 Jul 2009 22:37:30 +0000 (14 19:37 -0300)
tree812a07e86d66fead15c715e8fecc5726f55dea1e
parentc3c37ccde9706b98a6c8e7c4faeadaac392c098b
duplicate KVMState

In this patch, we duplicate most of KVMState in our files. This should be
removed later, when they are 100 % equal. Meanwhile, we fold our kvm_context_t
structure inside it.

To make transition smooth, we still keep a global variable kvm_context
pointing to its position inside the global KVMState. This way we don't
need to hurry about changing all callers.

kvm_init() and kvm_finalize are changed, though, since they have now to
deal with the creation/destruction of a global KVMState

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
qemu-kvm.c
qemu-kvm.h
vl.c