Re: [Qemu-devel] VFIO VGA test branches

2013-06-04 Thread Michael Nelson
Here is some more data for vfio-vga. I have tried NVIDIA (MSI) GT610 and ATI (MSI) 7850 cards separately in primary and secondary (to Cirrus) modes. The ATI can boot as primary in VGA mode, but installing Catalyst causes the VM to reboot repeatedly on bootup. The NVIDIA doesn't get past POST as pr

Re: [Qemu-devel] VFIO VGA test branches

2013-05-29 Thread Alex Williamson
On Wed, 2013-05-29 at 18:16 +0200, Maik Broemme wrote: > Hi, > > Maik Broemme wrote: > > > > > > > > Here is the DEBUG_VFIO output: > > > > > > > > vfio: vfio_initfn(:04:00.0) group 14 > > > > vfio: region_add 0 - afff [0x7f869800] > > > > vfio: SKIPPING region_add fec0 - fec00f

Re: [Qemu-devel] VFIO VGA test branches

2013-05-29 Thread Maik Broemme
Hi, Maik Broemme wrote: > > > > > > Here is the DEBUG_VFIO output: > > > > > > vfio: vfio_initfn(:04:00.0) group 14 > > > vfio: region_add 0 - afff [0x7f869800] > > > vfio: SKIPPING region_add fec0 - fec00fff > > > vfio: SKIPPING region_add fed0 - fed003ff > > > vfio: SKIPPI

Re: [Qemu-devel] VFIO VGA test branches

2013-05-29 Thread Maik Broemme
Hi, Alex Williamson wrote: > On Tue, 2013-05-28 at 20:45 +0200, Maik Broemme wrote: > > Hi, > > > > Maik Broemme wrote: > > > Hi Alex, > > > > > > Maik Broemme wrote: > > > > Hi Alex, > > > > > > > > Alex Williamson wrote: > > > > > > > > > > Good to hear. It looks like you have the same

Re: [Qemu-devel] VFIO VGA test branches

2013-05-28 Thread Alex Williamson
On Tue, 2013-05-28 at 20:45 +0200, Maik Broemme wrote: > Hi, > > Maik Broemme wrote: > > Hi Alex, > > > > Maik Broemme wrote: > > > Hi Alex, > > > > > > Alex Williamson wrote: > > > > > > > > Good to hear. It looks like you have the same motherboard as my AMD > > > > test system. An HD7850

Re: [Qemu-devel] VFIO VGA test branches

2013-05-28 Thread Maik Broemme
Hi, Maik Broemme wrote: > Hi Alex, > > Maik Broemme wrote: > > Hi Alex, > > > > Alex Williamson wrote: > > > > > > Good to hear. It looks like you have the same motherboard as my AMD > > > test system. An HD7850 in that system runs quite reliably with the > > > branches above although I do

Re: [Qemu-devel] VFIO VGA test branches

2013-05-28 Thread Alex Williamson
On Tue, 2013-05-28 at 07:33 +0200, Knut Omang wrote: > > I noticed this warning in the host log - I suppose it is unrelated but > thought I'd mention it just in case there is some side effect I do not > understand here: > > [0.538124] IOMMU: Setting identity map for device :00:1f.0 [0x0 -

Re: [Qemu-devel] VFIO VGA test branches

2013-05-27 Thread Knut Omang
On Mon, 2013-05-20 at 23:11 +0200, Knut Omang wrote: > On Sun, 2013-05-19 at 22:15 -0600, Alex Williamson wrote: > > On Sun, 2013-05-19 at 17:35 +0200, Knut Omang wrote: > > > On Mon, 2013-05-13 at 16:23 -0600, Alex Williamson wrote: > > > > On Mon, 2013-05-13 at 22:55 +0200, Knut Omang wrote: > >

Re: [Qemu-devel] VFIO VGA test branches

2013-05-27 Thread Alex Williamson
On Tue, 2013-05-28 at 03:40 +0200, Maik Broemme wrote: > Hi Alex, > > Maik Broemme wrote: > > Hi Alex, > > > > Alex Williamson wrote: > > > > > > Good to hear. It looks like you have the same motherboard as my AMD > > > test system. An HD7850 in that system runs quite reliably with the > > >

Re: [Qemu-devel] VFIO VGA test branches

2013-05-27 Thread Maik Broemme
Hi Alex, Maik Broemme wrote: > Hi Alex, > > Alex Williamson wrote: > > > > Good to hear. It looks like you have the same motherboard as my AMD > > test system. An HD7850 in that system runs quite reliably with the > > branches above although I do occasionally get VGA palette corruption. > >

Re: [Qemu-devel] VFIO VGA test branches

2013-05-21 Thread Justin Gottula
On Sun, May 19, 2013 at 8:44 PM, Alex Williamson wrote: > Also, be sure you're using the correct branch to get > the PCI bus reset code. You can verify with something like: > > grep VFIO_DEVICE_PCI_BUS_RESET qemu.git/hw/misc/vfio.c > grep VFIO_DEVICE_PCI_BUS_RESET linux.git/drivers/vfio/pci/vfio

Re: [Qemu-devel] VFIO VGA test branches

2013-05-20 Thread Knut Omang
On Sun, 2013-05-19 at 22:15 -0600, Alex Williamson wrote: > On Sun, 2013-05-19 at 17:35 +0200, Knut Omang wrote: > > On Mon, 2013-05-13 at 16:23 -0600, Alex Williamson wrote: > > > On Mon, 2013-05-13 at 22:55 +0200, Knut Omang wrote: > > > > Hi all, > > > > > > > > Perfect timing from my perspecti

Re: [Qemu-devel] VFIO VGA test branches

2013-05-20 Thread Knut Omang
On Sun, 2013-05-19 at 23:26 +0400, Maik Broemme wrote: > Hi Knut, > > Knut Omang wrote: > > > > On Mon, 2013-05-13 at 16:23 -0600, Alex Williamson wrote: > > > On Mon, 2013-05-13 at 22:55 +0200, Knut Omang wrote: > > > > Hi all, > > > > > > > > Perfect timing from my perspective, thanks Alex! >

Re: [Qemu-devel] VFIO VGA test branches

2013-05-20 Thread Maik Broemme
Hi Alex, Alex Williamson wrote: > On Sun, 2013-05-19 at 23:26 +0400, Maik Broemme wrote: > > Hi Knut, > > > > Knut Omang wrote: > > > > > > On Mon, 2013-05-13 at 16:23 -0600, Alex Williamson wrote: > > > > On Mon, 2013-05-13 at 22:55 +0200, Knut Omang wrote: > > > > > Hi all, > > > > > > > >

Re: [Qemu-devel] VFIO VGA test branches

2013-05-19 Thread Alex Williamson
On Sun, 2013-05-19 at 17:35 +0200, Knut Omang wrote: > On Mon, 2013-05-13 at 16:23 -0600, Alex Williamson wrote: > > On Mon, 2013-05-13 at 22:55 +0200, Knut Omang wrote: > > > Hi all, > > > > > > Perfect timing from my perspective, thanks Alex! > > > > > > I spent the better part of the weekend t

Re: [Qemu-devel] VFIO VGA test branches

2013-05-19 Thread Alex Williamson
On Fri, 2013-05-17 at 01:09 -0700, Justin Gottula wrote: > Hi Alex, > > VGA passthrough is working great here, with the exception of device reset. > > In short, everything works the first time the guest runs. But the second > time I start the guest, before anything comes on the screen, the host >

Re: [Qemu-devel] VFIO VGA test branches

2013-05-19 Thread Alex Williamson
On Sun, 2013-05-19 at 23:26 +0400, Maik Broemme wrote: > Hi Knut, > > Knut Omang wrote: > > > > On Mon, 2013-05-13 at 16:23 -0600, Alex Williamson wrote: > > > On Mon, 2013-05-13 at 22:55 +0200, Knut Omang wrote: > > > > Hi all, > > > > > > > > Perfect timing from my perspective, thanks Alex! >

Re: [Qemu-devel] VFIO VGA test branches

2013-05-19 Thread Maik Broemme
Hi Knut, Knut Omang wrote: > > On Mon, 2013-05-13 at 16:23 -0600, Alex Williamson wrote: > > On Mon, 2013-05-13 at 22:55 +0200, Knut Omang wrote: > > > Hi all, > > > > > > Perfect timing from my perspective, thanks Alex! > > > > > > I spent the better part of the weekend testing your branches

Re: [Qemu-devel] VFIO VGA test branches

2013-05-13 Thread Alex Williamson
On Mon, 2013-05-13 at 22:55 +0200, Knut Omang wrote: > Hi all, > > Perfect timing from my perspective, thanks Alex! > > I spent the better part of the weekend testing your branches on a new system > I just put together for this purpose, results below.. > > On Fri, 2013-05-03 at 16:56 -0600, Ale

Re: [Qemu-devel] VFIO VGA test branches

2013-05-13 Thread Knut Omang
Hi all, Perfect timing from my perspective, thanks Alex! I spent the better part of the weekend testing your branches on a new system I just put together for this purpose, results below.. On Fri, 2013-05-03 at 16:56 -0600, Alex Williamson wrote: ... > git://github.com/awilliam/linux-vfio.git vf

Re: [Qemu-devel] VFIO VGA test branches

2013-05-11 Thread Justin Gottula
Hi, The kernel won't compile with CONFIG_HOTPLUG_PCI=m: drivers/pci/hotplug/pci_hotplug_core.c:548:5: error: redefinition of ‘pci_hp_reset_slot’ int pci_hp_reset_slot(struct hotplug_slot *hotplug, int probe) ^ In file included from drivers/pci/hotplug/pci_hotplug_core.c:41:0: include/linux/

Re: [Qemu-devel] VFIO VGA test branches

2013-05-10 Thread Alex Williamson
On Fri, 2013-05-10 at 14:31 -0700, Justin Gottula wrote: > Hi, > > The kernel won't compile with CONFIG_HOTPLUG_PCI=m: > > drivers/pci/hotplug/pci_hotplug_core.c:548:5: error: redefinition of > ‘pci_hp_reset_slot’ > int pci_hp_reset_slot(struct hotplug_slot *hotplug, int probe) > ^ > In fil

Re: [Qemu-devel] VFIO VGA test branches

2013-05-08 Thread Alex Williamson
A few notes for anyone trying this... * I recommend the q35 machine type and using the default config file found in the docs directory. This means your command line should include: -M q35 -nodefconfig -readconfig /path/to/qemu.git/docs/q35-chipset.cfg * You'

[Qemu-devel] VFIO VGA test branches

2013-05-03 Thread Alex Williamson
Hi folks, A number of people have been trying VFIO's VGA support, a few have even been successful. Resetting devices has been a problem and makes it very, very difficult to really use VGA assignment effectively. The code in the branches below attempts to address this. Discrete graphics devices