From: Jan Kiszka <[EMAIL PROTECTED]>

Change halt callback in testsuite to conform with latest refactorings.

Signed-off-by: Jan Kiszka <[EMAIL PROTECTED]>
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/user/main.c b/user/main.c
index 70c1da2..dceec99 100644
--- a/user/main.c
+++ b/user/main.c
@@ -304,13 +304,12 @@ static int test_debug(void *opaque, void *vcpu)
        return 0;
 }
 
-static int test_halt(void *opaque, void *_vcpu)
+static int test_halt(void *opaque, int vcpu)
 {
-       struct vcpu_info *vcpu = _vcpu;
        int n;
 
        sigwait(&ipi_sigmask, &n);
-       kvm_inject_irq(kvm, vcpu->id, apic_ipi_vector);
+       kvm_inject_irq(kvm, vcpus[vcpu].id, apic_ipi_vector);
        return 0;
 }
 
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to