[Bug 639712] [NEW] PCI Pass Through via libvirt cannot remap IRQ's
639712 at bugs.launchpad.net
Wed Sep 15 17:11:58 BST 2010
Public bug reported:
Trying to allocate a hardware device (telecoms card) using virt-manager results in errors - most frequently (but not exclusively)
a) Errors claiming IOMMU cannot be found even though the hardware is VT-x and VT-d capable and BIOS has it enabled
b) Failed to assign irq for "hostdev0": Operation not permitted
Perhaps you are assigning a device that shares an IRQ with another device?
c) PCI region 0 at address 0xe5200000 has size 0x100, which is not a multiple of 4K
Tried with versions of Lucid and Maverick. Currently using
Investigation showed that
i) The kernel does not have DMAR enabled even on Maverick Server.
ii) apparmor profile does not have the right settings
iii) Updates in qemu-kvm git repository which handle small I/O windows havent yet been incorporated in a release
Investigation showed there to be several problems (which perhaps could gave been documented somewhere)
To fix this successfully it was necessary for me to undertake the following:
a) recompiled the kernel with
b) recompiled qemu-kvm from git source
c) Added the following to /etc/apparmor.d/abstractions/libvirt-qemu
# required for pci passthru
# For hostdev access.
You could argue that the small PCI Memory problem was very card specific
but given that Ubuntu claims the Server version is ready for
virtualisation under KVM and that technology supports VT-d and PCI Pass
Through there should be a suitable kernel version and apparmor profile
that supports it available.
DistroRelease: Ubuntu 10.10
Package: libvirt-bin 0.8.3-1ubuntu9 [modified: usr/bin/virsh usr/sbin/libvirtd usr/share/libvirt/schemas/domain.rng usr/share/libvirt/schemas/storagepool.rng]
ProcVersionSignature: Ubuntu 2.6.35-19.28-dmar 184.108.40.206
Uname: Linux 2.6.35-19-dmar x86_64
Date: Wed Sep 15 16:49:55 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha amd64 (20100803.1)
** Affects: libvirt (Ubuntu)
** Tags: amd64 apport-bug maverick
PCI Pass Through via libvirt cannot remap IRQ's
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.
More information about the Ubuntu-server-bugs