From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEeiL-0001R6-P7 for qemu-devel@nongnu.org; Mon, 13 Jul 2015 10:28:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEeiI-0002yv-CD for qemu-devel@nongnu.org; Mon, 13 Jul 2015 10:28:13 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:37673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEeiI-0002yj-4w for qemu-devel@nongnu.org; Mon, 13 Jul 2015 10:28:10 -0400 Received: by wicmz13 with SMTP id mz13so63532950wic.0 for ; Mon, 13 Jul 2015 07:28:09 -0700 (PDT) Sender: Paolo Bonzini References: <1436460692-5142-1-git-send-email-cornelia.huck@de.ibm.com> <1436460692-5142-2-git-send-email-cornelia.huck@de.ibm.com> <559EA864.4070807@suse.de> From: Paolo Bonzini Message-ID: <55A3CAF6.90603@redhat.com> Date: Mon, 13 Jul 2015 16:28:06 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.4 1/2] core: reset handler for bus-less devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite , =?UTF-8?Q?Andreas_F=c3=a4rber?= Cc: "qemu-devel@nongnu.org Developers" , Alexander Graf , "Christian Borntraeger (s390x)" , jfrei@linux.vnet.ibm.com, Cornelia Huck , Xu Wang On 09/07/2015 20:53, Peter Crosthwaite wrote: > > Any reason to not just rip though the whole QOM tree and reset every > device regardless of bus/containuer arch? IIRC the semantics for > ->reset (and at least devices_reset()) are "pull the plug out of wall > and put it back in again" so there is currently supposed to be no > scope for controlling reset events. Most bus ->reset methods expect the children to be reset before the parent (postorder). At least SCSI and PCI do. Paolo