From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0cPG-00064k-KT for qemu-devel@nongnu.org; Tue, 19 Jun 2007 08:01:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0cPF-00064U-K1 for qemu-devel@nongnu.org; Tue, 19 Jun 2007 08:01:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0cPF-00064R-Hr for qemu-devel@nongnu.org; Tue, 19 Jun 2007 08:01:57 -0400 Received: from mailer.gwdg.de ([134.76.10.26]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0cPE-0003XT-TY for qemu-devel@nongnu.org; Tue, 19 Jun 2007 08:01:57 -0400 Received: from up2p77.gwdg.de ([134.76.86.157]) by mailer.gwdg.de with esmtp (Exim 4.66) (envelope-from ) id 1I0cPA-0007k4-NQ for qemu-devel@nongnu.org; Tue, 19 Jun 2007 14:01:52 +0200 From: Daniel Schwen Date: Tue, 19 Jun 2007 14:01:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706191401.51064.daniel@schwen.de> Subject: [Qemu-devel] ISA Proxy - possible? 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 Would it be possible to register a set of io ports and io memory locations with qemu and have all read write operations passed on to the host system? A quick look at the source shows me the two look-up tables IOPortReadFunc *ioport_read_table[3][MAX_IOPORTS]; IOPortWriteFunc *ioport_write_table[3][MAX_IOPORTS]; Instead of the default function (which just generates debug output) it should be possible to register functions which call the ioport read/write commands on the host system (qemu would have to be launched as root to acquire io permissions). Same should work with io memory using the cpu_register_io_memory function. Or am I far off base? Reason is that I'd like to emulate some very old linux installations which access custom ISA hardware. For some of the ISA boards we have no source code, only binaries linked to a 2.0.something kernel... Daniel Schwen