我正在运行 Fedora 22,并且有一个 GPU,可以将其传递给 KVM 来宾。我通过添加pci-stub.ids=<pci id 2>,<pci id 2>
到我的 Grub 引导选项来实现这一点。我现在使用的两个PCI ID是针对同一个GPU的,但是ID不同。
我最近购买了 TP-Link 网卡,手动的据称它使用的是 Realtek 8xxx 芯片组。显然,这与我的集成 NIC 使用的芯片组相同,lspci -nn
显示了相同的输出,只是我的集成 NIC 的 PCI 总线 ID 是 08:00 而不是 06:00。鉴于该pci-stub.ids
行使用 8 个十六进制值作为 PCI ID,我如何仅将一个 NIC 连接到 PCI 存根驱动程序?
编辑:这是一些lshw
输出:
*-pci:5
description: PCI bridge
product: SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 15
bus info: pci@0000:00:15.0
capabilities: pci pm pciexpress msi ht normal_decode bus_master cap_list
configuration: driver=pcieport
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:06:00.0
logical name: enp6s0
version: 06
serial: 90:2b:34:xx:xx:xx
size: 1Gbit/s
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.1.10 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
*-pci:7
description: PCI bridge
product: SB900 PCI to PCI bridge (PCIE port 2)
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 15.2
bus info: pci@0000:00:15.2
configuration: driver=pcieport
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:08:00.0
logical name: enp8s0
version: 06
serial: c4:e9:84:xx:xx:xx
size: 1Gbit/s
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8168e-2.fw ip=192.168.1.142 latency=0 link=yes multicas