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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 1B981C46477 for ; Mon, 17 Jun 2019 19:02:14 +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 E7FDC206B7 for ; Mon, 17 Jun 2019 19:02:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E7FDC206B7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcwtR-0006IR-81 for qemu-devel@archiver.kernel.org; Mon, 17 Jun 2019 15:02:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34320) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcwNY-0001uX-Ai for qemu-devel@nongnu.org; Mon, 17 Jun 2019 14:29:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcwNW-0001GA-Js for qemu-devel@nongnu.org; Mon, 17 Jun 2019 14:29:16 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcwNW-0001FN-DX for qemu-devel@nongnu.org; Mon, 17 Jun 2019 14:29:14 -0400 Received: by mail-wr1-f68.google.com with SMTP id n9so11114060wru.0 for ; Mon, 17 Jun 2019 11:29:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JipREjB8Xp2KShvWTIcJG/AGcNKLF8lVkPuv1Hf5WHk=; b=UXGBiABji6PDIjRUodA9k6HtXubpr877KH2c5J+zFZb/R55YPj9aSx+ROOqrWqQJtg bCCVLmV1qc8uZqba+0angBE1eJIwUkLhjpfsKUOCYdf30Sdwrrr0T5IQuxo6x0c5TEOV Cp4o4xvYmvcS/kudMKOfpqGIWCJiBtKRTUxEPpFL3F+9dChVsev8tjDtGW/ALZvvziVH unnIvP3/I6kfUms6rQ/b7JWMvUkVysRtOHrllKwk+KNLBLHU7QYBB/J1ti9fY0A0ueKp g3SqAQlpnjLJgHkocOm6kRCuu4gImi7yZ0RdK29qzfECxguAVD577o7OzRZbNuoisgWG OpaQ== X-Gm-Message-State: APjAAAW93DhXxOwgWgKZc/CrKeEt2cC4m8QuP52zhQIcJ+mLLcWhtTvv ZsKV/qxkUfwuAP1IpyVPDjRHNw== X-Google-Smtp-Source: APXvYqzJ90dZ39SZtSxfoLiRqclYId1UB0Of8dqrtWvCxDHlDZfaOB0kt5KKnoCWV0d1Ffg/2T7KNw== X-Received: by 2002:a5d:484e:: with SMTP id n14mr13113382wrs.348.1560796153248; Mon, 17 Jun 2019 11:29:13 -0700 (PDT) Received: from [192.168.10.150] ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id y44sm12808815wrd.13.2019.06.17.11.29.12 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 11:29:12 -0700 (PDT) To: Kevin Wolf References: <20190612120421.20336-1-stefanha@redhat.com> <20190617122922.GG7397@linux.fritz.box> <25ad60d8-8860-b535-a42b-03d4d63d0802@redhat.com> <20190617175840.GO7397@linux.fritz.box> From: Paolo Bonzini Message-ID: <6080d608-fd8d-1f09-6f40-735e212fbf9e@redhat.com> Date: Mon, 17 Jun 2019 20:27:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190617175840.GO7397@linux.fritz.box> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.221.68 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: 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" 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. This was more or less my reply to this version of the patch. :) Paolo