15.4. Removing a PCI passthrough device for host re-use
List all PCI devicesFor a list of only PCI devices, run the following command:
# virsh nodedev-list | grep pciEach 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):
lspci -n(which turns off name resolution) output can assist in deriving which device has which device identifier code.
Remove and re-attach the deviceAfter removing the device either from the guest XML file or virt-manager, run the
virsh 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