kvm: libkvm: pass opague cpu state through libkvm instead of int vcpu
commit36582395b56ae928566e32c3c80059c794fdad16
authorJes Sorensen <jes@sgi.com>
Thu, 13 Nov 2008 16:46:21 +0000 (13 17:46 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 18 Nov 2008 14:12:54 +0000 (18 16:12 +0200)
treea5c57dde5755e4b549f7905b7cc1710c57611ae1
parent4d28ef442bd84a5d2015b41c3e637f53a0d2a61f
kvm: libkvm: pass opague cpu state through libkvm instead of int vcpu

Change code to pass around opague pointer to CPUState through libkvm,
avoiding conversion from CPUState to int vcpu and back in the callbacks
into qemu.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm/libkvm/kvm-common.h
kvm/libkvm/libkvm.c
kvm/libkvm/libkvm.h
kvm/user/main-ppc.c
kvm/user/main.c
qemu-kvm-ia64.c
qemu-kvm-powerpc.c
qemu-kvm-x86.c
qemu-kvm.c
qemu-kvm.h