From eebb350680c6367c08ac82e827d8098d7f9a73ba Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Wed, 27 Nov 2019 11:41:07 +0100 Subject: [PATCH] Fix typo in passthrough docs and improve 'Host Configuration' section Signed-off-by: Stefan Reiter --- qm-pci-passthrough.adoc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/qm-pci-passthrough.adoc b/qm-pci-passthrough.adoc index c1bca7c..abb9075 100644 --- a/qm-pci-passthrough.adoc +++ b/qm-pci-passthrough.adoc @@ -149,7 +149,7 @@ PCI(e) card, for example a GPU or a network card. Host Configuration ^^^^^^^^^^^^^^^^^^ -In this case, the host cannot use the card. There are two methods to achieve +In this case, the host must not use the card. There are two methods to achieve this: * pass the device IDs to the options of the 'vfio-pci' modules by adding @@ -162,7 +162,7 @@ to a .conf file in */etc/modprobe.d/* where `1234:5678` and `4321:8765` are the vendor and device IDs obtained by: + ---- -# lcpci -nn +# lspci -nn ---- * blacklist the driver completely on the host, ensuring that it is free to bind @@ -178,6 +178,23 @@ For both methods you need to xref:qm_pci_passthrough_update_initramfs[update the `initramfs`] again and reboot after that. +.Verify Configuration + +To check if your changes were successful, you can use + +---- +# lspci -nnk +---- + +and check your device entry. If it says + +---- +Kernel driver in use: vfio-pci +---- + +or the 'in use' line is missing entirely, the device is ready to be used for +passthrough. + [[qm_pci_passthrough_vm_config]] VM Configuration ^^^^^^^^^^^^^^^^ -- 2.39.2