From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BL9S9-0005S8-H3 for qemu-devel@nongnu.org; Tue, 04 May 2004 19:35:57 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BL9Qw-0004tO-44 for qemu-devel@nongnu.org; Tue, 04 May 2004 19:35:13 -0400 Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BL9OH-0003mW-FL for qemu-devel@nongnu.org; Tue, 04 May 2004 19:31:57 -0400 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BL9OG-0002KG-00 for ; Wed, 05 May 2004 01:31:56 +0200 Received: from h68-144-28-252.sbm.shawcable.net ([68.144.28.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 May 2004 01:31:56 +0200 Received: from matt by h68-144-28-252.sbm.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 May 2004 01:31:56 +0200 From: Matthew Mastracci Date: Tue, 04 May 2004 17:32:01 -0600 Message-ID: <409827F1.7050209@aclaro.com> References: <4098154B.1050804@bellard.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020406070208070701050006" In-Reply-To: <4098154B.1050804@bellard.org> Sender: news Subject: [Qemu-devel] Re: Host <-> guest interface port? Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------020406070208070701050006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Fabrice Bellard wrote: > Matthew Mastracci wrote: > >> Would it be possible to add a host/guest interface port, akin to how >> VMWare handles this? It's a convenient way to get/set various >> properties from the host while running the guest operating system. >> This also allows a smoother mouse interface - ie: auto >> capture/release of the mouse as it hits the screen boundaries, >> clipboard synchronization as well as synchronization of the guest's >> clock with the host's. >> >> Some more info on the VMWare port is here: >> http://chitchat.at.infoseek.co.jp/vmware/backdoor.html > > > Of course it is possible to add that, but first we must define the > features we want and implement the necessary support in the guest > OSes, which seems to be the most difficult AFAIK. Clipboard support > would be interesting. Does anyone know how to implement it for Linux > and Windows guests ? > I can implement text-clipboard-passing for a windows guest without much effort. If the CPU protection for the IO port is disabled, even when running at IOPL3, it could be implemented entirely in userspace. It would be nice to define standard register values for the different features, as well as add functionality to query the availability of the feature. For instance, the first two registers could define the supported interface: Register 0: Returns the maximum supported register index by the current version of QEMU Register 1: Write to the register with a given register index - returns 1 if supported or 0 if unsupported or disabled. Possible register functionality (off the top of my head): - Get host clock: returns the host clock time in UTC (useful for clock sync between guest/host) - Get host clock TZ: returns the host clock offset relative to UTC - Set host's clipboard - Get host's clipboard - Attach/detach virtual device (floppy/cd/etc) - Transfer file (?) - Read guest filesystem Matt. --------------020406070208070701050006 Content-Type: text/x-vcard; charset=utf8; name="matt.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="matt.vcf" begin:vcard fn:Matthew Mastracci n:Mastracci;Matthew org:aclaro Softworks, inc. adr:;;1900 a - 11 St. SE;Calgary;Alberta;T2H 3G2;Canada email;internet:matt@aclaro.com title:Software Developer tel;work:(403) 299-6612 x-mozilla-html:FALSE url:http://www.aclaro.com version:2.1 end:vcard --------------020406070208070701050006--