OSDN Git Service

kvm: Make KVMState be the TYPE_KVM_ACCEL instance struct
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 26 Sep 2014 20:45:32 +0000 (17:45 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Oct 2014 13:36:15 +0000 (15:36 +0200)
commitfc02086b5ab8de50ce8234cf8f42b254de9e5d91
treeb9fbdade621b2cea38a3aeaa492f461e4a2efe26
parentac2da55e01b1a84e6bba32768211201dec230232
kvm: Make KVMState be the TYPE_KVM_ACCEL instance struct

Now that we create an accel object before calling machine_init, we can
simply use the accel object to save all KVMState data, instead of
allocationg KVMState manually.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
kvm-all.c