From nobody Mon Feb 9 20:10:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1640254484; cv=none; d=zohomail.com; s=zohoarc; b=EzjHlTU7hpffTo0GqKWNzwgWDqoaps3M5YP6lNPLu+nuBVuMgRYZLzbYYiVilP414eRdzjH+I7Cb+hWbLXShNq92570a9ej5fJ61tmFEUXjzeNZW4eALdUqKrHa6RQetOzx/YZBZ4eXfWltN70MShXjurRyXnVkfoJB21w86KWM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1640254484; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=ayL3Y6gZm6XhBH2r4HXO5sw4wKPzmz4WxHL5sCFdC0w=; b=nyGqeqDPnk1FaFNYNkHBB44xgw5dxElHmVFmljI8gKuI531HCAQZfzRZG5PeusC5ZdM6TbGqcc6K0JyNZvhUsutpBPIWhhFlw+WYaWnhRM+fEqBg5B4Dm0nMHJSHFY/feRr77Sykj8OE7xWGfLhElp85mNBfl+e01pvxz1nc6Rs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1640254484958349.72844472971735; Thu, 23 Dec 2021 02:14:44 -0800 (PST) Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-103-3s9TR14YP6ukeUYsnVw5hw-1; Thu, 23 Dec 2021 05:14:41 -0500 Received: by mail-wm1-f69.google.com with SMTP id v23-20020a05600c215700b0034566adb612so1844224wml.0 for ; Thu, 23 Dec 2021 02:14:40 -0800 (PST) Return-Path: Return-Path: Received: from x1w.. (33.red-193-152-124.dynamicip.rima-tde.net. [193.152.124.33]) by smtp.gmail.com with ESMTPSA id s1sm7400975wmh.35.2021.12.23.02.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Dec 2021 02:14:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1640254484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ayL3Y6gZm6XhBH2r4HXO5sw4wKPzmz4WxHL5sCFdC0w=; b=F05StKhlw0Db4iujQJzzYbM5LaTnZhrsZ57bsOvs74LF3+7KeKjZwHtnWDjZCqQlYhx3tx fpBtlZCPR/aZeA7pC380WJV32stcTwX0UVqAF/pQxUQew7WVH72A2FhT/BKxiU84kUUZ2Z 2S8ujuIraiIVCPdwvyIG4tcPxQyPu+4= X-MC-Unique: 3s9TR14YP6ukeUYsnVw5hw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ayL3Y6gZm6XhBH2r4HXO5sw4wKPzmz4WxHL5sCFdC0w=; b=vB1sJdh5XdyKUsnV5kWfLKbR8kqjyG9sNQitFKnLMNdVlZp4haAin2SpLGRIugVaAX I8Q0TNtZAgKlkMFSDZucXLzstVpQM34H9YcdZM5y43KeWZ7n/Gyf1pCyY1ri3rMUXGIq E/VlbXe19bEdNo/Dxw0UDceySZh3h8nCkC5gXt6Pp96XNXOQ3uPRqzxAFb72nM8yPedA YjWxqpmRdifZWGMXldInHO7NyoBkn4P004kjMaZ6mGCDl2cWHN7/yWIrzFAt+ue0r9nd fTHIppqVpIb+jmKI5f2NT1XZsn752pz9XFLfGtK0vGayhuifpMIae8QHIYJDa/6ysoBU TOeg== X-Gm-Message-State: AOAM53332YVYf1uuJobhrO6rV1UjvsscLRynkCFpo9fNxop2nvp1q+se gDxCpYBkWBPDwf4TcCjPui/4gxb/hCUfLelrZg7dmjCst3WGNAI+EY6sx7A84xYgh3obOs5qVrH L4k4h7N6Rnjsq8g== X-Received: by 2002:adf:e844:: with SMTP id d4mr1212951wrn.151.1640254479837; Thu, 23 Dec 2021 02:14:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzZ0UO5oY2YIF+4pXbv/1JYA2isTkwfvU1LoGnVF5/B17dvuFf7LivJ76OgR17ZBEyijJdhg== X-Received: by 2002:adf:e844:: with SMTP id d4mr1212940wrn.151.1640254479696; Thu, 23 Dec 2021 02:14:39 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eric Blake , Markus Armbruster , Stefan Hajnoczi , Kevin Wolf , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Qing Wang Subject: [PATCH v2 1/2] qemu-storage-daemon: Add vhost-user-blk help Date: Thu, 23 Dec 2021 11:14:25 +0100 Message-Id: <20211223101426.3143647-2-philmd@redhat.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211223101426.3143647-1-philmd@redhat.com> References: <20211223101426.3143647-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1640254485955100001 Add missing vhost-user-blk help: $ qemu-storage-daemon -h ... --export [type=3D]vhost-user-blk,id=3D,node-name=3D, addr.type=3Dunix,addr.path=3D[,writable=3Don|off] [,logical-block-size=3D][,num-queues=3D] export the specified block node as a vhosts-user-blk device over UNIX domain socket --export [type=3D]vhost-user-blk,id=3D,node-name=3D, fd,addr.str=3D[,writable=3Don|off] [,logical-block-size=3D][,num-queues=3D] export the specified block node as a vhosts-user-blk device over file descriptor ... Fixes: 90fc91d50b7 ("convert vhost-user-blk server to block export API") Reported-by: Qing Wang Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Eric Blake --- storage-daemon/qemu-storage-daemon.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/storage-daemon/qemu-storage-daemon.c b/storage-daemon/qemu-sto= rage-daemon.c index 52cf17e8ace..0c19e128e3f 100644 --- a/storage-daemon/qemu-storage-daemon.c +++ b/storage-daemon/qemu-storage-daemon.c @@ -104,6 +104,19 @@ static void help(void) " export the specified block node over FUSE\n" "\n" #endif /* CONFIG_FUSE */ +#ifdef CONFIG_VHOST_USER_BLK_SERVER +" --export [type=3D]vhost-user-blk,id=3D,node-name=3D,\n" +" addr.type=3Dunix,addr.path=3D[,writable=3Don|off]= \n" +" [,logical-block-size=3D][,num-queues=3D]\n" +" export the specified block node as a\n" +" vhosts-user-blk device over UNIX domain socket\n" +" --export [type=3D]vhost-user-blk,id=3D,node-name=3D,\n" +" fd,addr.str=3D[,writable=3Don|off]\n" +" [,logical-block-size=3D][,num-queues=3D]\n" +" export the specified block node as a\n" +" vhosts-user-blk device over file descriptor\n" +"\n" +#endif /* CONFIG_VHOST_USER_BLK_SERVER */ " --monitor [chardev=3D]name[,mode=3Dcontrol][,pretty[=3Don|off]]\n" " configure a QMP monitor\n" "\n" --=20 2.33.1