• Comprobar si vfio está controlando los dispositivos pasados

    Si has pasado dispositivos PCIe a máquinas virtuales de Proxmox y quieres saber si el módulo vfio-pci es el que está efectivamente controlando esos dispositivos (debería), puedes filtrar por el tipo de dispositivo que quieres ver. Para ello sigue este hack:

    Controladoras SATA

    lspci -kknn -d ::106

    Ejemplo de la salida:

    0a:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)
            Subsystem: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901]
            Kernel driver in use: vfio-pci
            Kernel modules: ahci
    0b:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)
            Subsystem: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901]
            Kernel driver in use: vfio-pci
            Kernel modules: ahci

     

    Controladoras NVME

    lspci -kknn -d ::108

    Ejemplo de la salida:

    01:00.0 Non-Volatile memory controller [0108]: Seagate Technology PLC Device [1bb1:5018] (rev 01)
            Subsystem: Seagate Technology PLC Device [1bb1:5018]
            Kernel driver in use: nvme
            Kernel modules: nvme
    04:00.0 Non-Volatile memory controller [0108]: Seagate Technology PLC Device [1bb1:5018] (rev 01)
            Subsystem: Seagate Technology PLC Device [1bb1:5018]
            Kernel driver in use: nvme
            Kernel modules: nvme

    Tarjetas ethernet

    lspci -kknn -d ::200

    Ejemplo de la salida:

    07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05)
            Subsystem: ASUSTeK Computer Inc. RTL8125 2.5GbE Controller [1043:87d7]
            Kernel driver in use: vfio-pci
            Kernel modules: r8169
    08:00.0 Ethernet controller [0200]: Intel Corporation I211 Gigabit Network Connection [8086:1539] (rev 03)
            Subsystem: ASUSTeK Computer Inc. I211 Gigabit Network Connection [1043:85f0]
            Kernel driver in use: vfio-pci
            Kernel modules: igb

    Tarjetas WiFi

    lspci -kknn -d ::280

    Ejemplo de la salida:

    05:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
            Subsystem: Apple Inc. BCM4360 802.11ac Wireless Network Adapter [106b:0111]
            Kernel driver in use: vfio-pci
            Kernel modules: bcma
    06:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:0608]
            Subsystem: MEDIATEK Corp. Device [14c3:0608]
            Kernel driver in use: vfio-pci
            Kernel modules: mt7921e

    Tarjetas gráficas

    lspci -kknn -d ::300

    Ejemplo de la salida:

    0e:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [1002:73ff] (rev c1)
            Subsystem: Tul Corporation / PowerColor Navi 23 [148c:2412]
            Kernel driver in use: vfio-pci
            Kernel modules: amdgpu
    0f:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] [1002:67ef] (rev e5)
            Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] [1002:0b04]
            Kernel driver in use: vfio-pci
            Kernel modules: amdgpu

    Tarjetas de audio

    lspci -kknn -d ::403

    Ejemplo de la salida:

    0e:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:ab28]
            Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:ab28]
            Kernel driver in use: vfio-pci
            Kernel modules: snd_hda_intel
    0f:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] [1002:aae0]
            Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] [1002:aae0]
            Kernel driver in use: vfio-pci
            Kernel modules: snd_hda_intel
    11:00.4 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller [1022:1487]
            Subsystem: ASUSTeK Computer Inc. Starship/Matisse HD Audio Controller [1043:87c5]
            Kernel driver in use: snd_hda_intel
            Kernel modules: snd_hda_intel

     


    Deja una respuesta