From nobody Sat May 4 19:03:25 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=1576609636; cv=none; d=zohomail.com; s=zohoarc; b=VxXWbjpP4JTkqL7Y9EyWbw7gQMluR9uAy1UO4ILuMGbasqUIKx5bDCASnJ4oyBrowQhTq7qTD16Md5bSQRW8ltKdR26Um1T9iuYHq4eBgNGAlBpKMYLRBLpQ49zhs+f7rfG5JFkgCHF83KNBOkTNy7ZEbDTDbJMAqAyFEE9qf5A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576609636; 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=Ibmsf0StCWYMJJbdtxDzhgpv9tnfaoWgIR4lFYsJc3g=; b=YAy40njVBw1mdMbddYQicDMalZlUzKi+IzDb62HW1ZYDrDGRb2By/av57p7EPkob3mNbcW5BUuT9Bg8hrqqpOWXSsMRYRaA+r+rdF9JZdQD0FI2TkQP0iQbBkBOcRTkbGVoCnHmVoTyKHa9JLs+RQGkJ81qW3qpbskptmfGIoOI= 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 15766096362061007.6993131995639; Tue, 17 Dec 2019 11:07:16 -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-162-Wc5f75E3NPKhJSfBkxfJdw-1; Tue, 17 Dec 2019 14:07:13 -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 A64931B18BF6; Tue, 17 Dec 2019 19:07:07 +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 5B1D77C850; Tue, 17 Dec 2019 19:07:07 +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 DC735104905; Tue, 17 Dec 2019 19:07:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBHJ75Kn002740 for ; Tue, 17 Dec 2019 14:07:05 -0500 Received: by smtp.corp.redhat.com (Postfix) id B2CCDDEEF0; Tue, 17 Dec 2019 19:07:05 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AC5ADEB351 for ; Tue, 17 Dec 2019 19:07:03 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (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 B818C1809A5B for ; Tue, 17 Dec 2019 19:07:03 +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-372-xQbzDnnnPEmjtJmzcF8HLQ-1; Tue, 17 Dec 2019 14:06:59 -0500 Received: by mail-qk1-f196.google.com with SMTP id a203so8179608qkc.3; Tue, 17 Dec 2019 11:06:59 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:2f19:a73a:b6c3:c24a:90f3]) by smtp.gmail.com with ESMTPSA id p19sm8589612qte.81.2019.12.17.11.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 11:06:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576609634; 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=Ibmsf0StCWYMJJbdtxDzhgpv9tnfaoWgIR4lFYsJc3g=; b=CHYxaEe0jWL+89lbQybVm1UIRS0HeiXPkVCpSSsZZ21ioXbJDR9LkNB3lECBSkotRQWmDC Bgrc0ryehkGYrM8V+AXQr7bWpx98PxRhwcvWwN1+3npbj1446I72fovyeujrcQnzDkZtme xwYoyfTmd/HV6aFbbjQAKKAv2CFq3lA= 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=C7xI8+EkTwXYNxBHmHo/r/hJWCzgGi8V6/KLSgpmxzI=; b=VIh6eUkFpjWNZoiIOhzFb47tbEOVkR/xqBf53/hZJtHt1JUI03K8NfYQlq1pY7x0R3 J59J0KR3Ifp/f8SgsADvZu0aguSONlcjNXdiAQMqQd/lKsrL+fqdsx7Efl1rHvP+pby/ Dd6Yykr1HJBQ6ta/9MLnHqWfYwv2t2ieY2DiXksKc06mLfmf7cZ3ogd4qbG+Zz6kE7Fd BsUCHlxe/Ok4SlttqPU6IK1ZKdG6izi4Png9q0Z3b0wJ2VQ5cxbOnSeeDN9C1P2O9eF7 ck1UWk9zBGnYdU+JJXTiE6W4hsDWGbEFOrklnMBjrI+LJZvIN8Z5xBgZOCG2aGcm9czm b06Q== X-Gm-Message-State: APjAAAXk9uSYSwkO2VYxYz8f1I22mvNeoYh0u1TMcAuofJ8Z8wJ78hp9 9gN+dc/10Oo/2a9YE5L/gzCr5b8x X-Google-Smtp-Source: APXvYqwYac+mYtlU+bVO8zumrhney4hL/RxctqTFFFM+tqasQJDv1uoKZCefpHYePgUcCraQyvO3PQ== X-Received: by 2002:a05:620a:100d:: with SMTP id z13mr6950028qkj.475.1576609618663; Tue, 17 Dec 2019 11:06:58 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Tue, 17 Dec 2019 16:06:44 -0300 Message-Id: <20191217190647.3798039-2-danielhb413@gmail.com> In-Reply-To: <20191217190647.3798039-1-danielhb413@gmail.com> References: <20191217190647.3798039-1-danielhb413@gmail.com> MIME-Version: 1.0 X-MC-Unique: xQbzDnnnPEmjtJmzcF8HLQ-1 X-MC-Unique: Wc5f75E3NPKhJSfBkxfJdw-1 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id xBHJ75Kn002740 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , laine@laine.org, darkstego@gmail.com, crobinso@redhat.com Subject: [libvirt] [PATCH v5 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.13 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Today, to use a PCI hostdev "A" in a domain, all PCI devices that belongs to the same IOMMU group must also be declared in the domain XML, meaning that all IOMMU devices are detached from the host and all of them are visible to the guest. The result is that the guest will have access to all devices, but this is not necessarily what the administrator wanted. If only the hostdev "A" was intended for guest usage, but hostdevs "B" and "C" happened to be in the same IOMMU group of "A", the guest will gain access to all 3 devices. This makes the administrator rely on alternative solutions, such as use all hostdevs with un-managed mode and detached all the IOMMU before the guest starts. If use un-managed mode is not an option, the only alternative left is an ACS patch to deny guest access to "B" and "C". This patch introduces a new address type called "unassigned" to handle this situation where a hostdev will be owned by a domain, but not visible to the guest OS. This allows the administrator to declare all the IOMMU while also choosing which hostdevs will be usable by the guest. This new mechanic applies to all PCI hostdevs, regardless of whether they are a PCI multifunction hostdev or not. Using
in any case other than a PCI hostdev will result in error. 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 --- 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 Sat May 4 19:03:25 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=1576609637; cv=none; d=zohomail.com; s=zohoarc; b=jG4rDC26K+AUR9bqF1gKDdXXL4IUXVzU/sAs9nTI48Gt0jIXjlAmyh0DD92MqSJUwHnAKpNHrCLN2v2txAYexT2Feq3BdjzomRRgPA7FxdhSBQGo4rX/rh4WVMWk7Q44XmRj/H9XaCV4YXSaFzstBeoL4qINZLc+46R4AmBxfGk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576609637; 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=WkjKFHLMaD9XlQnHwEa5o69Zxo5029iQfxK1RWoExfW1mSh4plPm7QsD9HHwxAklLcd13A0DDL6oHwCXpemOQRTIkS8XLuTVPV1UD4SmJmO8/jLISl9EXlQTqhwcYniq3psaMw95ZhjA6HKyZIpxIDsJZ57kzevLK73vYUkNW00= 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-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1576609637466638.0779024923327; Tue, 17 Dec 2019 11:07: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-159-nhm4-_VtMgCVPOK4XCvn9w-1; Tue, 17 Dec 2019 14:07:13 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A8F13DC14; Tue, 17 Dec 2019 19:07:07 +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 6557810016E8; Tue, 17 Dec 2019 19:07:07 +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 F302B1048E2; Tue, 17 Dec 2019 19:07:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBHJ75LL002739 for ; Tue, 17 Dec 2019 14:07:05 -0500 Received: by smtp.corp.redhat.com (Postfix) id B258EEB347; Tue, 17 Dec 2019 19:07:05 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AC615EB352 for ; Tue, 17 Dec 2019 19:07:05 +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 0E20E1017A05 for ; Tue, 17 Dec 2019 19:07:05 +0000 (UTC) Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-280-zB6Bxh3cOOmJF8DTWVGF_w-1; Tue, 17 Dec 2019 14:07:01 -0500 Received: by mail-qt1-f196.google.com with SMTP id k40so3656164qtk.8; Tue, 17 Dec 2019 11:07:01 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:2f19:a73a:b6c3:c24a:90f3]) by smtp.gmail.com with ESMTPSA id p19sm8589612qte.81.2019.12.17.11.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 11:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576609636; 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=d9kD/YbteBw5WxhEt+mJV2eJmmkcAxSrttQZLKZvks3B9Lhu6X38P2nVrqW/JI3r/nmYia me2h4PoPHZTSKYNrUQGfizT2E65FDC1mJyk9RcxOhDCb+Mz86eyCKL948y6jwQzepE3nwS r9JDXJOx7sOEqU79orVVRGsySXdOF04= 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=cPCN2M63MW9tHhLoZS3r6NKxwZhYFoqCbvktnr9yGmXIf8CdxYci82YLBHevQ/+qnj 861WVBAlUV+HgUJHvLPeKS8es0JuRa2TQR2n952sSAivTKQiLYbor6bK2hYHAWFR8LVt HH5fbVexSbxMf3hNGRRD2liGAQ7JoiV5F5plk2bwS2Xkdq3gW2hXqu754WjMx11i25jo Z97s8/X890UzUp7Fzp7lawFq8CppJbLER7xsxstPxSxAn4/GH6FnEE/z3UpanC1u7w0A 5l4oaCp4C+sFq3t2ILISSTDOJRznPb9BWu+QqEMALwWTd3zchLsQ0Hehc5WV+OfxEEcv rDkQ== X-Gm-Message-State: APjAAAUl+tjk4bMZoBGbVq2ZWFBV6g2kqkS5So3BE31JLT5BJvI/c91R 6DjbkhxlmlnOArq4qq/aOrsIOy2V X-Google-Smtp-Source: APXvYqzTYCO29071y5UAtWxjcKhTILlNrFb3zKvFhK12U7zsmOwqKK9jaIvxZtdJTLRRBjuWrkghpg== X-Received: by 2002:aed:2150:: with SMTP id 74mr5915235qtc.323.1576609620728; Tue, 17 Dec 2019 11:07:00 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Tue, 17 Dec 2019 16:06:45 -0300 Message-Id: <20191217190647.3798039-3-danielhb413@gmail.com> In-Reply-To: <20191217190647.3798039-1-danielhb413@gmail.com> References: <20191217190647.3798039-1-danielhb413@gmail.com> MIME-Version: 1.0 X-MC-Unique: zB6Bxh3cOOmJF8DTWVGF_w-1 X-MC-Unique: nhm4-_VtMgCVPOK4XCvn9w-1 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id xBHJ75LL002739 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , laine@laine.org, darkstego@gmail.com, crobinso@redhat.com Subject: [libvirt] [PATCH v5 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.84 on 10.5.11.22 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 --- 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 Sat May 4 19:03:25 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; 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 205.139.110.61 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=1576609647; cv=none; d=zohomail.com; s=zohoarc; b=gob4BA9E6E53UYimV+fyYgvE/VvbiR1TPXe01z7DweVlpSFO/2/CXOIBoxZ6P8QdjUZlu9LCzSjZVctXIsojSPUgiWASMhtNwiDLkdC5kJGGmSA3HsUjTXsGHvZbXzVycjVr5GB7OeNWtgc6acA5JBlQUCqHeifjNVhAUgZUMV8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576609647; 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=nuYj1QzVqfHeBpJAyByolJaRAmuyTwGA7LacH3OXGlM=; b=mA0SLtclFpAlgJZSPIDb65xx5zhRSOlb4RusG7diovoIQPsEs3XIXRaknSsj6XgGohgyUZ9dpLz2LtT9H6Rta/OIiAqByMLC9yK7d7F6vQWU2+kMcO6ZQIYBQzW+tFDXz3dp4nU6mjTxIpUNghGMHKUFSzfy1kP4VaDYm0B6l04= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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 [205.139.110.61]) by mx.zohomail.com with SMTPS id 1576609647643226.25681626737162; Tue, 17 Dec 2019 11:07:27 -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-42-AiLsLIZwMlOXdytf38r1rA-1; Tue, 17 Dec 2019 14:07:24 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6F65B1007319; Tue, 17 Dec 2019 19:07:14 +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 446CF5D9E1; Tue, 17 Dec 2019 19:07:14 +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 051BA18089D5; Tue, 17 Dec 2019 19:07:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBHJ77k1002753 for ; Tue, 17 Dec 2019 14:07:08 -0500 Received: by smtp.corp.redhat.com (Postfix) id D759DEB349; Tue, 17 Dec 2019 19:07:07 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D2AE5DEEF0 for ; Tue, 17 Dec 2019 19:07:07 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (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 B7D2B80139F for ; Tue, 17 Dec 2019 19:07:07 +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-159-ydE2h5fCOwu2IHcrYPbGew-1; Tue, 17 Dec 2019 14:07:03 -0500 Received: by mail-qt1-f195.google.com with SMTP id b3so9555262qti.10; Tue, 17 Dec 2019 11:07:03 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:2f19:a73a:b6c3:c24a:90f3]) by smtp.gmail.com with ESMTPSA id p19sm8589612qte.81.2019.12.17.11.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 11:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576609646; 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=nuYj1QzVqfHeBpJAyByolJaRAmuyTwGA7LacH3OXGlM=; b=eZ8YLhM+iTqJQcXk6wym80qbGYkTssGzlw3IUOqem28TxbfQm4SE/9vmQHCvTHAK0eI5XJ dw1hMyZuSGh4fJRl4npdfGChulxwqhVbsn53pqFJLboJ5JXLpLWw9HPVc4I3JLBSHh+/YW 3pTOgkSXOoe99B2i8lz3OJsTfw7JTv8= 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=ZmpxDOeMDlLSdOaN714z/JLzblCCO06RU5ft6Zu8Wgk=; b=EszeVQUXb7QCwDfJeiXDNjD8TgezHx0lgwL4w1afB2740MbRws0izk2jPYLOOvVIN/ N+Z9q8Aqo8JVbGoeuX0p9q42recw6WieTDwMljkUhy7+WJ1VPgvlJuio+QxRjoXPSh4a KAgd70NJ3gFygFg6FCurWXEye1MeFZ+dqfU3kBfRVperewsdZCHKYrE10ySdIR+mloo2 A9n3XshhQoB00gMi45z3GMPpLHFVWKh47qZtlAXVQpHNN7ULcjJUr4ZnTYNXlYJfG5zx 4AxBu62cjXxTHjD7aV5y2AK029MG98wuI0rSZBbqnGUTQdLwNZKvwFNaiU5IhxpbNQGy gjwg== X-Gm-Message-State: APjAAAVnzYZiOqDliCqTP7cpmq4g38t3ntwkgWosWARb5o3fmNcpoSuZ qkOjg1ImCVLrV34OlC7fs1OSqyUM X-Google-Smtp-Source: APXvYqwjXukgcywxV8S0j0E7b6GB4Zp8jsY3ISSgSmfudjEdLMsL3Us+htl88L2n/cobJ33xphjpZg== X-Received: by 2002:ac8:544f:: with SMTP id d15mr6012853qtq.53.1576609622585; Tue, 17 Dec 2019 11:07:02 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Tue, 17 Dec 2019 16:06:46 -0300 Message-Id: <20191217190647.3798039-4-danielhb413@gmail.com> In-Reply-To: <20191217190647.3798039-1-danielhb413@gmail.com> References: <20191217190647.3798039-1-danielhb413@gmail.com> MIME-Version: 1.0 X-MC-Unique: ydE2h5fCOwu2IHcrYPbGew-1 X-MC-Unique: AiLsLIZwMlOXdytf38r1rA-1 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id xBHJ77k1002753 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , laine@laine.org, darkstego@gmail.com, crobinso@redhat.com Subject: [libvirt] [PATCH v5 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.14 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 --- docs/formatdomain.html.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index e06cf2061b..7a5ebdd67e 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -4203,6 +4203,19 @@ 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. This is + an alternative to scenarios in which the admin might be compelled = to use + an ACS patch to remove the device from the guest while Libvirt + retains control of the PCI device. + <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 Sat May 4 19:03:25 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; 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.61 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=1576609642; cv=none; d=zohomail.com; s=zohoarc; b=lffLCtBlhhqRcbUhruqtKhlrpHIVFMHWwsooZ7FYfeK8NUhrL6n6uBU8r9OcqwCWZQNi4po2VR/B/J+P7/zLJXULoQ6pMyMKk7GIGQ/tBPGXKFB8NjrFjU99ttZeEXuBXORLgKIsO4rHvLG5JXfQYers7fuzwuKaizCAWnmKJEw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576609642; 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=0D4A9cY+IQXGmluA/J/YNA0rzsoiPP166Us7USzzyMQ=; b=XOoQhE+Thr/9CF63YdMI958c3y4Ov7H3u5oIFnRGiNxlKs3o8LRpXOTHswWg4AZOduqgqTucUH/ThDi214pqvGPI4O3vfdbZMHue9D3MHz/uec/hAImtDZbskK3ZxmXxwlkX+mIZtBrvAzJGVIHY318g2xoiQRv6hiprSOAgGrA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1576609642600269.64848084279356; Tue, 17 Dec 2019 11:07:22 -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-10-TLou_zYYPVaIMxMXip5Ukw-1; Tue, 17 Dec 2019 14:07:19 -0500 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 3E0E018552A8; Tue, 17 Dec 2019 19:07:14 +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 170BF66834; Tue, 17 Dec 2019 19:07:14 +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 C97F218089CF; Tue, 17 Dec 2019 19:07:13 +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 xBHJ7AgE002769 for ; Tue, 17 Dec 2019 14:07:11 -0500 Received: by smtp.corp.redhat.com (Postfix) id D1CF210A85BB; Tue, 17 Dec 2019 19:07:10 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CD13A10A85B7 for ; Tue, 17 Dec 2019 19:07:10 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (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 B425A1809A4F for ; Tue, 17 Dec 2019 19:07:09 +0000 (UTC) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-58-UZHA6m-HNKGzjARO_o2kmg-1; Tue, 17 Dec 2019 14:07:06 -0500 Received: by mail-qk1-f170.google.com with SMTP id z76so6183905qka.2; Tue, 17 Dec 2019 11:07:05 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:2f19:a73a:b6c3:c24a:90f3]) by smtp.gmail.com with ESMTPSA id p19sm8589612qte.81.2019.12.17.11.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 11:07:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576609641; 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=0D4A9cY+IQXGmluA/J/YNA0rzsoiPP166Us7USzzyMQ=; b=KpZHITMzw5YL5GbPbDWB8qoHNGnycF14TSPXkmZK1z0nFcPbjv81Ly1jKYaVR0E+p3ipYo 6UNAo10IuJxuWmS6/YUGB2Bwmi7t53SZqzWBj+lljw06IA3PexEv+JeeP2kfngm+FJLYkM DdgbHI68J+O4tpVAlte+gFLCpxHz/3Y= 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=8aIDYMNzpNdEUI++t/z4tL+zXwmCL5Juxg088KeX8Hk=; b=q1p8w90W71wFqu2nRUB4jFpA+p9HC40QFdBzPYMOuPo3oxch0QnBJkMZ360IkXACb5 IJ6+Frx4gs4pZm32WMNt0IrDzXWdrVfq07G7T5ThOkIaEOqL/eWUqmsQeB2SHz1FqFVF eqPlxaTkrqPNamDzEZ0dO0j2KmWdxERIhvQ2CWKsmAKCyVMFEFV/3AxZ87T4gUa/sg8S KLGvfmPvgwQ9MzPX9nXW3wjXJXjoAOgbXFeyI9ZnQcth0d/yVt+LJ6wM58LY6oZE+LqE qnAynnNmoVdyPP1sEUypzIqB+7FqZ3JheJXVmJpCzDWEsIcjQPJIbrY8vPZl10vzq0sw 1vPw== X-Gm-Message-State: APjAAAVj+R0nZz4MBBIfH4Z93JJTPelDXsn43WKHGgUAwMn2sX5mRQtV V1SpX4E3zlOhWD71LTjLLBkb/tGQ X-Google-Smtp-Source: APXvYqwckUZzrmAQKPHgGumHBKRuLHqI0jaUlqU/VX0YsMy6LG5U1pKMtjI6I8uf+YAUnSK5vZMnvA== X-Received: by 2002:a05:620a:21d4:: with SMTP id h20mr6442361qka.468.1576609624675; Tue, 17 Dec 2019 11:07:04 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Tue, 17 Dec 2019 16:06:47 -0300 Message-Id: <20191217190647.3798039-5-danielhb413@gmail.com> In-Reply-To: <20191217190647.3798039-1-danielhb413@gmail.com> References: <20191217190647.3798039-1-danielhb413@gmail.com> MIME-Version: 1.0 X-MC-Unique: UZHA6m-HNKGzjARO_o2kmg-1 X-MC-Unique: TLou_zYYPVaIMxMXip5Ukw-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 xBHJ7AgE002769 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , laine@laine.org, darkstego@gmail.com, crobinso@redhat.com Subject: [libvirt] [PATCH v5 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.16 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 --- docs/news.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 2a25b6ca49..febda970f6 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, + giving users the option to choose which PCI hostdevs + within the same IOMMU group will not be assigned to the + guest. PCI hostdevs that shouldn't be used by the guest + can be classified as address type=3D'unassigned'. + Libvirt will still be able to manage the device as a + regular PCI hostdev. + +
--=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list