Message ID | 20190320112646.3712-5-xieyongji@baidu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 86D4315AC for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 20 Mar 2019 11:31:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67C9C298E6 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 20 Mar 2019 11:31:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B0CD29B51; Wed, 20 Mar 2019 11:31:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0C9B4298E6 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 20 Mar 2019 11:31:00 +0000 (UTC) Received: from localhost ([127.0.0.1]:46451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1h6ZQx-0002Bz-Bs for patchwork-qemu-devel@patchwork.kernel.org; Wed, 20 Mar 2019 07:30:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <elohimes@gmail.com>) id 1h6ZNi-0007pl-Gp for qemu-devel@nongnu.org; Wed, 20 Mar 2019 07:27:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <elohimes@gmail.com>) id 1h6ZNh-0003tX-Nc for qemu-devel@nongnu.org; Wed, 20 Mar 2019 07:27:38 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:44185) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <elohimes@gmail.com>) id 1h6ZNh-0003t6-CJ for qemu-devel@nongnu.org; Wed, 20 Mar 2019 07:27:37 -0400 Received: by mail-pf1-x444.google.com with SMTP id a3so1703218pff.11 for <qemu-devel@nongnu.org>; Wed, 20 Mar 2019 04:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EbPLfyFegwraFvXszMNR0JA56wbGdOH6VgYSV24TTnM=; b=NQOPivmuoA3Cu8i4uIHs0dnpQxIRx/SanZ8IhOTppVpqmFeV4FQO53opyhE89NusqJ ZQV2C51HtdX8OC3UhVcQoIkZno0AV0wTIVOK0AsgAJFK//zDCdGOADJl9L8RDK7sJlnI TK7xH7kpIxlx+CroF6RU8uYkbawLDRs215q9uVqZz36zeD9wdCTxmX1DFzR0mPLR/VGm 6WiLLOD3gYwrbEea3MN7hg2RcrdWz6vTbLyS/DwM1SqhADh527EBRsvwNN8doqEGZbJ9 EARxbPr9WAfPVQJ8HPS/RKz1c2Zts/Q0zPKSfqf5VJ26Idj8SXm5utn9pgXfVGqext80 5E0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EbPLfyFegwraFvXszMNR0JA56wbGdOH6VgYSV24TTnM=; b=ojeAhxRAFPcI7BxX1Pf6NDidiBH2qYZMDE9//iiU10KQnEsYjt+TYXWl43PnEZ0b6L 131WWPMhnRqnQg9EuQBwvY1+tSBHAMJA0OvsHWck1H1sgVp6HYmoM2lA1vLsyXrY68bU lmjGJbssJAg5i4aI9cChj/IHGEolqInHDTeK+JcXlLVoZ9gUdmMq+CZiR4wfMwjdc+rm oV6WK3l6VO/oOtUGhMZ4lGBPvlMIxQ8jpPiwpvXbAkndwH9P4BaH0VgCBhM0JZweQkPU wIq1PO0CRHZaDhrj13lrAD9ghIxTSnYd5QebTwle+XzAJgVh1drf9XUF9/uPwnpmnKG6 a8Yg== X-Gm-Message-State: APjAAAXdtIR9ODJSujfl38NuT21/NqtrOYEvbb920fAhkCsjnL4WWmjX 2n+6wdnzXaKz9Sv6Vt1qwM8= X-Google-Smtp-Source: APXvYqzoRJmYPspSqbdZzI8/gt3priilWgksSroOgw8aYDnqLwynujUXmDJZwfVGPd+PLUr0tg1xVQ== X-Received: by 2002:a63:36cb:: with SMTP id d194mr7399974pga.426.1553081256329; Wed, 20 Mar 2019 04:27:36 -0700 (PDT) Received: from localhost ([116.247.112.152]) by smtp.gmail.com with ESMTPSA id d23sm4884862pfn.69.2019.03.20.04.27.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 04:27:35 -0700 (PDT) From: elohimes@gmail.com X-Google-Original-From: xieyongji@baidu.com To: mst@redhat.com, kwolf@redhat.com, mreitz@redhat.com, stefanha@gmail.com, marcandre.lureau@redhat.com, berrange@redhat.com, jasowang@redhat.com, maxime.coquelin@redhat.com, yury-kotov@yandex-team.ru, wrfsh@yandex-team.ru, changpeng.liu@intel.com Date: Wed, 20 Mar 2019 19:26:43 +0800 Message-Id: <20190320112646.3712-5-xieyongji@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190320112646.3712-1-xieyongji@baidu.com> References: <20190320112646.3712-1-xieyongji@baidu.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 Subject: [Qemu-devel] [PATCH v8 4/7] vhost-user-blk: Only start vhost-user backend with the first kick X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: nixun@baidu.com, qemu-devel@nongnu.org, lilin24@baidu.com, zhangyu31@baidu.com, chaiwen@baidu.com, Xie Yongji <xieyongji@baidu.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
vhost-user-blk: Add support for backend reconnecting
|
expand
|
diff --git a/hw/block/vhost-user-blk.c b/hw/block/vhost-user-blk.c index 700c1dd111..39e1adc60a 100644 --- a/hw/block/vhost-user-blk.c +++ b/hw/block/vhost-user-blk.c @@ -239,8 +239,7 @@ static void vhost_user_blk_handle_output(VirtIODevice *vdev, VirtQueue *vq) VHostUserBlk *s = VHOST_USER_BLK(vdev); int i; - if (!(virtio_host_has_feature(vdev, VIRTIO_F_VERSION_1) && - !virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1))) { + if (!vdev->start_on_kick) { return; }