On Thu, 2013-06-27 at 16:35 +0200, Mario Ceresa wrote:
> Thanks Alex, now the driver is working fine.
> 
> I spent the last two days making tests and the results are as folows:
> 
> 1. from qemu command line I never get past the "This VM has no graphic
> card" messages even if I change the number of the pci id to the one I bound
> to vfio-pci (05:00). I'm still trying to learn how to control quemu by
> command line so most likely I'm using the wrong spell here :)
> 
> qemu-system-x86_64 --enable-kvm -M q35 -m 1024 -cpu host \
> -smp 6,sockets=1,cores=6,threads=1 \
> -bios /usr/share/qemu/bios.bin -vga none \
> -device 
> ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1
> \
> -device vfio-pci,host=05:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
> -device vfio-pci,host=05:00.1,bus=root.1,addr=00.1

Looks like you're still trying to create an SDL window since I believe
that's on by default, add -nographic

> 2. With virt-manager I'm able to go a bit further once I add the two ids as
> PCI passthrough devices:
> 
> 2.1 I can run a copy of Fedora 18 that loads the open source radeon driver.
> It doesn't seem to be really accelerated though but I suppose it's working
> because when I reset/poweroff the host resets :)

Not good.  This is using the vfio-vga-reset branches?

> However I have the following errors in the log:
> 
> * Expecting atombios for cayman GPU
> * Fatal error during GPU init
> * probe of <pci id here> failed with -22

Cayman, is this a Radeon HD 6xxx series?  Are there any messages in the
host log file or dmesg about retrieving the BIOS from the device?

> 2.2 I'm not able to use radeon binary drivers from rpmfusion on this VM. X
> always dies with "No recognized devices"
> 
> 2.3 I created a new winxp test machine and installed radeon binary drivers
> on it but the card is not detected. It does appear as "Unrecognized VGA
> adapter" so it seems that it is exposed, at least partially.

libvirt is going to be using 440fx, unless there's a q35 option for it
now.  The older chipset is not tested as well and libvirt will put the
emulated and passthrough graphics on the same bus, which makes things
more difficult.

> I'm a bit out of my wits by now, is there any way to see how virt-manager
> calls qemu?

/var/log/libvirt/qemu/$VM

> Do I have to remove nvidia binary driver or patch them? (the primary gpu is
> a quadro 4000)

Remove or patch them for what?  If you want to assign that device, yes,
the nvidia binary driver needs to be unbound from the device and you
must then use the vfio-vga-reset branches to get the device into a fresh
state to be assigned.  Note that assigning a primary GPU from the host
still has issues with removing the host VGA console from using it.
Thanks,

Alex

_______________________________________________
virt mailing list
virt@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/virt

Reply via email to