<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PCI Passthrough back to dom0]]></title><description><![CDATA[<p dir="auto">I've been trying to do pci passthrough of an AMD 5600xt . I got it to work on a Windows VM (though I did not test its performance), but now I want to assign the pci back to dom0, and I can't seem to find a straight answer on the web.</p>
<p dir="auto">I tried</p>
<pre><code># xl pci-assignable-remove -r &lt;uuid&gt;
</code></pre>
<p dir="auto">based on <a href="https://wiki.xenproject.org/wiki/Xen_4.2:_xl_and_pci_pass-through" target="_blank" rel="noopener noreferrer nofollow ugc">xen</a> documentation but that did not work</p>
<p dir="auto">Out of frustration I did:</p>
<pre><code>/opt/xensource/libexec/xen-cmdline --set-dom0 "xen-pciback.hide=()"
</code></pre>
<p dir="auto">and when I checked</p>
<pre><code>pci-assignable-list
</code></pre>
<p dir="auto">I got</p>
<pre><code>libxl: error: libxl_pci.c:427:libxl_device_pci_assignable_list: Looks like pciback driver not loaded
</code></pre>
<p dir="auto">Does any one see this being an issue/problem later on?</p>
<p dir="auto">What would be the proper command to give the pci back to dom0?</p>
]]></description><link>https://xcp-ng.org/forum/topic/3534/pci-passthrough-back-to-dom0</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 17:13:43 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/3534.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Sep 2020 04:49:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Thu, 01 Jun 2023 16:24:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dthenot" aria-label="Profile: dthenot">@<bdi>dthenot</bdi></a> THANK YOU !!</p>
]]></description><link>https://xcp-ng.org/forum/post/62825</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/62825</guid><dc:creator><![CDATA[lotusdew]]></dc:creator><pubDate>Thu, 01 Jun 2023 16:24:22 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Thu, 01 Jun 2023 15:10:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/lotusdew" aria-label="Profile: lotusdew">@<bdi>lotusdew</bdi></a> Your second PCI address is wrong. You have a dot instead of a colon: <code>0000:03.00.1</code> -&gt; <code>0000:03:00.1</code>.</p>
]]></description><link>https://xcp-ng.org/forum/post/62816</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/62816</guid><dc:creator><![CDATA[dthenot]]></dc:creator><pubDate>Thu, 01 Jun 2023 15:10:28 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Thu, 01 Jun 2023 10:39:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> : I was able to do a passthrough and assign to VM. But then I needed to detach it. I did<br />
/opt/xensource/libexec/xen-cmdline --delete-dom0 xen-pciback.hide</p>
<p dir="auto">then followed by</p>
<p dir="auto">/opt/xensource/libexec/xen-cmdline --set-dom0 "xen-pciback.hide=(0000:03:00.0)(0000:03.00.1)(0000:03:00.2)"</p>
<p dir="auto">I had subsequently assigned it to a VM. Then I</p>
<p dir="auto">Then reboot. The first time I did it it worked fine.</p>
<p dir="auto">However, now its not working anymore.</p>
<p dir="auto">My boot config looks like</p>
<p dir="auto">menuentry 'XCP-ng' {<br />
search --label --set root root-fwztre<br />
multiboot2 /boot/xen.gz dom0_mem=7584M,max:7584M watchdog ucode=scan dom0_max_vcpus=1-16 crashkernel=256M,below=4G console=vga vga=mode-0x0311<br />
module2 /boot/vmlinuz-4.19-xen root=LABEL=root-fwztre ro nolvm hpet=disable console=hvc0 console=tty0 quiet vga=785 splash plymouth.ignore-serial-consoles xen-pciback.hide=(0000:03:00.0)(0000:03.00.1)(0000:03:00.2)<br />
module2 /boot/initrd-4.19-xen.img</p>
<p dir="auto">[16:07 xilinx-xcp ~]# xl pci-assignable-list<br />
libxl: error: libxl_pci.c:427:libxl_device_pci_assignable_list: Looks like pciback driver not loaded</p>
<p dir="auto">Deleting and recreating the pciback.hide is not solving the problem.</p>
]]></description><link>https://xcp-ng.org/forum/post/62806</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/62806</guid><dc:creator><![CDATA[lotusdew]]></dc:creator><pubDate>Thu, 01 Jun 2023 10:39:10 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Tue, 08 Sep 2020 17:06:01 GMT]]></title><description><![CDATA[<p dir="auto">Gotcha<br />
Will do<br />
Thanks for the help!</p>
]]></description><link>https://xcp-ng.org/forum/post/31099</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/31099</guid><dc:creator><![CDATA[l1c]]></dc:creator><pubDate>Tue, 08 Sep 2020 17:06:01 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Tue, 08 Sep 2020 15:41:39 GMT]]></title><description><![CDATA[<p dir="auto">There's a link in the bottom of every documentation page <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=a78c449d9ac" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/31096</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/31096</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Tue, 08 Sep 2020 15:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Tue, 08 Sep 2020 14:15:06 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for all the help everyone. Everyone here is always very helpful<br />
How does one go about modifying the docs?</p>
]]></description><link>https://xcp-ng.org/forum/post/31094</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/31094</guid><dc:creator><![CDATA[l1c]]></dc:creator><pubDate>Tue, 08 Sep 2020 14:15:06 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Tue, 08 Sep 2020 06:59:19 GMT]]></title><description><![CDATA[<p dir="auto">Exactly as <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tony" aria-label="Profile: tony">@<bdi>tony</bdi></a> said, the option <code>--delete-dom0</code> just remove the option from the booting command line given to dom0, if you need to remove a device you just need to remove it from the command when calling <code>--set-dom0</code>. I'll take a look at the doc, you can modify it too, we are always open to contribution <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=a78c449d9ac" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> .</p>
]]></description><link>https://xcp-ng.org/forum/post/31050</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/31050</guid><dc:creator><![CDATA[dthenot]]></dc:creator><pubDate>Tue, 08 Sep 2020 06:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Tue, 08 Sep 2020 06:40:43 GMT]]></title><description><![CDATA[<p dir="auto">You can use the following command to display all the PCI devices being passthrough, and then just set them up again without the one you want to remove.</p>
<pre><code>/opt/xensource/libexec/xen-cmdline --get-dom0 xen-pciback.hide
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/31046</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/31046</guid><dc:creator><![CDATA[tony]]></dc:creator><pubDate>Tue, 08 Sep 2020 06:40:43 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Tue, 08 Sep 2020 00:11:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dthenot" aria-label="Profile: dthenot">@<bdi>dthenot</bdi></a> Before this thread dies, I just wanted to ask one more thing.<br />
How would you go about only giving back one pci device back dom0?</p>
]]></description><link>https://xcp-ng.org/forum/post/31039</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/31039</guid><dc:creator><![CDATA[l1c]]></dc:creator><pubDate>Tue, 08 Sep 2020 00:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Mon, 07 Sep 2020 20:18:06 GMT]]></title><description><![CDATA[<p dir="auto">I see. I suspected that line in the docs would be it.<br />
In that case, may I suggest modifying the wording in the docs? The current wording suggests the opposite. At least it does to me. The "from" in the docs makes it read as if you are hiding all devices <em>from</em> dom0.</p>
]]></description><link>https://xcp-ng.org/forum/post/31033</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/31033</guid><dc:creator><![CDATA[l1c]]></dc:creator><pubDate>Mon, 07 Sep 2020 20:18:06 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Mon, 07 Sep 2020 15:35:01 GMT]]></title><description><![CDATA[<p dir="auto"><code>/opt/xensource/libexec/xen-cmdline --delete-dom0 xen-pciback.hide</code> should do the trick to remove the device from the pci-assignable list of devices at the next reboot.<br />
dom0 rebooting will take control of the device.</p>
]]></description><link>https://xcp-ng.org/forum/post/31026</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/31026</guid><dc:creator><![CDATA[dthenot]]></dc:creator><pubDate>Mon, 07 Sep 2020 15:35:01 GMT</pubDate></item><item><title><![CDATA[Reply to PCI Passthrough back to dom0 on Mon, 07 Sep 2020 05:34:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/l1c" aria-label="Profile: l1c">@<bdi>l1c</bdi></a> I am not 100% sure but can you check your grub.cfg and see if the pciback.hide is still there?</p>
<pre><code>/boot/efi/EFI/xenserver/grub.cfg
</code></pre>
<p dir="auto">If it is there remove the text  xen-pciback.hide=(xx:xx.X) . (assuming your system uses EFI)</p>
<p dir="auto">But use this for the last resort, I am sure someone here will have better solution.</p>
]]></description><link>https://xcp-ng.org/forum/post/30998</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/30998</guid><dc:creator><![CDATA[onur]]></dc:creator><pubDate>Mon, 07 Sep 2020 05:34:42 GMT</pubDate></item></channel></rss>