Skip to contentSkip to conversation

vfio passtrhough fails at 'No available IOMMU models' on Intel BDW-EP platform

Qemu-devel Robert Hu 2 participants 3 messages Dec 25, 2015 – Dec 28, 2015

lore
Share & tools
lore

Robert Hu

author
#0 lore raw

Public bug reported:

Environment:
------------
Host OS (ia32/ia32e/IA64): ia32e
Guest OS (ia32/ia32e/IA64): ia32e
Guest OS Type (Linux/Windows): linux
kvm.git Commit: da3f7ca3
qemu.git Commit: 38a762fe
Host Kernel Version: 4.4.0-rc2
Hardware: BDW EP (Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz, Grantley-EP)

Bug description:
--------------------------
when create guest with vt-d assignment using vfio-pci driver, the guest can not be created.
Warning 'No available IOMMU models'

Reproduce steps:
----------------
1. bind device to vfio-pci driver
2. qemu-system-x86_64 -enable-kvm -m 512 -smp 2 -device vfio-pci,host=81:00.0 -net none -drive file=rhel7u2.qcow2,if=none,id=virtio-disk0 -device virtio-blk-pci,drive=virtio-disk0

Current result:
----------------
qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: No available IOMMU models
qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: failed to setup container for group 41
qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: failed to get group 41
qemu-system-x86_64: -device vfio-pci,host=81:00.0: Device initialization failed

Expected result:
----------------
guest can be created
Basic root-causing log:
----------------------

** Affects: qemu
Importance: Undecided
Status: New

** Attachment added: "host dmesg"
https://bugs.launchpad.net/bugs/1529187/+attachment/4540026/+files/dmesg.log

Signature · 49 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1529187

Title:
  vfio passtrhough fails at 'No available IOMMU models' on Intel BDW-EP
  platform

Status in QEMU:
  New

Bug description:
  Environment:
   ------------
   Host OS (ia32/ia32e/IA64): ia32e
   Guest OS (ia32/ia32e/IA64): ia32e
   Guest OS Type (Linux/Windows): linux
   kvm.git Commit: da3f7ca3
   qemu.git Commit: 38a762fe 
   Host Kernel Version: 4.4.0-rc2
   Hardware: BDW EP (Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz, Grantley-EP)

  Bug description:
   --------------------------
   when create guest with vt-d assignment using vfio-pci driver, the guest can not be created.
  Warning 'No available IOMMU models'

  
  Reproduce steps:
   ----------------
   1. bind device to vfio-pci driver
   2. qemu-system-x86_64 -enable-kvm -m 512 -smp 2 -device vfio-pci,host=81:00.0 -net none -drive file=rhel7u2.qcow2,if=none,id=virtio-disk0 -device virtio-blk-pci,drive=virtio-disk0

  Current result:
   ----------------
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: No available IOMMU models
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: failed to setup container for group 41
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: failed to get group 41
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: Device initialization failed

  Expected result:
   ----------------
   guest can be created
  Basic root-causing log:
   ----------------------
  

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1529187/+subscriptions
#1 lore raw

You've somehow managed to not load the vfio_iommu_type1 module. The vfio module will request it when loading, if the module is not available when loading, such as from an initramfs that does not include the full set of vfio modules, it will need to be loaded later manually.

Signature · 49 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1529187

Title:
  vfio passtrhough fails at 'No available IOMMU models' on Intel BDW-EP
  platform

Status in QEMU:
  New

Bug description:
  Environment:
   ------------
   Host OS (ia32/ia32e/IA64): ia32e
   Guest OS (ia32/ia32e/IA64): ia32e
   Guest OS Type (Linux/Windows): linux
   kvm.git Commit: da3f7ca3
   qemu.git Commit: 38a762fe 
   Host Kernel Version: 4.4.0-rc2
   Hardware: BDW EP (Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz, Grantley-EP)

  Bug description:
   --------------------------
   when create guest with vt-d assignment using vfio-pci driver, the guest can not be created.
  Warning 'No available IOMMU models'

  
  Reproduce steps:
   ----------------
   1. bind device to vfio-pci driver
   2. qemu-system-x86_64 -enable-kvm -m 512 -smp 2 -device vfio-pci,host=81:00.0 -net none -drive file=rhel7u2.qcow2,if=none,id=virtio-disk0 -device virtio-blk-pci,drive=virtio-disk0

  Current result:
   ----------------
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: No available IOMMU models
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: failed to setup container for group 41
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: failed to get group 41
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: Device initialization failed

  Expected result:
   ----------------
   guest can be created
  Basic root-causing log:
   ----------------------
  

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1529187/+subscriptions
author
#2 lore raw
In reply to Robert Hu

You're right. After I manually load vfio_iommu_type1, the error is gone.

** Changed in: qemu
Status: New => Invalid

Signature · 49 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1529187

Title:
  vfio passtrhough fails at 'No available IOMMU models' on Intel BDW-EP
  platform

Status in QEMU:
  Invalid

Bug description:
  Environment:
   ------------
   Host OS (ia32/ia32e/IA64): ia32e
   Guest OS (ia32/ia32e/IA64): ia32e
   Guest OS Type (Linux/Windows): linux
   kvm.git Commit: da3f7ca3
   qemu.git Commit: 38a762fe 
   Host Kernel Version: 4.4.0-rc2
   Hardware: BDW EP (Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz, Grantley-EP)

  Bug description:
   --------------------------
   when create guest with vt-d assignment using vfio-pci driver, the guest can not be created.
  Warning 'No available IOMMU models'

  
  Reproduce steps:
   ----------------
   1. bind device to vfio-pci driver
   2. qemu-system-x86_64 -enable-kvm -m 512 -smp 2 -device vfio-pci,host=81:00.0 -net none -drive file=rhel7u2.qcow2,if=none,id=virtio-disk0 -device virtio-blk-pci,drive=virtio-disk0

  Current result:
   ----------------
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: No available IOMMU models
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: failed to setup container for group 41
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: vfio: failed to get group 41
   qemu-system-x86_64: -device vfio-pci,host=81:00.0: Device initialization failed

  Expected result:
   ----------------
   guest can be created
  Basic root-causing log:
   ----------------------
  

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1529187/+subscriptions