1. Download source
1.1 Download linux-vfio kernel source$ git clone git://github.com/awilliam/linux-vfio.git1.2. Download qemu-vfio
$ git clone git://github.com/awilliam/qemu-vfio.git iommu-group-vfio
2. Compile and install
2.1 Compile qemu
$ ./configure --prefix=/usr
$ make
$ sudo make install
2.2 Compile kernel
# make menuconfigIMPORTANT: Mark VFIO related options as
# make
# make modules_install install
3. Run kvm
Start kvm with usual command plus :
# kvm ... -device vfio-pci,host=01:00.0,id=hostdev0
Error:
Failed to set iommu for container: Operation not permitted Failed to setup container for group 1
Solution[1]:
Check dmesg, it's probably complaining about no interrupt remapping support. If so:
# modprobe -r vfio_iommu_type1
# modprobe vfio_iommu_type1 allow_unsafe_interrupts=1
[1] http://www.mail-archive.com/kvm@vger.kernel.org/msg73068.html
Getting error
ReplyDeleteroot@vmhost:/usr/bin/iommu-group-vfio# make menuconfig
CHK version_gen.h
make: *** No rule to make target `menuconfig'. Stop.
Followed the instructions to a 'T' but get the above error message. Any idea why ?
Jay / CompuMatter
make menuconfig should be done at the root of a kernel source tree, not under the vfio source tree.
DeleteHello, I'm trying to install VFIO
ReplyDeleteBut when I make linux-vfio, it got error
drivers/regulator/s2mps11.c:441:23: error: ‘struct sec_pmic_dev’ has no member named ‘regmap’
Any idea?
I got solution by myself
Deletethe code that says error is
config.regmap = iodev->regmap;
just change this to:
config.regmap = iodev->regmap_pmic;
And compile goes success.