Re: [Qemu-devel] About SIG_IPI handler

2014-04-27 Thread Paolo Bonzini
Il 19/04/2014 07:24, Shiru Ren ha scritto: Thanks for your answer. It really helped me a lot. However, it cloud be really helpful if you cloud explain how the SIG_IPI signal causes the CPU thread to exit the vcpu thread in KVM mode. Is it like an interrupt, causes a VM exit immediately? Or KVM ju

Re: [Qemu-devel] About SIG_IPI handler

2014-04-17 Thread Paolo Bonzini
Il 17/04/2014 01:51, Jan Kiszka ha scritto: On 2014-04-17 07:46, Shiru Ren wrote: Hi, all I’m trying to figure out how do_savevm works in QEMU. But there is one thing has bothered me quite a lot. I found that vm_stop invoke qemu_cpu_kick_thread to send SIG_IPI to a vcpu thread, and I have under

[Qemu-devel] About SIG_IPI handler

2014-04-16 Thread Shiru Ren
Hi, all I’m trying to figure out how do_savevm works in QEMU. But there is one thing has bothered me quite a lot. I found that vm_stop invoke qemu_cpu_kick_thread to send SIG_IPI to a vcpu thread, and I have understand that in TCG mode, the cpu_signal() function will be invoked as the SIG_IPI hand

Re: [Qemu-devel] About SIG_IPI handler

2014-04-16 Thread Jan Kiszka
On 2014-04-17 07:46, Shiru Ren wrote: > Hi, all > > I’m trying to figure out how do_savevm works in QEMU. But there is one > thing has bothered me quite a lot. I found that vm_stop invoke > qemu_cpu_kick_thread to send SIG_IPI to a vcpu thread, and I have > understand that in TCG mode, the cpu_sig