PCI passthrough and full virtualization on Debian Squeeze with AMD890 FX
Hi, this is my first try to get a working full virtualized KVM guest with one real PCI device. I have the Asrock 890FX Deluxe3 with a Phenom II X4 945 which both shold have IOMMU support. I did the steps described on
http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM but it seems that full virtualization doesn't work. If i do 'kvm -enable-kvm -cpu ?' i get no host CPU and PCI passthrough also fails.
Assigning the PCI device went fine and with lspci i can see the PCI device in the guest but the device doesn't work. The command to run the guest was:
sudo kvm -M pc-0.12 -cpu kvm64,+svm -smp 1,cores=1 -m 1G -name Debian32 -vga std -net none -enable-kvm -device pci-assign,host=04:00.0,id=ethernet -daemonize -drive file=/dev/mapper/vol-deb,if=scsi,media=disk,index=0, snapshot=off,cache=writethrough,format=raw,boot=on -boot c -chroot /home/kvmuser -runas kvmuser
dmesg | grep AMD-Vi
AMD-Vi: Enabling IOMMU at 0000:00:00.2 cap 0x40
AMD-Vi: device isolation enabled
AMD-Vi: Lazy IO/TLB flushing enabled
Some morde output of dmesg:
pci-stub 0000:04:00.0: PCI INT A -> Link[LNKH] -> GSI 11 (level, low) -> IRQ 11
[ 3235.032088] pci-stub 0000:04:00.0: restoring config space at offset 0x8 (was 0xc, writing 0xcfff800c) [ 3235.032105] pci-stub 0000:04:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x10) [ 3235.032116] pci-stub 0000:04:00.0: restoring config space at offset 0x1 (was 0x100000, writing 0x100503) [ 3235.500420] assign device: host bdf = 4:0:0 [ 3235.757750] kvm:3099 freeing invalid memtype cfff8000-cfff9000 [ 3302.746197] kvm:3099 freeing invalid memtype cfff9000-cfffc000 [ 3302.972095] pci-stub 0000:04:00.0: restoring config space at offset 0x8 (was 0xc, writing 0xcfff800c) [ 3302.972112] pci-stub 0000:04:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x10) [ 3302.972124] pci-stub 0000:04:00.0: restoring config space at offset 0x1 (was 0x100000, writing 0x180507) [ 3302.972165] pci-stub 0000:04:00.0: PCI INT A disabled
Version of KVM is 0.12.5+dfsg-5+squeeze1
Host is Debian Squeeze amd64