Received: from eggs.gnu.org ([208.118.235.92]:33001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS6lI-0000xs-SA for qemu-devel@nongnu.org; Wed, 09 May 2012 09:17:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SS6lC-0001y2-Hr for qemu-devel@nongnu.org; Wed, 09 May 2012 09:17:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS6lC-0001xm-AB for qemu-devel@nongnu.org; Wed, 09 May 2012 09:16:54 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q49DGqEm015355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 May 2012 09:16:52 -0400 Date: Wed, 9 May 2012 16:16:45 +0300 From: Alon Levy Message-ID: <20120509131645.GM18384@garlic.redhat.com> References: <1336562766-25682-1-git-send-email-alevy@redhat.com> <4FAA6835.1010508@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FAA6835.1010508@redhat.com> Subject: Re: [Qemu-devel] [post 1.1 PATCH] hw/qxl: disallow non sync io for revision >= 3 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org On Wed, May 09, 2012 at 02:51:01PM +0200, Gerd Hoffmann wrote: > On 05/09/12 13:26, Alon Levy wrote: > > The guest drivers should already know how to use async for revision 3. > > But since it's still possible to have an older driver with revision 3 > > that doesn't check for the revision, require a new parameter > > "force_async", which we can later turn to 1 by default. > > Hmm. PCI revisions are supposed to be backward compatible, I don't > think this is a good idea. We might want to log a warning or inform via > 'info spice' in case we find a guest using the old, sync commands, so > management can figure and warn, but I wouldn't do more. > > We can think about defining a qxl2 pci device, with a different pci id, > where we can throw away old stuff. For such a new & incompatible device > I'd like to change a few more things while being at it ... > > (1) go for a single 32bit mmio register set similar to real hardware. > That should replace the rom bar (device info), the fields in the ram > area (where interrupt mask etc live) and the io command bar. > > (2) consider virtio for the rings. Not sure this is worth it as that > wouldn't make qxl bus-agnostic, for vga compatibility and device memory > we'll still have a dependency on pci ... > > (3) renumber the remaining bars so we can make the vram bar 64bit, > without a 32bit compatibility alias needed. > > (4) Drop QXL_IO_SET_MODE support and the mode list. > > Possibly more ... Sounds like a good idea. I'll try to do a patch with the sync warning first - the reason for this patch was trying to prevent deadlocks with boxes, the management in question. The virtio-rings - I know someone is already working on this and is pretty well advanced. Actually I think they are doing a whole new device, but I haven't seen any code yet. Probably not pci. But just replacing the rings should not be that hard (tm) :) > > cheers, > Gerd