From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 2F79DD15C for ; Thu, 17 Aug 2023 14:42:17 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 07EDB30621 for ; Thu, 17 Aug 2023 14:41:47 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 17 Aug 2023 14:41:46 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id D7ED142013 for ; Thu, 17 Aug 2023 14:41:45 +0200 (CEST) Message-ID: Date: Thu, 17 Aug 2023 14:41:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Content-Language: en-US To: Proxmox VE development discussion , Markus Frank References: <20230118135800.131382-1-m.frank@proxmox.com> <20230118135800.131382-5-m.frank@proxmox.com> From: Fiona Ebner In-Reply-To: <20230118135800.131382-5-m.frank@proxmox.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 1.523 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -3.165 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [qemu.org] Subject: Re: [pve-devel] [PATCH docs v5 4/5] added vIOMMU documentation X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2023 12:42:17 -0000 Am 18.01.23 um 14:57 schrieb Markus Frank: > Signed-off-by: Markus Frank > --- > qm-pci-passthrough.adoc | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/qm-pci-passthrough.adoc b/qm-pci-passthrough.adoc > index df6cf21..0db9b06 100644 > --- a/qm-pci-passthrough.adoc > +++ b/qm-pci-passthrough.adoc > @@ -400,6 +400,31 @@ Example configuration with an `Intel GVT-g vGPU` (`Intel Skylake 6700k`): > With this set, {pve} automatically creates such a device on VM start, and > cleans it up again when the VM stops. > > +[[qm_pci_viommu]] > +vIOMMU > +~~~~~~ > + > +vIOMMU enables the option to passthrough pci devices to Level-2 VMs > +in Level-1 VMs via Nested Virtualisation. Nit: "PCI" should be capitalized, "level" and "nested virtualization" not. Instead of "vIOMMU enables the option to" maybe "Using a vIOMMU allows you to" or "With a vIOMMU you can" are slightly better IMHO. > +> +Host Requirement: Add `intel_iommu=on` or `amd_iommu=on` > +depending on your CPU to your kernel command line. Nit: capitalization of "Requirement" here. You could argue it's a title, but not sure. > + > +VM Requirement: For both Intel and AMD CPUs, set `intel_iommu=on` > +as the kernel parameter in the vIOMMU enabled VM, since qemu-server currently > +uses the Intel variant. The guest vIOMMU only works with the *q35* machine > +type and with *kvm* enabled. A quick sentence why we use the Intel variant might be good > + > +To enable vIOMMU, add `viommu=1` to the machine-parameter in the > +configuration of the VM that should be able to passthrough pci devices. Nit: "PCI" > + > +---- > +# qm set VMID -machine q35,viommu=1 > +---- > + > + > +https://wiki.qemu.org/Features/VT-d > + > ifdef::wiki[] > > See Also