Hope the title itself qualifies for the general forum. Else just move it around software, hardware and network once a day
Just kidding.
I'm fiddling around with kvm and pci passthrough. But just can get it to work. Also following the howto on the kvm webside:
http://www.linux-kvm.org/page/How_to...th_VT-d_in_KVM
While diging around I just found out that one would need IOMMU enable on the mobo. BUt i can't find out if my m4a78 (Asus) is cabaple. The website is not very informative.
I'm using the 2.6.30 vanilla kernel with the extended config of the debian lenny 2.6.28-2-kernel-package. The extra options are those mentioned in the howto above.
To hide the device i use this self made script
Code:
#!/bin/bash
# unload kvm modules
modprobe -r kvm_amd kvm
# get all the devices and pretty print
/usr/bin/lspci | /bin/sed = | /bin/sed 'N;s/\n/\t/'
# get number of devices to hide
echo "enter line number of pci device to hide"
read line
# get us the variables
DEVICE=$(/usr/bin/lspci -n | /usr/bin/head -n $line | /usr/bin/tail -n 1)
PCI=0000:$(echo $DEVICE | /usr/bin/cut -d " " -f 1)
NUM=$(echo $DEVICE | /usr/bin/cut -d " " -f 3 | sed -e 's/:/ /g')
# files in sys
STUBNEW=/sys/bus/pci/drivers/pci-stub/new_id
DRIVUNB=/sys/bus/pci/devices/$PCI/driver/unbind
STUBBIN=/sys/bus/pci/drivers/pci-stub/bind
# search and destroy
/bin/echo "$NUM" > $STUBNEW
/bin/echo $PCI > $DRIVUNB
/bin/echo $PCI > $STUBBIN
# reload kvm
modprobe -a kvm kvm_amd
The start line for the kvm
Code:
qemu-system-x86_64 -hda /dev/mapper/isos-iso--apache -boot c -m 256 -net none -pcidevice host=02:00.0
And the output after start:
Code:
assign_irq: deassign: Invalid argument
assign_irq: deassign: Invalid argument
assign_irq: deassign: Invalid argument
assigned_dev_update_msi: deassign irq: Invalid argument
assigned_dev_update_msi: deassign irq: Invalid argument
So anyone tried this stuff? Is my mobo just not able to IUMMO? MIssing kernel options? You need some more info to help?
Thanks for reading
zhjim