设备通过KVM错误

我正在运行以下命令,引导一个Debian live CD通过主机PCI设备作为testing并将KVM错误传出;

kvm -m 512 -boot c -net none -hda /media/AA502592502565F3/debian.iso -device pci-assign,host=07:00.0 PCI region 1 at address 0xf7920000 has size 0x80, which is not a multiple of 4K. You might experience some performance hit due to that. No IOMMU found. Unable to assign device "(null)" kvm: -device pci-assign,host=07:00.0: Device 'pci-assign' could not be initialized lspci | grep 07 07:00.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74) 

我把一个旧的备用网卡塞进我的主板来testingPCI传递。 我用Goolgesearch了互联网,发现与“没有IOMMU发现”有关的错误通常意味着KVM不支持PCI设备。

KVM是否必须支持“传递”设备? 我的重点是通过设备,让客人担心呢? 最终我想通过一个PCI随机数发生器,这是不可能与KVM?

谢谢。

PCI直通需要在系统BIOS中显式启用CPU /主板function。

AMD

对于AMD处理器,您必须在系统BIOS中启用IOMMU。

英特尔

对于英特尔处理器,您必须:

  1. 在系统BIOS中启用VT-d。
  2. 您可能还需要将intel_iommu=on添加到内核引导命令行。

有关更多信息, 请参阅KVM wiki 。