From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TY69o-00055r-J1 for qemu-devel@nongnu.org; Mon, 12 Nov 2012 21:23:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TY69l-0006cu-HY for qemu-devel@nongnu.org; Mon, 12 Nov 2012 21:23:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TY69l-0006cd-7W for qemu-devel@nongnu.org; Mon, 12 Nov 2012 21:23:17 -0500 Date: Tue, 13 Nov 2012 00:19:08 -0200 From: Marcelo Tosatti Message-ID: <20121113021908.GA8176@amt.cnet> References: <0a2274eccf1b1dd420f16359f7e1de74fa2f9fbe.1351131144.git.hutao@cn.fujitsu.com> <20121031011256.GC12325@amt.cnet> <50908354.5070608@cn.fujitsu.com> <20121106015835.GA11971@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v11] kvm: notify host when the guest is panicked List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sasha Levin Cc: Andrew Jones , kvm list , Hu Tao , "linux-kernel@vger.kernel.org" , Gleb Natapov , qemu-devel , Blue Swirl , Avi Kivity , Jan Kiszka , Luiz Capitulino , KAMEZAWA Hiroyuki On Fri, Nov 09, 2012 at 03:17:39PM -0500, Sasha Levin wrote: > On Mon, Nov 5, 2012 at 8:58 PM, Hu Tao wrote: > > But in the case of panic notification, more dependency means more > > chances of failure of panic notification. Say, if we use a virtio device > > to do panic notification, then we will fail if: virtio itself has > > problems, virtio for some reason can't be deployed(neither built-in or > > as a module), or guest doesn't support virtio, etc. > > Add polling to your virtio device. If it didn't notify of a panic but > taking more than 20 sec to answer your poll request you can assume > it's dead. > > Actually, just use virtio-serial and something in userspace on the guest. They want the guest to stop, so a memory dump can be taken by management interface. Hu Tao, lets assume port I/O is the preferred method for communication. Now, the following comments have still not been addressed: 1) Lifecycle of the stopped guest and interaction with other stopped states in QEMU. 2) Format of the interface for other architectures (you can choose a different KVM supported architecture and write an example). 3) Clear/documented management interface for the feature.