Re: [PATCH 16/22] Introduce VCPU self-signaling service

2011-02-01 Thread Marcelo Tosatti
On Thu, Jan 27, 2011 at 02:10:00PM +0100, Jan Kiszka wrote: Introduce qemu_cpu_kick_self to send SIG_IPI to the calling VCPU context. First user will be kvm. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- cpus.c| 21 + qemu-common.h |1 + 2 files

Re: [PATCH 16/22] Introduce VCPU self-signaling service

2011-02-01 Thread Jan Kiszka
On 2011-02-01 14:14, Marcelo Tosatti wrote: On Thu, Jan 27, 2011 at 02:10:00PM +0100, Jan Kiszka wrote: Introduce qemu_cpu_kick_self to send SIG_IPI to the calling VCPU context. First user will be kvm. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- cpus.c| 21

Re: [PATCH 16/22] Introduce VCPU self-signaling service

2011-02-01 Thread Marcelo Tosatti
On Tue, Feb 01, 2011 at 02:33:45PM +0100, Jan Kiszka wrote: +++ b/cpus.c @@ -531,6 +531,17 @@ void qemu_cpu_kick(void *env) return; } +void qemu_cpu_kick_self(void) +{ +#ifndef _WIN32 +assert(cpu_single_env); + +raise(SIG_IPI); +#else +abort();

Re: [PATCH 16/22] Introduce VCPU self-signaling service

2011-02-01 Thread Jan Kiszka
On 2011-02-01 14:50, Marcelo Tosatti wrote: On Tue, Feb 01, 2011 at 02:33:45PM +0100, Jan Kiszka wrote: +++ b/cpus.c @@ -531,6 +531,17 @@ void qemu_cpu_kick(void *env) return; } +void qemu_cpu_kick_self(void) +{ +#ifndef _WIN32 +assert(cpu_single_env); + +

[PATCH 16/22] Introduce VCPU self-signaling service

2011-01-27 Thread Jan Kiszka
Introduce qemu_cpu_kick_self to send SIG_IPI to the calling VCPU context. First user will be kvm. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- cpus.c| 21 + qemu-common.h |1 + 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/cpus.c