aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJes Sorensen <jes@sgi.com>2008-11-13 17:46:21 +0100
committerAvi Kivity <avi@redhat.com>2008-11-18 16:12:54 +0200
commit36582395b56ae928566e32c3c80059c794fdad16 (patch)
treea5c57dde5755e4b549f7905b7cc1710c57611ae1 /qemu-kvm-ia64.c
parentkvm: external module: Remove the inclusion for <linux/compiler.h> (diff)
downloadqemu-kvm-36582395b56ae928566e32c3c80059c794fdad16.tar.gz
qemu-kvm-36582395b56ae928566e32c3c80059c794fdad16.tar.bz2
qemu-kvm-36582395b56ae928566e32c3c80059c794fdad16.zip
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>
Diffstat (limited to 'qemu-kvm-ia64.c')
-rw-r--r--qemu-kvm-ia64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-kvm-ia64.c b/qemu-kvm-ia64.c
index 7095d9a21..8380f397d 100644
--- a/qemu-kvm-ia64.c
+++ b/qemu-kvm-ia64.c
@@ -39,11 +39,11 @@ int kvm_arch_halt(void *opaque, int vcpu)
return 1;
}
-void kvm_arch_pre_kvm_run(void *opaque, int vcpu)
+void kvm_arch_pre_kvm_run(void *opaque, CPUState *env)
{
}
-void kvm_arch_post_kvm_run(void *opaque, int vcpu)
+void kvm_arch_post_kvm_run(void *opaque, CPUState *env)
{
}