Skip to contentSkip to conversation

kvm-testsuite: Fix halt callback

PATCH Applied Jan Kiszka 2 participants 2 messages Nov 24, 2008 – Nov 25, 2008 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 kvm-testsuite: Fix halt callback

Change halt callback in testsuite to conform with latest refactorings.

---

 user/main.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
user/main.c +2 -3
index a00b073..55639b5 100644
@@ -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;
 }
 
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 ES-OS
Corporate Competence Center Embedded Linux
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

Change halt callback in testsuite to conform with latest refactorings.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function