From nobody Mon Feb 9 03:14:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1594391663; cv=none; d=zohomail.com; s=zohoarc; b=ZHFXI48XRcDzUOfj50lEyL/mC2CCZGJXrjTKFqDCvouhe3KVaHS9+eeoYZGX/Icbh1E0NszG9sJfkxZDjI+0bO44JKZo5Lw43WnNZkvSvmuNiDxRGj/ev+4gcJZi7aNgRT0spYjirP+xL2HhvQfolP4/6FdkhsOEj7I0BteBphg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594391663; h=Content-Type:Content-Transfer-Encoding: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=o6Q+QCnrkx4wWoqHPxCEp3z7/QjEM9zpe58RzbTbhgs=; b=PgtxkNpdgJhU5cPuwiAieen7txesM8chQr8guCvBtJllFAdBPTG/qFVkeZEH34H1xEgPz0mpPe49PNveVD+a4ru+n1uCoKiSVd0v79Ya4s4q/+tnP8v1J6O0p8C50Ilww/tb0JUeg0WX//n8mC/2di8md1cZEdPCq7u2W9knKWA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1594391663218170.90190089465102; Fri, 10 Jul 2020 07:34:23 -0700 (PDT) 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-319-sdoVpABEO_uJo3tf0Z1mUg-1; Fri, 10 Jul 2020 10:34:19 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 530DA8014D7; Fri, 10 Jul 2020 14:34:10 +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 36B875FC30; Fri, 10 Jul 2020 14:34:10 +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 071D68436D; Fri, 10 Jul 2020 14:34:10 +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 06AEXvJu007103 for ; Fri, 10 Jul 2020 10:33:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6F1147880F; Fri, 10 Jul 2020 14:33:57 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id CE76F17D82 for ; Fri, 10 Jul 2020 14:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594391662; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=o6Q+QCnrkx4wWoqHPxCEp3z7/QjEM9zpe58RzbTbhgs=; b=fum9eXkLQT3PNxpYnR3+ywhIFMSPlNQpTVeDmurjHfd+NZQxVnTyp6X0btv9hh7MC/0SBL r+6A623fKig9mOR2BGKXcII98ZTsC0rFM6bKKclpLQ4onGCjbg1QDxwTHeSX2Q+mokpPhR 6YiwSjw0p2A0qfbDXat+pnmj4ceBdB8= X-MC-Unique: sdoVpABEO_uJo3tf0Z1mUg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 12/18] qemu: capabilities: Add QEMU_CAPS_BLOCKDEV_HOSTDEV_SCSI Date: Fri, 10 Jul 2020 16:33:33 +0200 Message-Id: <330087a30f5c5c9df72eade225deb0a83593dca0.1594391524.git.pkrempa@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 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.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" We want to instantiate hostdevs via -blockdev too. Add a separate capability for them for a clean transition. The new capability will be enabled when QEMU_CAPS_BLOCKDEV is present once all code is prepared. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_capabilities.c | 1 + src/qemu/qemu_capabilities.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index b27a5e5c81..cc54ad9283 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -596,6 +596,7 @@ VIR_ENUM_IMPL(virQEMUCaps, "intel-iommu.aw-bits", "spapr-tpm-proxy", "numa.hmat", + "blockdev-hostdev-scsi" ); diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index dac36b33d9..5d08941538 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -576,6 +576,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ QEMU_CAPS_INTEL_IOMMU_AW_BITS, /* intel-iommu.aw-bits */ QEMU_CAPS_DEVICE_SPAPR_TPM_PROXY, /* -device spapr-tpm-proxy */ QEMU_CAPS_NUMA_HMAT, /* -numa hmat */ + QEMU_CAPS_BLOCKDEV_HOSTDEV_SCSI, /* -blockdev used for (i)SCSI hostdev= s */ QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; --=20 2.26.2