kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kvm-testsuite: Fix halt callback
@ 2008-11-24  9:59 Jan Kiszka
  2008-11-25 14:41 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2008-11-24  9:59 UTC (permalink / raw)
  To: kvm-devel; +Cc: Avi Kivity

Change halt callback in testsuite to conform with latest refactorings.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kvm-testsuite: Fix halt callback
  2008-11-24  9:59 [PATCH] kvm-testsuite: Fix halt callback Jan Kiszka
@ 2008-11-25 14:41 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-11-25 14:41 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: kvm-devel

Jan Kiszka wrote:
> Change halt callback in testsuite to conform with latest refactorings.
>
>   

Applied, thanks.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-25 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24  9:59 [PATCH] kvm-testsuite: Fix halt callback Jan Kiszka
2008-11-25 14:41 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).