From nobody Tue Feb 10 06:58:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1545128656057436.65568013050165; Tue, 18 Dec 2018 02:24:16 -0800 (PST) Received: from localhost ([::1]:52891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZCGj-0003RV-I1 for importer@patchew.org; Tue, 18 Dec 2018 05:06:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZCBu-0007yV-N3 for qemu-devel@nongnu.org; Tue, 18 Dec 2018 05:01:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZCBp-0001xg-4p for qemu-devel@nongnu.org; Tue, 18 Dec 2018 05:01:30 -0500 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:37016) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZCBj-0001pw-0O for qemu-devel@nongnu.org; Tue, 18 Dec 2018 05:01:20 -0500 Received: by mail-pf1-x429.google.com with SMTP id y126so7904420pfb.4 for ; Tue, 18 Dec 2018 02:01:07 -0800 (PST) Received: from localhost ([116.247.112.152]) by smtp.gmail.com with ESMTPSA id v13sm19592437pff.20.2018.12.18.02.01.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Dec 2018 02:01:05 -0800 (PST) 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=+Re0b4zNNjUXLr7rKoznUrCpDS04NWSaUgo9sUZ+bhA=; b=DZhdfHYMB5WcfmjuWtaUj7g/zjJR9RwGfj41YF4G3ipSzeMYEbpp9RR3nlTpzc8RtH dE7sqUtFXmn4Xyjxb8jkeYaExGXc/UccPzekZWeDh9r0RYY+CrPLA9gNRGBpTXVgko2K aWbQRg0g2zn7KKDF4Z7BgGDmZViqPvHkMj6Yj8nDCUn4nxj4wpABb/ASIEehGRY62zmL 042+aNbLbgbwdH6uqiN5mpjwb/8dCYx7EMYdqmFJXRjpc1SbeyWfr5QpiQ3qT3cVKhli oh5fDujlLTANcK9v5KvmlQ7O2YSj10OP1CCMNuTO9zjYVAH8bQw8WtgCB+f+JzYAchiw D4rQ== 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=+Re0b4zNNjUXLr7rKoznUrCpDS04NWSaUgo9sUZ+bhA=; b=WO+SpGRGIGZVcZQDPFb9aLsQOmHFjAl8GkVfwMvr4Wh729wO4f9E2848m12PhUrLFi 5T6KWrIOvS3lL55I9p12tuzvoMfzl3SGkTzB3cnRm/TyT0F+Iz6bJavDdcWfKX6YjQTW /5OmYJAB2I/4JIqzGKgNahc4J5+7MhzV0cUkSoQCGQs5bCTLrsAVWPwkPIr4yVBG+xKg nOlYURhRVEEWOBsMFlqRwN9qc9MHne9PG98rMmSeJb/eNVHqLgR99AMkLeFcGtpMp6ad iIISou/ev4u2lZiDwtdW49ARJhs34+Hr8J4Y2fjV6ImWy4ZSU12MIZWjIz6VR16CuvT8 XVcQ== X-Gm-Message-State: AA+aEWbsMjocxiawbl46nCBybsz70olRjJQGTErk9BJMRjsvd/RMhWD0 95xfMv4NTgDsi4i/soFV2zI= X-Google-Smtp-Source: AFSGD/VFZyIYC05+Dqm6LvgCr7HexLTEas7+Xake0bXBCC7+ikd8nPFr09bgpwmpjunpuWzcFIsvwg== X-Received: by 2002:a63:e915:: with SMTP id i21mr14752266pgh.409.1545127266296; Tue, 18 Dec 2018 02:01:06 -0800 (PST) From: elohimes@gmail.com X-Google-Original-From: xieyongji@baidu.com To: mst@redhat.com, marcandre.lureau@redhat.com, jasowang@redhat.com, yury-kotov@yandex-team.ru, maxime.coquelin@redhat.com Date: Tue, 18 Dec 2018 18:00:02 +0800 Message-Id: <20181218100002.11219-8-xieyongji@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218100002.11219-1-xieyongji@baidu.com> References: <20181218100002.11219-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::429 Subject: [Qemu-devel] [PATCH v2 for-4.0 7/7] contrib/vhost-user-blk: enable inflight I/O recording X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nixun@baidu.com, qemu-devel@nongnu.org, lilin24@baidu.com, zhangyu31@baidu.com, chaiwen@baidu.com, Xie Yongji Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Xie Yongji This patch enables inflight I/O recording for vhost-user-blk backend so that we could restart it safely. Signed-off-by: Xie Yongji Signed-off-by: Zhang Yu --- contrib/vhost-user-blk/vhost-user-blk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/vhost-user-blk/vhost-user-blk.c b/contrib/vhost-user-b= lk/vhost-user-blk.c index 571f114a56..b144490fd6 100644 --- a/contrib/vhost-user-blk/vhost-user-blk.c +++ b/contrib/vhost-user-blk/vhost-user-blk.c @@ -328,7 +328,8 @@ vub_get_features(VuDev *dev) static uint64_t vub_get_protocol_features(VuDev *dev) { - return 1ull << VHOST_USER_PROTOCOL_F_CONFIG; + return 1ull << VHOST_USER_PROTOCOL_F_CONFIG | + 1ull << VHOST_USER_PROTOCOL_F_SLAVE_SHMFD; } =20 static int --=20 2.17.1