From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3Ejk-0007IT-DK for qemu-devel@nongnu.org; Thu, 20 Nov 2008 13:58:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3Eji-0007IF-SQ for qemu-devel@nongnu.org; Thu, 20 Nov 2008 13:58:43 -0500 Received: from [199.232.76.173] (port=48472 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3Eji-0007IC-NK for qemu-devel@nongnu.org; Thu, 20 Nov 2008 13:58:42 -0500 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:23839 helo=SMTP.EU.CITRIX.COM) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L3Ejh-0006hI-O9 for qemu-devel@nongnu.org; Thu, 20 Nov 2008 13:58:42 -0500 Message-ID: <4925B442.8050206@eu.citrix.com> Date: Thu, 20 Nov 2008 19:02:26 +0000 From: Stefano Stabellini MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 1 of 2] [UPDATE] DisplayState interface change References: <49259735.8080807@eu.citrix.com> <200811201823.22742.paul@codesourcery.com> <4925AE3E.2090702@eu.citrix.com> <200811201839.24213.paul@codesourcery.com> In-Reply-To: <200811201839.24213.paul@codesourcery.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org Paul Brook wrote: > On Thursday 20 November 2008, Stefano Stabellini wrote: >> Paul Brook wrote: >>> No, I mean what happens when I have (for example) two emulated VGA >>> devices, one displaying to SDL and the other to VNC? Or I want an >>> intermediate later that composites multiple device outputs into a single >>> host image. >> If you want multiple device output you need multiple DisplayStates. >> You need a DisplayState for each device output you want at the same time. >> My patches do not make any harder to implement this scenario, actually >> being the interface simpler it should be much simpler to handle this >> case as well. > > Maybe. We already have a per-display structure (QEMUConsole). IIUC you're > using DisplayState (which IMHO should be per host side display) to store per > device information. > The assumption I made in my patches is the following: DisplayState is the interface between multiple backend (for example vga and serial, each of them has its own QEMUConsole) and multiple host-side display (vnc.c and sdl.c). If you want to see different things at the same time on multiple display you need multiple DisplayState. Then you can have, for example, two vga, each of them connected to an sdl windows and a vnc server (2 windows and 2 servers total).