找出工作 PCI(e) 设备的 PCI(e) ID,在本例中为 USB 控制器

找出工作 PCI(e) 设备的 PCI(e) ID,在本例中为 USB 控制器

我将一张 mPCIe 卡(一个 USB 控制器)插入到我的计算机的一个 mPCIe 插槽中。连接的 USB 设备显示为lsusb并且一切正常。

现在我正在运行 KVM/qemu,我不仅希望将单个 USB 设备传递,还希望将 USB 控制器作为 PCIe 设备传递到虚拟机 - 正如我已经对板载 NIC(也是 PCIe)所做的那样。

所以我认为 USB 控制器在调用时会宣布自己是 PCI 连接设备lspci- 但事实并非如此:

# lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Mullins IOMMU
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Host Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Kabini/Mullins PSP-Platform Security Processor
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [IDE mode] (rev 39)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller (rev 01)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 5
01:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
02:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
03:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)

该计算机是PC引擎APU2嵌入式计算机,基于AMD(https://www.pcengines.ch/apu2.htm) - 运行 Debian Linux。

lsusb显示已连接的 USB 设备正在连接到相关 USB 控制器。

问题:如何找出我的 USB 控制器连接到哪个 PCI(e) ID/设备,以便知道要传递哪个 PCI(e) ID/设备,以便它作为本机 PCI(e) 设备在我的虚拟机中弹出?

我可能通过 USB 总线 ID 推测lsusb出什么 - 但这是我所得到的。

相关内容