From nobody Sun Feb 8 12:31:38 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=1611847277; cv=none; d=zohomail.com; s=zohoarc; b=J6uHTQl/yST8Id9zXQnpFNKwCQA+vWmf/1Jm1VAvb059bowLU1K0b+hgrtx1KdIjch6j3SpUpn/WKJdfrs/ph8CEcs48deu9LGzVqYp3/fVXouDNkFEbZt56h5DxemOltVE94UpCOUJXOyI87+Yaw46kj3na/p+o99Gh9FGPc2I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611847277; 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=jOaqPSPB/3u5ESWEG2hLG6mRjRtIltVtmzi2SocbHH8=; b=Mhak3JFvm1sLmatBgBHMII2s8wlZl9i/OkRhpXj6vI8iDUKd4uFCdOwGGV/4UGbOvbsqmCmrZd/cvd2iNLGBhTcvCxGOatqMg135SywtSkqXUNWMe6pwMhpdqcmhrpKGong+zmuPwW3OcM3hcS1CVJc5lCs08N8MY6/BMRg4aVU= 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 1611847277735834.2222692298686; Thu, 28 Jan 2021 07:21:17 -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-262-PoiEVaR3N0GmiO74iZapMQ-1; Thu, 28 Jan 2021 10:21:14 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 59239806685; Thu, 28 Jan 2021 15:21:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B686C60C9B; Thu, 28 Jan 2021 15:21:01 +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 C09254BB7B; Thu, 28 Jan 2021 15:20:57 +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 10SFFqcM029949 for ; Thu, 28 Jan 2021 10:15:52 -0500 Received: by smtp.corp.redhat.com (Postfix) id E731C5D9F1; Thu, 28 Jan 2021 15:15:52 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.40.208.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1FFA05D9EF; Thu, 28 Jan 2021 15:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611847276; 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=jOaqPSPB/3u5ESWEG2hLG6mRjRtIltVtmzi2SocbHH8=; b=Lz5Ektg7EFD8Jd6/LhkBmPhtzxLdQ8CZy7+KpkDWcOhNmSkgzNWn+r8NS++kp8STOgbzPx jLylED3lsl5wjz85xdVzr0ediRzHs8rVcpQw8eUc12j9BEinU+JaEC+Mq+im/qfAw6RGxg wT/Iwd1oL3e5AqJjEXstGiTVhXLLykA= X-MC-Unique: PoiEVaR3N0GmiO74iZapMQ-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 3/7] qemu: add QEMU_CAPS_VHOST_USER_FS_BOOTINDEX Date: Thu, 28 Jan 2021 16:15:36 +0100 Message-Id: <604761fd4e9e312878fcf4ca3f6d196aa3967ba3.1611846596.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.13 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) Introduced by QEMU commit: commit 6da32fe5efdd71c9d254a436ce972194ff631285 Author: Laszlo Ersek AuthorDate: 2021-01-12 14:16:03 +0100 Commit: Michael S. Tsirkin CommitDate: 2021-01-13 09:06:37 -0500 vhost-user-fs: add the "bootindex" property Signed-off-by: J=C3=A1n Tomko --- src/qemu/qemu_capabilities.c | 8 ++++++++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml | 1 + 3 files changed, 10 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index d656732c3e..4a1bf9b6fe 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -610,6 +610,7 @@ VIR_ENUM_IMPL(virQEMUCaps, "dc390", "am53c974", "virtio-pmem-pci", + "vhost-user-fs.bootindex", ); =20 =20 @@ -1510,6 +1511,10 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCap= sDevicePropsNVDIMM[] =3D { { "unarmed", QEMU_CAPS_DEVICE_NVDIMM_UNARMED, NULL }, }; =20 +static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVhostUserF= S[] =3D { + { "bootindex", QEMU_CAPS_VHOST_USER_FS_BOOTINDEX, NULL }, +}; + /* see documentation for virQEMUQAPISchemaPathGet for the query format */ static struct virQEMUCapsStringFlags virQEMUCapsQMPSchemaQueries[] =3D { { "blockdev-add/arg-type/options/+gluster/debug-level", QEMU_CAPS_GLUS= TER_DEBUG_LEVEL}, @@ -1661,6 +1666,9 @@ static virQEMUCapsDeviceTypeProps virQEMUCapsDevicePr= ops[] =3D { { "usb-host", virQEMUCapsDevicePropsUSBHost, G_N_ELEMENTS(virQEMUCapsDevicePropsUSBHost), -1 }, + { "vhost-user-fs-device", virQEMUCapsDevicePropsVhostUserFS, + G_N_ELEMENTS(virQEMUCapsDevicePropsVhostUserFS), + QEMU_CAPS_DEVICE_VHOST_USER_FS }, }; =20 static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsMemoryBackendFi= le[] =3D { diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index a14a78f959..cd95103652 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -590,6 +590,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ QEMU_CAPS_SCSI_DC390, /* -device dc-390 */ QEMU_CAPS_SCSI_AM53C974, /* -device am53c974 */ QEMU_CAPS_DEVICE_VIRTIO_PMEM_PCI, /* -device virtio-pmem-pci */ + QEMU_CAPS_VHOST_USER_FS_BOOTINDEX, /* vhost-user-fs.bootindex */ =20 QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; diff --git a/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_6.0.0.x86_64.xml index bd5021860e..f988357c44 100644 --- a/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_6.0.0.x86_64.xml @@ -251,6 +251,7 @@ + 5002050 0 43100242 --=20 2.29.2