Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 09:08:52AM +0800, Wen Congyang wrote: At 02/28/2012 06:45 PM, Gleb Natapov Wrote: On Tue, Feb 28, 2012 at 11:19:47AM +0100, Jan Kiszka wrote: On 2012-02-28 10:42, Wen Congyang wrote: At 02/28/2012 05:34 PM, Jan Kiszka Wrote: On 2012-02-28 09:23, Wen Congyang wrote:

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 03:29 AM, Wen Congyang wrote: At 02/28/2012 07:23 PM, Avi Kivity Wrote: On 02/27/2012 05:01 AM, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 11:49:58AM +0200, Avi Kivity wrote: On 02/29/2012 03:29 AM, Wen Congyang wrote: At 02/28/2012 07:23 PM, Avi Kivity Wrote: On 02/27/2012 05:01 AM, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Daniel P. Berrange
On Wed, Feb 29, 2012 at 11:49:58AM +0200, Avi Kivity wrote: On 02/29/2012 03:29 AM, Wen Congyang wrote: At 02/28/2012 07:23 PM, Avi Kivity Wrote: On 02/27/2012 05:01 AM, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). Isn't it unreliable after the guest panicked? So is calling hypercalls, or dumping, or writing to the screen. Of

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). When the guest OS has crashed, any dumps will be done from the host OS using libvirt's core dump mechanism. The

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 12:00:41PM +0200, Avi Kivity wrote: On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). Isn't it unreliable after the guest panicked?

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:05 PM, Gleb Natapov wrote: On Wed, Feb 29, 2012 at 12:00:41PM +0200, Avi Kivity wrote: On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself).

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 05:36 PM, Gleb Natapov Wrote: On Wed, Feb 29, 2012 at 09:08:52AM +0800, Wen Congyang wrote: At 02/28/2012 06:45 PM, Gleb Natapov Wrote: On Tue, Feb 28, 2012 at 11:19:47AM +0100, Jan Kiszka wrote: On 2012-02-28 10:42, Wen Congyang wrote: At 02/28/2012 05:34 PM, Jan Kiszka Wrote:

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 06:08 PM, Avi Kivity Wrote: On 02/29/2012 12:05 PM, Gleb Natapov wrote: On Wed, Feb 29, 2012 at 12:00:41PM +0200, Avi Kivity wrote: On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer any amount of information

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Daniel P. Berrange
On Wed, Feb 29, 2012 at 12:05:32PM +0200, Avi Kivity wrote: On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). When the guest OS has crashed, any dumps will be

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 06:05 PM, Avi Kivity Wrote: On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). When the guest OS has crashed, any dumps will be done from the host OS using

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:17 PM, Wen Congyang wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS it is functional enough to call single hypercall instruction. Why

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 12:08:19PM +0200, Avi Kivity wrote: On 02/29/2012 12:05 PM, Gleb Natapov wrote: On Wed, Feb 29, 2012 at 12:00:41PM +0200, Avi Kivity wrote: On 02/29/2012 11:55 AM, Gleb Natapov wrote: How about using a virtio-serial channel for this? You can transfer

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:19 PM, Daniel P. Berrange wrote: On Wed, Feb 29, 2012 at 12:05:32PM +0200, Avi Kivity wrote: On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself).

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:31 PM, Wen Congyang wrote: At 02/29/2012 06:05 PM, Avi Kivity Wrote: On 02/29/2012 11:58 AM, Daniel P. Berrange wrote: How about using a virtio-serial channel for this? You can transfer any amount of information (including the dump itself). When the guest OS has

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Avi Kivity
On 02/29/2012 12:44 PM, Gleb Natapov wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS it is functional enough to call single hypercall instruction.

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Gleb Natapov
On Wed, Feb 29, 2012 at 12:48:57PM +0200, Avi Kivity wrote: On 02/29/2012 12:44 PM, Gleb Natapov wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 06:39 PM, Avi Kivity Wrote: On 02/29/2012 12:17 PM, Wen Congyang wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS it is functional enough to call

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-29 Thread Wen Congyang
At 02/29/2012 06:39 PM, Avi Kivity Wrote: On 02/29/2012 12:17 PM, Wen Congyang wrote: Yes, crash can be so severe that it is not even detected by a kernel itself, so not OOPS message even printed. But in most cases if kernel is functional enough to print OOPS it is functional enough to call

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-28 Thread Wen Congyang
At 02/28/2012 01:26 PM, Wen Congyang Wrote: At 02/27/2012 11:08 PM, Jan Kiszka Wrote: On 2012-02-27 04:01, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation is the

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-28 Thread Wen Congyang
At 02/27/2012 11:08 PM, Jan Kiszka Wrote: On 2012-02-27 04:01, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation is the same as xen: register panic notifier, and

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-28 Thread Jan Kiszka
On 2012-02-28 09:23, Wen Congyang wrote: At 02/27/2012 11:08 PM, Jan Kiszka Wrote: On 2012-02-27 04:01, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation is the

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-28 Thread Wen Congyang
At 02/28/2012 05:34 PM, Jan Kiszka Wrote: On 2012-02-28 09:23, Wen Congyang wrote: At 02/27/2012 11:08 PM, Jan Kiszka Wrote: On 2012-02-27 04:01, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-28 Thread Jan Kiszka
On 2012-02-28 10:42, Wen Congyang wrote: At 02/28/2012 05:34 PM, Jan Kiszka Wrote: On 2012-02-28 09:23, Wen Congyang wrote: At 02/27/2012 11:08 PM, Jan Kiszka Wrote: On 2012-02-27 04:01, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-28 Thread Gleb Natapov
On Tue, Feb 28, 2012 at 11:19:47AM +0100, Jan Kiszka wrote: On 2012-02-28 10:42, Wen Congyang wrote: At 02/28/2012 05:34 PM, Jan Kiszka Wrote: On 2012-02-28 09:23, Wen Congyang wrote: At 02/27/2012 11:08 PM, Jan Kiszka Wrote: On 2012-02-27 04:01, Wen Congyang wrote: We can know the

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-28 Thread Avi Kivity
On 02/27/2012 05:01 AM, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation is the same as xen: register panic notifier, and call hypercall when the guest is paniced.

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-28 Thread Wen Congyang
At 02/28/2012 06:45 PM, Gleb Natapov Wrote: On Tue, Feb 28, 2012 at 11:19:47AM +0100, Jan Kiszka wrote: On 2012-02-28 10:42, Wen Congyang wrote: At 02/28/2012 05:34 PM, Jan Kiszka Wrote: On 2012-02-28 09:23, Wen Congyang wrote: At 02/27/2012 11:08 PM, Jan Kiszka Wrote: On 2012-02-27 04:01,

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-28 Thread Wen Congyang
At 02/28/2012 07:23 PM, Avi Kivity Wrote: On 02/27/2012 05:01 AM, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation is the same as xen: register panic notifier, and

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-27 Thread Jan Kiszka
On 2012-02-27 04:01, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation is the same as xen: register panic notifier, and call hypercall when the guest is paniced.

Re: [Qemu-devel] [PATCH] kvm: notify host when guest paniced

2012-02-27 Thread Wen Congyang
At 02/27/2012 11:08 PM, Jan Kiszka Wrote: On 2012-02-27 04:01, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation is the same as xen: register panic notifier, and