From nobody Sun May 5 22:19:53 2024 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=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1576614929; cv=none; d=zohomail.com; s=zohoarc; b=bonR95y1CUQ8IDBPdd+YecmRMKSkyLtqW7DfwSI6WgnnHhVA1UMUClPOQhC3lMK4uNl8qfL2gBmdSrS9xWwRzEKv2EicW+e43KsHBsq/655Qv6s1XDNmdSFBITqmOdY7kxcPXCZ3w8jJxLkW4ojoMNYFbmEiB4iYLsAj/FrYF+M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576614929; 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=19n5T5G+ItdxClbYRMmEgORFOI5m1awN3v+A1pl7GnM=; b=H9mkGgrmK6jV2xI+VTgV9GQIU0y+BCHsh79eipOsoPACtuHvVv6KZ7tiZCJKaMtCLkANg1DMef+afWiVTdmXi4MYbYcirMhT6Ws2X4aw9Ef7+ueDyGXcV7y9DnW/ISg+RzZco37sRMYbhmlGZ51hG5xAhbFsfBL3m0FJLp0RmUQ= 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=fail 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 1576614929873179.80255069379803; Tue, 17 Dec 2019 12:35:29 -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-197-LpkSclaKPkqV5TOjhxpgEQ-1; Tue, 17 Dec 2019 15:35:26 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2E513800D4C; Tue, 17 Dec 2019 20:35:21 +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 03F2B60BE0; Tue, 17 Dec 2019 20:35:21 +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 9E1C41809567; Tue, 17 Dec 2019 20:35:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBHKZJH1006094 for ; Tue, 17 Dec 2019 15:35:19 -0500 Received: by smtp.corp.redhat.com (Postfix) id 631AA10A4937; Tue, 17 Dec 2019 20:35:19 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5C75010A4932 for ; Tue, 17 Dec 2019 20:35:17 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5B723801E60 for ; Tue, 17 Dec 2019 20:35:17 +0000 (UTC) Received: from mail-qt1-f195.google.com (mail-qt1-f195.google.com [209.85.160.195]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-398-RD-jjS1LPKai-PnSU1O18Q-1; Tue, 17 Dec 2019 15:35:15 -0500 Received: by mail-qt1-f195.google.com with SMTP id b3so9770436qti.10; Tue, 17 Dec 2019 12:35:15 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:2f19:a73a:b6c3:c24a:90f3]) by smtp.gmail.com with ESMTPSA id f23sm7352679qke.104.2019.12.17.12.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 12:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576614928; 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=19n5T5G+ItdxClbYRMmEgORFOI5m1awN3v+A1pl7GnM=; b=bdB6HUv7M1sEW5K1NiX7IkceCxYd8nRXJMkMP5Rmmncn71x5QviPnIBO25PjQHFp1/U/dF Nc02+A2pbPRJp0J8OWkBtFVF1kXPptTjS/gANVtg69fmQx9Vulb9yZ5m+m6yGLFTghHsJ8 A8vy78/LVq5QYYxJhM9uexrn13FNGTY= 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:mime-version:content-transfer-encoding; bh=gMHwgcNViAtvCIqWx2cTE3XbxibCRvdt1ecMtf6kRTw=; b=Xu/32XxAooEDV9a7J0powal+WCqmmB0lNQcELbGDOKaaLbcinCFK3csoBCquHwytLr zFSAzWjncG9RHNy07ECoL1MGUXjL287S0Z2WVr9PoUbiRS6i3NxiRIOiN+56gqZq6+cS +VXjeIK+oM7V4SxcdCRfBMGwDBLEDG+bq/gTUFkgAd6whnkTqygp7u02nggonvjOIGoZ dGuBFixlYCcP05DLBSSRTtiPhx4fm6wjOe5Djcm7j5QYfwl363NeWS8illkr3I3Q8tLQ V/sKONB/uLWd1rMZS/D4TOptGTNQdbOytS8NlXN3JwmkhzphnYvL3jM5vkdSHKykGkky ZLWw== X-Gm-Message-State: APjAAAXHgEL1FMPjHJYrrb5WwaLIhCBgozF1AFlHQ1UtHi5qNyTXGMhZ WIYrwPf/J351fVFujN+fI7vGuU1+ X-Google-Smtp-Source: APXvYqzBHEh0bk3J8xi1c2Ks4pqeRnh34/Mt/hJ67D6nRLhSpqKN2nCc+qlovTNnNSussyO1nHOY3A== X-Received: by 2002:ac8:4708:: with SMTP id f8mr6423924qtp.129.1576614914544; Tue, 17 Dec 2019 12:35:14 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Tue, 17 Dec 2019 17:35:02 -0300 Message-Id: <20191217203505.3803240-2-danielhb413@gmail.com> In-Reply-To: <20191217203505.3803240-1-danielhb413@gmail.com> References: <20191217203505.3803240-1-danielhb413@gmail.com> MIME-Version: 1.0 X-MC-Unique: RD-jjS1LPKai-PnSU1O18Q-1 X-MC-Unique: LpkSclaKPkqV5TOjhxpgEQ-1 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id xBHKZJH1006094 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , laine@laine.org, darkstego@gmail.com, crobinso@redhat.com Subject: [libvirt] [PATCH v6 1/4] Introducing new address type='unassigned' for PCI hostdevs 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.12 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" This patch introduces a new PCI hostdev address type called 'unassigned'. This new type gives users the option to add PCI hostdevs to the domain XML in an 'unassigned' state, meaning that the device exists in the domain, is managed by Libvirt like any regular PCI hostdev, but the guest does not have access to it. This adds extra options for managing PCI device binding inside Libvirt, for example, making all the managed PCI hostdevs declared in the domain XML to be detached from the host and bind to the chosen driver and, at the same time, allowing just a subset of these devices to be usable by the guest. Next patch will use this new address type in the QEMU driver to avoid adding unassigned devices to the QEMU launch command line. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Cole Robinson --- docs/schemas/domaincommon.rng | 5 ++ src/conf/device_conf.c | 2 + src/conf/device_conf.h | 1 + src/conf/domain_conf.c | 7 ++- src/qemu/qemu_command.c | 1 + src/qemu/qemu_domain.c | 1 + src/qemu/qemu_domain_address.c | 5 ++ .../hostdev-pci-address-unassigned.xml | 42 ++++++++++++++ .../hostdev-pci-address-unassigned.xml | 58 +++++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 10 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 tests/qemuxml2argvdata/hostdev-pci-address-unassigned.x= ml create mode 100644 tests/qemuxml2xmloutdata/hostdev-pci-address-unassigned= .xml diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index e964773f5e..5f1d4a34a4 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -5502,6 +5502,11 @@ + + + unassigned + + diff --git a/src/conf/device_conf.c b/src/conf/device_conf.c index 4c57f0995f..4dbd5c1ac9 100644 --- a/src/conf/device_conf.c +++ b/src/conf/device_conf.c @@ -45,6 +45,7 @@ VIR_ENUM_IMPL(virDomainDeviceAddress, "virtio-mmio", "isa", "dimm", + "unassigned", ); =20 static int @@ -120,6 +121,7 @@ virDomainDeviceInfoAddressIsEqual(const virDomainDevice= Info *a, /* address types below don't have any specific data */ case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_S390: + case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UNASSIGNED: break; =20 case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI: diff --git a/src/conf/device_conf.h b/src/conf/device_conf.h index d98fae775c..e091d7cfe2 100644 --- a/src/conf/device_conf.h +++ b/src/conf/device_conf.h @@ -45,6 +45,7 @@ typedef enum { VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO, VIR_DOMAIN_DEVICE_ADDRESS_TYPE_ISA, VIR_DOMAIN_DEVICE_ADDRESS_TYPE_DIMM, + VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UNASSIGNED, =20 VIR_DOMAIN_DEVICE_ADDRESS_TYPE_LAST } virDomainDeviceAddressType; diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index e46f423b19..afa072e17d 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -6352,9 +6352,11 @@ virDomainHostdevDefValidate(const virDomainHostdevDe= f *hostdev) switch ((virDomainHostdevSubsysType) hostdev->source.subsys.type) { case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI: if (hostdev->info->type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NO= NE && + hostdev->info->type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UN= ASSIGNED && hostdev->info->type !=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PC= I) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("PCI host devices must use 'pci' address = type")); + _("PCI host devices must use 'pci' or " + "'unassigned' address type")); return -1; } break; @@ -7371,6 +7373,7 @@ virDomainDeviceInfoFormat(virBufferPtr buf, =20 case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_S390: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE: + case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UNASSIGNED: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_LAST: break; } @@ -7571,6 +7574,7 @@ virDomainDeviceAddressParseXML(xmlNodePtr address, break; =20 case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE: + case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UNASSIGNED: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_LAST: break; } @@ -21951,6 +21955,7 @@ virDomainDeviceInfoCheckABIStability(virDomainDevic= eInfoPtr src, case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE: + case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UNASSIGNED: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_LAST: break; } diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 836057a4ff..864967f375 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -459,6 +459,7 @@ qemuBuildVirtioDevStr(virBufferPtr buf, return -1; =20 case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE: + case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UNASSIGNED: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_LAST: default: virReportEnumRangeError(virDomainDeviceAddressType, info->type); diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 20a9629760..cce99f831f 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -8242,6 +8242,7 @@ qemuDomainDeviceDefValidateAddress(const virDomainDev= iceDef *dev, case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_ISA: case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_DIMM: + case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UNASSIGNED: /* No validation for these address types yet */ break; =20 diff --git a/src/qemu/qemu_domain_address.c b/src/qemu/qemu_domain_address.c index 605984f80f..b077240899 100644 --- a/src/qemu/qemu_domain_address.c +++ b/src/qemu/qemu_domain_address.c @@ -2313,6 +2313,11 @@ qemuDomainAssignDevicePCISlots(virDomainDefPtr def, continue; } =20 + /* do not reserve address for info->type=3D'unassigned' */ + if (def->hostdevs[i]->info->type =3D=3D + VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UNASSIGNED) + continue; + if (qemuDomainPCIAddressReserveNextAddr(addrs, def->hostdevs[i]->info) < = 0) goto error; diff --git a/tests/qemuxml2argvdata/hostdev-pci-address-unassigned.xml b/te= sts/qemuxml2argvdata/hostdev-pci-address-unassigned.xml new file mode 100644 index 0000000000..9a2685ca0e --- /dev/null +++ b/tests/qemuxml2argvdata/hostdev-pci-address-unassigned.xml @@ -0,0 +1,42 @@ + + delete + 583a8e8e-f0ce-4f53-89ab-092862148b25 + 262144 + 4 + + hvm + + + /usr/bin/qemu-system-x86_64 + + + + + + + + +
+ + + + + +
+ +
+ + + + +
+ + + + + +
+ + + + diff --git a/tests/qemuxml2xmloutdata/hostdev-pci-address-unassigned.xml b/= tests/qemuxml2xmloutdata/hostdev-pci-address-unassigned.xml new file mode 100644 index 0000000000..2341e8432b --- /dev/null +++ b/tests/qemuxml2xmloutdata/hostdev-pci-address-unassigned.xml @@ -0,0 +1,58 @@ + + delete + 583a8e8e-f0ce-4f53-89ab-092862148b25 + 262144 + 262144 + 4 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + +
+ + + + + + + +
+ +
+ + + + +
+ +
+ + + + +
+ +
+ + + + +
+ +
+ + +
+ + + diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 55bbd924fb..d0a91df2ad 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -491,6 +491,7 @@ mymain(void) =20 DO_TEST("hostdev-usb-address", NONE); DO_TEST("hostdev-pci-address", NONE); + DO_TEST("hostdev-pci-address-unassigned", QEMU_CAPS_DEVICE_VFIO_PCI); DO_TEST("hostdev-pci-multifunction", QEMU_CAPS_DEVICE_VFIO_PCI); DO_TEST("hostdev-vfio", QEMU_CAPS_DEVICE_VFIO_PCI); DO_TEST("hostdev-vfio-zpci", --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 22:19:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1576614935; cv=none; d=zohomail.com; s=zohoarc; b=jfcLB+4mCZlovRv1/BmzARPEP4f3SdZnC+vt74wATayY5ueYeSRSanclIGh76y9o+NZNCyTy1Inl1k4pGCwE3IyOBCh2j4bQ4UojWfsm9VPjuFNsz3Cn9Rz3u1CxSs23bSa5sSB2oMXEDarZG7XRGX+1y9kfM4MME6PqDTQYBIg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576614935; 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=PyjD9M8LWMnfi0XnEXFSpnPXsWVHFhCMSjtdjU9UsHI=; b=JBzTGCLbEmn3tzNlqUc+qu/zhMAuU0GGIb0TsRmz663BN2NMHAHoGN5hR/bO5BO6RpAaEzKN8+bOYIdEyVDuGB/BtcIcH3i+6zsfpN4Syza8fqFKWFJhmS+M3j9GOQUpRph03OWnpaZC9YB6VCpShGY7G3kFqI7rLnBrLg6AjEA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 157661493538987.09396819198616; Tue, 17 Dec 2019 12:35:35 -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-165-YNqFf_tEOOCob40NQV-iOA-1; Tue, 17 Dec 2019 15:35:32 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 193EC1800D42; Tue, 17 Dec 2019 20:35:27 +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 D6B2460BF1; Tue, 17 Dec 2019 20:35:26 +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 8E9DD18089CE; Tue, 17 Dec 2019 20:35:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBHKZNaO006110 for ; Tue, 17 Dec 2019 15:35:23 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6614E2166B2A; Tue, 17 Dec 2019 20:35:23 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 615542166B29 for ; Tue, 17 Dec 2019 20:35:21 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 62B2E801009 for ; Tue, 17 Dec 2019 20:35:21 +0000 (UTC) Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-394-mz84BJr7OJqtbvGBA_J8KQ-1; Tue, 17 Dec 2019 15:35:17 -0500 Received: by mail-qk1-f196.google.com with SMTP id a203so8414471qkc.3; Tue, 17 Dec 2019 12:35:17 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:2f19:a73a:b6c3:c24a:90f3]) by smtp.gmail.com with ESMTPSA id f23sm7352679qke.104.2019.12.17.12.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 12:35:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576614934; 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=PyjD9M8LWMnfi0XnEXFSpnPXsWVHFhCMSjtdjU9UsHI=; b=V1UBlNARGIZSMhEIaQ5XQujaFf2q8nOEZVTg9xR8txeR3X+pBuIjzTE4Lg9eL344kBKf/5 5F32SG5MGap37PwTi4aFIbVS+piMldEkF0ydKRz4dntP5M1hZvY4sBbRgQYcH1wqWvoNqc hdZLHKuBkuZ02pBWiuJSF0Hr6dzsbJ4= 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:mime-version:content-transfer-encoding; bh=kaOrzxQU/CIu0t5jKh287W+ufUtM28EfjKthsTgmtw0=; b=B9ky8/nVj/lyMWJehnCFr4ioGD+iAPf+FbhkTXa80UQHcCWijkzXW+nkV9W08HGDlI e8bdQZyYTT4xAGs/v0KfUMWIRkwbGH2w+CN6ERQCY9vrohuJpcBasSwXjVlXxcQZXz9e J75L37bm9UTmyfnIuPJHCjg9QbaLN9uUubSCB9rGJfLjP/HJgQOtHP1Gv1W8v0PEpFbJ owAJexW4JIYE1BLpXHp351tTrz+VoYKyqNpZzXvklbFQhqEbcdjZjaHIuPgVvXhhfwx+ fc2mXJmrRQn7grNRl3XWcNPBeb/fwi7MZAs8xsMnxhEh7dX077IvLWZWgbkfcOdLYdiR RpNw== X-Gm-Message-State: APjAAAX/dyvuszB5PMC6p+WPqFqdaYQwAueH6vyTNPr1eEgnBS4vF9ff SCVKnmwFaxA2zIgDzfMZYH1/lYG9 X-Google-Smtp-Source: APXvYqxgtjO0PDHr9d6hL8WN7QAXdgaM0JxxKvOtiH7sK34PuapuVwAMGtZhIaDTbJY3FOKVhJi2xA== X-Received: by 2002:ae9:e649:: with SMTP id x9mr6926885qkl.405.1576614916755; Tue, 17 Dec 2019 12:35:16 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Tue, 17 Dec 2019 17:35:03 -0300 Message-Id: <20191217203505.3803240-3-danielhb413@gmail.com> In-Reply-To: <20191217203505.3803240-1-danielhb413@gmail.com> References: <20191217203505.3803240-1-danielhb413@gmail.com> MIME-Version: 1.0 X-MC-Unique: mz84BJr7OJqtbvGBA_J8KQ-1 X-MC-Unique: YNqFf_tEOOCob40NQV-iOA-1 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id xBHKZNaO006110 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , laine@laine.org, darkstego@gmail.com, crobinso@redhat.com Subject: [libvirt] [PATCH v6 2/4] qemu: handle unassigned PCI hostdevs in command line 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.12 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Previous patch made it possible for the QEMU driver to check if a given PCI hostdev is unassigned, by checking if dev->info->type is VIR_DOMAIN_DEVICE_ADDRESS_TYPE_UNASSIGNED, meaning that this device shouldn't be part of the actual guest launch. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Cole Robinson --- src/qemu/qemu_command.c | 4 +++ .../hostdev-pci-address-unassigned.args | 31 +++++++++++++++++++ tests/qemuxml2argvtest.c | 4 +++ 3 files changed, 39 insertions(+) create mode 100644 tests/qemuxml2argvdata/hostdev-pci-address-unassigned.a= rgs diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 864967f375..ed8b878566 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -5336,6 +5336,10 @@ qemuBuildHostdevCommandLine(virCommandPtr cmd, *bootHostdevNet =3D 0; } =20 + /* Ignore unassigned devices */ + if (hostdev->info->type =3D=3D VIR_DOMAIN_DEVICE_ADDRESS_TYPE_U= NASSIGNED) + continue; + if (qemuCommandAddExtDevice(cmd, hostdev->info) < 0) return -1; =20 diff --git a/tests/qemuxml2argvdata/hostdev-pci-address-unassigned.args b/t= ests/qemuxml2argvdata/hostdev-pci-address-unassigned.args new file mode 100644 index 0000000000..42fae17444 --- /dev/null +++ b/tests/qemuxml2argvdata/hostdev-pci-address-unassigned.args @@ -0,0 +1,31 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-delete \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-delete/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-delete/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-delete/.config \ +QEMU_AUDIO_DRV=3Dnone \ +/usr/bin/qemu-system-x86_64 \ +-name delete \ +-S \ +-machine pc,accel=3Dkvm,usb=3Doff,dump-guest-core=3Doff \ +-m 256 \ +-realtime mlock=3Doff \ +-smp 4,sockets=3D4,cores=3D1,threads=3D1 \ +-uuid 583a8e8e-f0ce-4f53-89ab-092862148b25 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,path=3D/tmp/lib/domain--1-delete/monitor.= sock,\ +server,nowait \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-no-acpi \ +-usb \ +-device vfio-pci,host=3D0005:90:01.0,id=3Dhostdev0,bus=3Dpci.0,addr=3D0x3 \ +-device vfio-pci,host=3D0005:90:01.2,id=3Dhostdev2,bus=3Dpci.0,addr=3D0x4 \ +-device vfio-pci,host=3D0005:90:01.3,id=3Dhostdev3,bus=3Dpci.0,addr=3D0x5 \ +-device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x6 diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 118a460633..bfbed5c31d 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -1332,6 +1332,10 @@ mymain(void) QEMU_CAPS_KVM, QEMU_CAPS_DEVICE_VFIO_PCI); =20 + DO_TEST("hostdev-pci-address-unassigned", + QEMU_CAPS_KVM, + QEMU_CAPS_DEVICE_VFIO_PCI); + DO_TEST("serial-file-log", QEMU_CAPS_CHARDEV_FILE_APPEND, QEMU_CAPS_DEVICE_ISA_SERIAL, --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 22:19:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.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 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1576614959; cv=none; d=zohomail.com; s=zohoarc; b=UJwG8K3W0HTQcBG6xlTD2DJZU+Q/a5q1eOt2auoTwjZDq4wfdtf8LXM0I9PlCGd2hyXy+H5Ng5KnbkY1UmHOTOca9N1QkI67UMntB14uqN1IN7JKE8/BBSnpr/GYcoKoTvzqKCMFzLMg1ECaQzp10Egf/zYbo+THU0Ooc355ySU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576614959; 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=rBpMH5ISW1isBrX41PUdUSvfvDjTPu93eMNLNzSfJoY=; b=jQlvkni3K2w66Gc7YILAg7bixRypip1yJxCcls/xbSR8B13sc1/ccow4ftZZxALbDmy4MksU/EYu88AZCKYGFK7iesl7oNR5xckAbxU1Gxu/2I9zsi9/QLiL9uEJL8IteDEh1zGKxLfr0lE8f7NWwRLU6U/iGU5lHSwdkWU9mgs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1576614959758510.74771275762157; Tue, 17 Dec 2019 12:35:59 -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-298-U0v1oReHPRy7cWy0DhN5Tg-1; Tue, 17 Dec 2019 15:35:55 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5D29B64A81; Tue, 17 Dec 2019 20:35:49 +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 30DFA620B1; Tue, 17 Dec 2019 20:35:49 +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 D646518089C8; Tue, 17 Dec 2019 20:35:48 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBHKZPIr006122 for ; Tue, 17 Dec 2019 15:35:25 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0AF0B2166B2A; Tue, 17 Dec 2019 20:35:25 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 064A72166B29 for ; Tue, 17 Dec 2019 20:35:25 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E0355801009 for ; Tue, 17 Dec 2019 20:35:24 +0000 (UTC) Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-238-GFX6PA2UOgWul4VhNIufEg-1; Tue, 17 Dec 2019 15:35:21 -0500 Received: by mail-qk1-f196.google.com with SMTP id a203so8414557qkc.3; Tue, 17 Dec 2019 12:35:20 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:2f19:a73a:b6c3:c24a:90f3]) by smtp.gmail.com with ESMTPSA id f23sm7352679qke.104.2019.12.17.12.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 12:35:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576614958; 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=rBpMH5ISW1isBrX41PUdUSvfvDjTPu93eMNLNzSfJoY=; b=BfYIMG0Ih+uE4IO0WZsHwjSZjPB+kQ7lwSbRBdGM/reci1ccAFe9dkjm8jXGf3Br7XnI2C vFmj05c5FhE30yt0bR3OxZnKyABTnoj8VtPf3lE4azWrFA7Y3PKDnZ293DNqdNhzKp45Lb ysKHrCtrtadk1cfp5Usr1dEcBTvgs8Y= 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:mime-version:content-transfer-encoding; bh=TL8FDYQkMvUbX7BGhIPHNtPyz0v9TzOXa070RTp3YvE=; b=VyuBN5YSmIVLqdBGnaUsETnwkW7yWFdF6qsEYxadft3iKJP9/vBUznBAhznbVq7iVB UxatvswtKLlw08ZyyXgXR6lsMXjNnrzrrjmN7onTAhhRnQTABHWb+CcFLoSQzjdf+GxN qOpN2XgNBzLCTAQo5la3FNX0/GIJqZr1rKFVL2GENr4Jx8BEzQK1Z6/dMkDOOMThz5Gk lncDlYBgFdDTXLcX6MVBycxW/G0BBg03o7NZre1lARFuM9q/mKpzxApPZ/aqikwjd/Sx f6BUxWWv1kOVCNXzsMdnT51kY1PaTvzhdkb+zMYsfNh8f61dJ3Q6ELzxpYjWLBaz9pzM uf0A== X-Gm-Message-State: APjAAAVkSy1A5l7RjyLf1zlnMLhG4j+fQocKM1hv3MAcaeGqgun7V/U2 7ykE3FmVg8ly7nmI54r9blnHI8oV X-Google-Smtp-Source: APXvYqzmP6JS6IVYPLJCJ3HhcG9klIhTH5ElILD81zY2LH7qQ6PtkYrtI8Lzs0x+UPaHJhy6nyV20Q== X-Received: by 2002:a37:c449:: with SMTP id h9mr7129634qkm.124.1576614918673; Tue, 17 Dec 2019 12:35:18 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Tue, 17 Dec 2019 17:35:04 -0300 Message-Id: <20191217203505.3803240-4-danielhb413@gmail.com> In-Reply-To: <20191217203505.3803240-1-danielhb413@gmail.com> References: <20191217203505.3803240-1-danielhb413@gmail.com> MIME-Version: 1.0 X-MC-Unique: GFX6PA2UOgWul4VhNIufEg-1 X-MC-Unique: U0v1oReHPRy7cWy0DhN5Tg-1 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id xBHKZPIr006122 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , laine@laine.org, darkstego@gmail.com, crobinso@redhat.com Subject: [libvirt] [PATCH v6 3/4] formatdomain.html.in: document
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.11 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Henrique Barboza Reviewed-by: Cole Robinson --- docs/formatdomain.html.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index e06cf2061b..dd04a05f09 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -4203,6 +4203,16 @@ attributes: iobase and irq. Since 1.2.1 +
unassigned
+
For PCI hostdevs, <address type=3D'unassigned'/> + allows the admin to include a PCI hostdev in the domain XML defini= tion, + without making it available for the guest. This allows for configu= rations + in which Libvirt manages the device as a regular PCI hostdev, + regardless of whether the guest will have access to it. + <address type=3D'unassigned'/> is an invalid ad= dress + type for all other device types. + Since 6.0.0 +
=20

Virtio-related options

--=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sun May 5 22:19:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.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 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1576614953; cv=none; d=zohomail.com; s=zohoarc; b=ckdHCwbZfO7NrYBakpYyGsTxxp0R2J06kJAAoPcRb01MEM6sNzJc6i/grGQgQtYH+aP2wbEOeJWMAO8hRjR6+/eIGYwBuKvxN44PnKYftU1p6wvNppX1pjGuV/Gyy5m9lWwvZM/QlxB2v/RTy8obVBQdza/ABYtf0pLTqgnM8Pw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576614953; 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=FIGJmeydv1rsIr05+W+SsPlDcMr/YotMSSbWJIEkJBY=; b=gA1K8QHwsaH1yNny2rA2SgntossgIcnc29vEIHswYzr7F03KPvdOruMMREcPEKXp5ghIx4hddm8fCrOImF2x98C2dgDbjLjy0m+6+nMua0kexYEYNXqieN7c0Pxt7QCKzTWWEaIP9/858rMEsNDGyO16OKP+m9iVcYbbi3ut7KI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1576614953123218.6650127840154; Tue, 17 Dec 2019 12:35:53 -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-334-UgcnuxjaPvOyhSJD3aQd7A-1; Tue, 17 Dec 2019 15:35:49 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BF08710054E3; Tue, 17 Dec 2019 20:35:44 +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 9568B61355; Tue, 17 Dec 2019 20:35:44 +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 49282104905; Tue, 17 Dec 2019 20:35:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBHKZNqe006109 for ; Tue, 17 Dec 2019 15:35:23 -0500 Received: by smtp.corp.redhat.com (Postfix) id 5E9B7215ADC3; Tue, 17 Dec 2019 20:35:23 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5A808215ADC1 for ; Tue, 17 Dec 2019 20:35:23 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3FB888F837E for ; Tue, 17 Dec 2019 20:35:23 +0000 (UTC) Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-11-3idxmmrLP4KolUYV6WMxGQ-1; Tue, 17 Dec 2019 15:35:21 -0500 Received: by mail-qk1-f181.google.com with SMTP id j9so8468699qkk.1; Tue, 17 Dec 2019 12:35:21 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:2f19:a73a:b6c3:c24a:90f3]) by smtp.gmail.com with ESMTPSA id f23sm7352679qke.104.2019.12.17.12.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 12:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576614951; 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=FIGJmeydv1rsIr05+W+SsPlDcMr/YotMSSbWJIEkJBY=; b=STLIpoa3X/aHXHXXOblc10WoITiPNPOzcPEjDAuwZMxd0DWbi6tK9Hlll8Udd71Bsa+RXe mSBZOuChL14bzexQOVhThEsGqhRdhjRpDC2Q2EDDbB3LqxH9G/rZIqS2/o8m+NJsEYpoyw D2pZRSlooMKpQsOyIk5CbHKJyGflduY= 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:mime-version:content-transfer-encoding; bh=FRUS69MOYM2rzSybaUILlY5XSr8p7B/a+P5WSiOq150=; b=qWWgGSxPPYz2SbSn1+si2dPiDriRELohP8pMzLAhw+Afz2oWQFzlbS7ePzJ00l7qqN wTrxeL/6/9aXcsa5ZZTwSTZKGhYOlLzQWHlqZsflHt8Iu9623p4qHugd7345HsZ6Ccqn NxMZy7mWRj6miSrASc5PJ9U2KtzUAIWQmum84PgAfSwzk/7yzf7xqGxzHFXxdh+zzxBM iBuZVqeiTpQOv0xbOJx2HcUhpvYCFPw7jmvBtXQ9mbE834Q7PGNsewbpHFp4QYTbkrJd rrOHDhS1yaB3ze4fKo2Owur8D1zJJ/u834p+UIIlCcdIh+yqCpf7WHuama9zF2HAKppX xxfw== X-Gm-Message-State: APjAAAUk1O9cMtR2HRYjF60ESNZplnNLVlBahYl+TSqoAR9agZ+OAlHD xoe6dPByQhH7koUjUw4kwoEgAygI X-Google-Smtp-Source: APXvYqzvZ7AXoMcup280X5IzHhr0eT/LNaF8nvWXmDa/L3ppQSy7JokbSe+iSGorpfK7HqTIW3UBTg== X-Received: by 2002:a37:8e45:: with SMTP id q66mr7173724qkd.129.1576614920589; Tue, 17 Dec 2019 12:35:20 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Tue, 17 Dec 2019 17:35:05 -0300 Message-Id: <20191217203505.3803240-5-danielhb413@gmail.com> In-Reply-To: <20191217203505.3803240-1-danielhb413@gmail.com> References: <20191217203505.3803240-1-danielhb413@gmail.com> MIME-Version: 1.0 X-MC-Unique: 3idxmmrLP4KolUYV6WMxGQ-1 X-MC-Unique: UgcnuxjaPvOyhSJD3aQd7A-1 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id xBHKZNqe006109 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , laine@laine.org, darkstego@gmail.com, crobinso@redhat.com Subject: [libvirt] [PATCH v6 4/4] news.xml: add address type='unassigned' entry 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.11 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Henrique Barboza Reviewed-by: Cole Robinson --- docs/news.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 2a25b6ca49..055353b9a5 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -54,6 +54,20 @@ written in the RST as an alternative to HTML. + + + new PCI hostdev address type: unassigned + + + A new PCI hostdev address type 'unassigned' is introduced. An + unassigned PCI hostdev behaves like any regular PCI hostdev + inside Libvirt, but it is not usable by the guest. This gives + the user a new option to manage the binding of PCI devices + via Libvirt, declaring PCI hostdevs in the domain XML + but allowing just a subset of them to be assigned to the + guest. + +
--=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list