From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2ED5BC43613 for ; Thu, 20 Jun 2019 16:22:07 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9E9F2070B for ; Thu, 20 Jun 2019 16:22:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TRcenZYQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9E9F2070B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:50170 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdzp8-0005Uq-6T for qemu-devel@archiver.kernel.org; Thu, 20 Jun 2019 12:22:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37323) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdzmK-0003QY-3y for qemu-devel@nongnu.org; Thu, 20 Jun 2019 12:19:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdzmI-0007Wv-BT for qemu-devel@nongnu.org; Thu, 20 Jun 2019 12:19:11 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:32828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdzmI-0007HP-0B for qemu-devel@nongnu.org; Thu, 20 Jun 2019 12:19:10 -0400 Received: by mail-wr1-x443.google.com with SMTP id n9so3701446wru.0 for ; Thu, 20 Jun 2019 09:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=SZmR1ep04TT4dxQ6g5/nREwNCbAsY96WCGW2oGAla3M=; b=TRcenZYQqWHaid08KJxOMLjR049ZT9qGwLK45Y6UNq9LUajJpdzePgaCWfpZqM8p5q LSzwVyG6zERWgUZdWznJtZl3RNFmR1OZeeA0xmg+ausn3cvQ19vBGuIfo3fFfYXBrtJT zra1oBeizkuYK8LCT0Rb4/wVBXqoht8O9ZKlF3XxwdRpULkll/ja3i9pe1Fy13dj4pLO 6s7aZKLWqb4NIIz+vAK1r+UTHUl+Jb49Gbk0KpSWyyEvolhLL6XxBBvupctfo5AJkg1z +1syCe4NN3dUdSdNWh/1cqCLOhg1ofy62LzZtYUNJoYSf09VXJ0vIZaZonbDUShLxtIF wEnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=SZmR1ep04TT4dxQ6g5/nREwNCbAsY96WCGW2oGAla3M=; b=WRIgkjLZeFtvJ0unR/3LgcetwkA1+W3vaI59MmTckl23XW7VR1IIpu31aK0I0USLNK kQyxjaO8M5jjvLanxqokjwjchYyMSaA9/0h+u2gegpOXBgRF78Te9pj99YGRS3f1dxW1 GTE/rjn3rloxlyAqeFdckT03nUgd1WXQj+TpmUZbH2QjNSeWiSR+SO/GBY2Oz4udUrIJ cu6JN9CZVumVWMcO2VJA2BdtsvCMNmvXl6P2KDoR3XEB9+ua8S/a6H6A6bfC6k8c/Q2R QmB1prX2yxxT1ay0yo2Cmed7DMRdtoD/v+kizuzVpDGwFA8mmS4C+O0u7dJcqTyN0fRB EYuQ== X-Gm-Message-State: APjAAAWa5nUT2S5lPLGK9dm4jySbmivOo75wvIXrs8kxfpPXIVasI/1b uPxZIpYYwxMrRi/twQDHUOI= X-Google-Smtp-Source: APXvYqzZQ9INCI6ocbo6J380+xtIjMmmtylsAM124bOw6SZpD6ut4wZrCS3Br36pffrP36snKdLrag== X-Received: by 2002:adf:db4c:: with SMTP id f12mr12036703wrj.342.1561047535856; Thu, 20 Jun 2019 09:18:55 -0700 (PDT) Received: from localhost ([51.15.41.238]) by smtp.gmail.com with ESMTPSA id y16sm80767wru.28.2019.06.20.09.18.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 20 Jun 2019 09:18:55 -0700 (PDT) Date: Thu, 20 Jun 2019 17:18:50 +0100 From: Stefan Hajnoczi To: Paolo Bonzini Message-ID: <20190620161850.GA8395@stefanha-x1.localdomain> References: <20190612120421.20336-1-stefanha@redhat.com> <20190617122922.GG7397@linux.fritz.box> <25ad60d8-8860-b535-a42b-03d4d63d0802@redhat.com> <20190617175840.GO7397@linux.fritz.box> <6080d608-fd8d-1f09-6f40-735e212fbf9e@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5vNYLRcllDrimb99" Content-Disposition: inline In-Reply-To: <6080d608-fd8d-1f09-6f40-735e212fbf9e@redhat.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: Re: [Qemu-devel] [PATCH v4] virtio-scsi: restart DMA after iothread X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fam Zheng , qemu-devel@nongnu.org, Stefan Hajnoczi , "Michael S. Tsirkin" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 17, 2019 at 08:27:04PM +0200, Paolo Bonzini wrote: > On 17/06/19 19:58, Kevin Wolf wrote: > > Of course, this makes me think that maybe for the actual proper > > solution, VM state change handlers should really be a feature that qdev > > provides for devices. Then if a HBA doesn't have anything else to do, > > the qdev core would just recurse into the children right away; if it has > > something to do, it would disable the device after its children, and > > re-enable it before the children. >=20 > This was more or less my reply to this version of the patch. :) I'll send a new patch that is a combination of these ideas. Stefan --5vNYLRcllDrimb99 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl0LsecACgkQnKSrs4Gr c8i1cAf+JYWB7TRcjWzrDceS5elxV585qCfxPK1HboJhQ0LGdoS6c5jCA2C0eXlV X4oNDv5VA8oVU2iIdqF+0zmBYpjVqX/3dlPxU6o26qVOWEiN8Zb2lZ02xXaTxDJp kqYLM7u7IDAV45yppa4JTJ8OZJnEqTwC7bVCGd9Yeagsqw1IrT6LkjRbyZ3eFQz4 eVeynrK+btDj7tdsKDeA7YcNqr6o1ZqtX6JYQjTA5gPc64tF4ANEpbwjNCkBOWJF 5eW3Wcv80pPxwmbmIC8zN1R3pQwo5MWnVggv0TZr4Iq+WVfmBARz69jyjOaL+U1h 0jMbxSbQafAxIAlUWVBnekMps7KR/A== =PfNm -----END PGP SIGNATURE----- --5vNYLRcllDrimb99--