Re: [Qemu-devel] [PATCH v2 04/11] qemu_flush_work for remote vcpu execution

2009-12-02 Thread Glauber Costa
On Wed, Dec 02, 2009 at 11:54:45AM -0200, Marcelo Tosatti wrote: > On Wed, Dec 02, 2009 at 11:41:19AM -0200, Glauber Costa wrote: > > > KVM vcpu threads should block SIGUSR1, set the in-kernel signal mask > > > with KVM_SET_SIGNAL_MASK ioctl, and eat the signal in > > > qemu_wait_io_event (qemu_fl

Re: [Qemu-devel] [PATCH v2 04/11] qemu_flush_work for remote vcpu execution

2009-12-02 Thread Marcelo Tosatti
On Wed, Dec 02, 2009 at 11:41:19AM -0200, Glauber Costa wrote: > > KVM vcpu threads should block SIGUSR1, set the in-kernel signal mask > > with KVM_SET_SIGNAL_MASK ioctl, and eat the signal in > > qemu_wait_io_event (qemu_flush_work should run after eating > > the signal). Similarly to qemu-kvm's

Re: [Qemu-devel] [PATCH v2 04/11] qemu_flush_work for remote vcpu execution

2009-12-02 Thread Glauber Costa
On Wed, Dec 02, 2009 at 11:27:53AM -0200, Marcelo Tosatti wrote: > On Tue, Dec 01, 2009 at 10:51:30AM -0200, Glauber Costa wrote: > > This function is similar to qemu-kvm's on_vcpu mechanism. Totally > > synchronous, > > and guarantees that a given function will be executed at the specified vcpu.

Re: [Qemu-devel] [PATCH v2 04/11] qemu_flush_work for remote vcpu execution

2009-12-02 Thread Marcelo Tosatti
On Tue, Dec 01, 2009 at 10:51:30AM -0200, Glauber Costa wrote: > This function is similar to qemu-kvm's on_vcpu mechanism. Totally synchronous, > and guarantees that a given function will be executed at the specified vcpu. > > This patch also convert usage within the breakpoints system > > Signed

[Qemu-devel] [PATCH v2 04/11] qemu_flush_work for remote vcpu execution

2009-12-01 Thread Glauber Costa
This function is similar to qemu-kvm's on_vcpu mechanism. Totally synchronous, and guarantees that a given function will be executed at the specified vcpu. This patch also convert usage within the breakpoints system Signed-off-by: Glauber Costa --- cpu-all.h |3 ++ cpu-defs.h | 14 ++