Show Table of Contents
15.4. Removing a PCI passthrough device for host re-use
Perform the following steps to remove a PCI passthrough device so that the host regains full access to the device:
List all PCI devices
For a list of only PCI devices, run the following command:# virsh nodedev-list | grep pci
Each PCI device is identified by a string in the following format (where 8086 is a variable that in this case represents Intel equipment, and **** is a four digit hexadecimal code specific to each device):pci_8086_****
Note
Comparinglspcioutput tolspci -n(which turns off name resolution) output can assist in deriving which device has which device identifier code.Remove and re-attach the device
After removing the device either from the guest XML file or virt-manager, run thevirsh nodedev-reattachcommand to return its use to the host, substituting your PCI device name that is designated for removal:# virsh nodedev-reattach pci_8086_3a6c

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.