From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG4jt-0008TL-Lt for qemu-devel@nongnu.org; Thu, 14 Mar 2013 05:46:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG4jq-0001OX-W9 for qemu-devel@nongnu.org; Thu, 14 Mar 2013 05:46:21 -0400 Received: from [222.73.24.84] (port=22348 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG4jq-0001OB-It for qemu-devel@nongnu.org; Thu, 14 Mar 2013 05:46:18 -0400 Date: Thu, 14 Mar 2013 17:46:22 +0800 From: Hu Tao Message-ID: <20130314094622.GG20796@localhost.localdomain> References: <5d85837fd58683b7e13ac78d6d468af6e152a512.1363243596.git.hutao@cn.fujitsu.com> <514194E4.3040208@redhat.com> MIME-Version: 1.0 In-Reply-To: <514194E4.3040208@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Subject: Re: [Qemu-devel] [PATCH v14 3/4] introduce pvevent device to deal with panicked event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Gleb Natapov , "Michael S. Tsirkin" , Jan Kiszka , qemu-devel , Markus Armbruster , Blue Swirl , Orit Wasserman , Juan Quintela , Alexander Graf , Christian Borntraeger , Andrew Jones , Alex Williamson , Sasha Levin , Stefan Hajnoczi , Luiz Capitulino , KAMEZAWA Hiroyuki , Kevin Wolf , Anthony Liguori , Marcelo Tosatti On Thu, Mar 14, 2013 at 10:14:12AM +0100, Paolo Bonzini wrote: > Il 14/03/2013 09:15, Hu Tao ha scritto: > > pvevent device is used to send guest panic event from guest to qemu. > > > > When guest panic happens, pvevent device driver will write a event > > number to IO port 0x505(which is the IO port occupied by pvevent device, > > by default). On receiving the event, pvevent device will pause guest > > cpu(s), and send a qmp event QEVENT_GUEST_PANICKED. > > > > TODO: make the IO port configurable > > The port is already configurable as far as the device is concerned; when > you add the port to the PC boards you will have to wind up fw-cfg. Yes, by configurable, I mean to pass io port through fw-cfg to seabios and patch it.