From nobody Sun Feb 8 17:46:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@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 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1611847300; cv=none; d=zohomail.com; s=zohoarc; b=B+9XtREyWRm5UkxMrj3t5raEy/rkOpm3mO10Vle7FDu3e5lPWcdRnEN+qzsS//Kc1yWHuxNUnQuL4n9WK2hXyFmIL/wxCdOljsJy33x9EUklXy58I7eHIsX/szHD1rd1HFUjezPBaagdQwUKoAqiZbvgy5OyhH9F7H0lPyGTOxU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611847300; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=JZa0KUCyzV6tnBlaV+mUYn/yDX8D0+6zsKIFaiaPx/I=; b=XQSdqoZwhbLqtFLtP9fo9tRTDKQYFNScKT1ZwXNTm4Bh2DNwe0gBAKa0+sZDT7v0fNL8aOhS17BwOhx5lCf2g5JsZhPnGv6YqWb8UR9p+fe2kY0+nJp/zfJVhqUOluy6FubIu3grm/mz0g2uVNDRcu639RzwmcotO7HOPBllN88= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 161184730096934.912321677149976; Thu, 28 Jan 2021 07:21:40 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-464-qFmQoTxANnqV5pMZZEfjCw-1; Thu, 28 Jan 2021 10:21:37 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0307F806674; Thu, 28 Jan 2021 15:21:31 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CE9E71945C; Thu, 28 Jan 2021 15:21:30 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 94E751809C9F; Thu, 28 Jan 2021 15:21:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 10SFFwC3030000 for ; Thu, 28 Jan 2021 10:15:58 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0DCDE5D9F6; Thu, 28 Jan 2021 15:15:58 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.40.208.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3D1575D9EF; Thu, 28 Jan 2021 15:15:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611847299; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=JZa0KUCyzV6tnBlaV+mUYn/yDX8D0+6zsKIFaiaPx/I=; b=iYO/X/RT8PeQ7ZnEHV4WKMc7V2AMn+ioWGhsiM7fFYddCBbMDZ5AKjUckssceyV15QopyM Ba9e8T68xIOFEb2lgCWwEv3fNBSCfUnT3KcwO1tyjtYXuSnJQNjsjRAWtcHf3kpKy0GyLY 5cOopkHBPCIREfgCX5Oqil4kpea9Wyw= X-MC-Unique: qFmQoTxANnqV5pMZZEfjCw-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 7/7] qemu: format bootindex for vhost-user-fs Date: Thu, 28 Jan 2021 16:15:40 +0100 Message-Id: <4c791d82235ab836e86d1cb7e647d25f80cfb1e5.1611846597.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: lersek@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@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) Wire up the QEMU command line for this option. Signed-off-by: J=C3=A1n Tomko --- src/qemu/qemu_command.c | 3 +++ .../vhost-user-fs-hugepages.x86_64-latest.args | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 1ec302d4ac..ac19902025 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -2194,6 +2194,9 @@ qemuBuildVHostUserFsCommandLine(virCommandPtr cmd, virQEMUBuildBufferEscapeComma(&opt, fs->dst); qemuBuildVirtioOptionsStr(&opt, fs->virtio); =20 + if (fs->info.bootIndex) + virBufferAsprintf(&opt, ",bootindex=3D%u", fs->info.bootIndex); + if (qemuBuildDeviceAddressStr(&opt, def, &fs->info, priv->qemuCaps) < = 0) return -1; =20 diff --git a/tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.a= rgs b/tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args index e4f5db7a63..24cafed400 100644 --- a/tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args +++ b/tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args @@ -42,7 +42,8 @@ addr=3D0x1 \ -device virtio-blk-pci,bus=3Dpci.4,addr=3D0x0,drive=3Dlibvirt-1-format,\ id=3Dvirtio-disk0,bootindex=3D1 \ -chardev socket,id=3Dchr-vu-fs0,path=3D/tmp/lib/domain--1-guest/fs0.vhost-= fs.sock \ --device vhost-user-fs-pci,chardev=3Dchr-vu-fs0,tag=3Dmount_tag,bus=3Dpci.1= ,addr=3D0x0 \ +-device vhost-user-fs-pci,chardev=3Dchr-vu-fs0,tag=3Dmount_tag,bootindex= =3D2,\ +bus=3Dpci.1,addr=3D0x0 \ -sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,\ resourcecontrol=3Ddeny \ -msg timestamp=3Don --=20 2.29.2