Change halt callback in testsuite to conform with latest refactorings.

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

 user/main.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/user/main.c b/user/main.c
index a00b073..55639b5 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;
 }
 
-- 
Siemens AG, Corporate Technology, CT SE 2 ES-OS
Corporate Competence Center Embedded Linux
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to