From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51256 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OocSc-0006wT-Ia for qemu-devel@nongnu.org; Thu, 26 Aug 2010 09:25:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OocSa-000341-HJ for qemu-devel@nongnu.org; Thu, 26 Aug 2010 09:25:42 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:39753) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OocSa-00033o-ED for qemu-devel@nongnu.org; Thu, 26 Aug 2010 09:25:40 -0400 Received: by qyk31 with SMTP id 31so1758885qyk.4 for ; Thu, 26 Aug 2010 06:25:39 -0700 (PDT) Message-ID: <4C766B50.50907@codemonkey.ws> Date: Thu, 26 Aug 2010 08:25:36 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] qdev: Reset hotplugged devices References: <20100803161914.15514.59304.stgit@localhost6.localdomain6> <1282308092.3860.0.camel@x201> <4C6EA5C9.8080700@codemonkey.ws> <20100825030752.GA14605@valinux.co.jp> <4C7512BF.9000805@codemonkey.ws> <4C7668FA.5080301@redhat.com> In-Reply-To: <4C7668FA.5080301@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org, Isaku Yamahata , Alex Williamson , glommer@redhat.com, Markus Armbruster On 08/26/2010 08:15 AM, Avi Kivity wrote: > On 08/25/2010 03:55 PM, Anthony Liguori wrote: >> >>> Maybe we can merge the patches. >>> As for your patch, I have some comment. >>> - bus itself may want its own handler. At lease pci bus needs it. >>> And propagating reset signal to children is up to the bus >>> controller. >> >> I disagree. Reset should be equivalent to power off + init and it's >> not something that can be selectively propagated. > > Not all busses propagate reset - SCSI is an example (I think). > We're talking about cold reset vs. warm reset. In the absence of passthrough, I'm struggling to see a useful use-case with warm reset. However, there are many useful things we can do assuming a cold reset (like MADV_DONTNEED memory on reboot). That's not saying we shouldn't do a warm reset, but I'd like to see that as an incremental addition to what we have today (like introducing a propagating warm reset callback) and thinking through what the actual behavior should and shouldn't be. Regards, Anthony Liguori