aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-06-02 16:47:40 +0300
committerAvi Kivity <avi@redhat.com>2009-06-04 15:58:19 +0300
commit3d0223025efb8e971085445af55d5e804d3c1733 (patch)
tree6d0a55ec13e512e836089295a8962c93efabbe0d /target-ia64
parentkvm: Add irqfd support (diff)
downloadqemu-kvm-3d0223025efb8e971085445af55d5e804d3c1733.tar.gz
qemu-kvm-3d0223025efb8e971085445af55d5e804d3c1733.tar.bz2
qemu-kvm-3d0223025efb8e971085445af55d5e804d3c1733.zip
Do not use cpu_index in interface between libkvm and qemu
On vcpu creation cookie is returned which is used in future communication. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'target-ia64')
-rw-r--r--target-ia64/libkvm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target-ia64/libkvm.c b/target-ia64/libkvm.c
index 48669de6d..168721ea9 100644
--- a/target-ia64/libkvm.c
+++ b/target-ia64/libkvm.c
@@ -45,11 +45,11 @@ int kvm_arch_create(kvm_context_t kvm, unsigned long phys_mem_bytes,
return 0;
}
-int kvm_arch_run(struct kvm_run *run,kvm_context_t kvm, int vcpu)
+int kvm_arch_run(kvm_vcpu_context_t vcpu)
{
int r = 0;
- switch (run->exit_reason) {
+ switch (vcp->run->exit_reason) {
default:
r = 1;
break;
@@ -58,12 +58,12 @@ int kvm_arch_run(struct kvm_run *run,kvm_context_t kvm, int vcpu)
return r;
}
-void kvm_show_code(kvm_context_t kvm, int vcpu)
+void kvm_show_code(kvm_vcpu_context_t vcpu)
{
fprintf(stderr, "kvm_show_code not supported yet!\n");
}
-void kvm_show_regs(kvm_context_t kvm, int vcpu)
+void kvm_show_regs(kvm_vcpu_context_t vcpu)
{
fprintf(stderr,"kvm_show_regs not supportted today!\n");
}