qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Schwen <daniel@schwen.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] ISA Proxy - possible?
Date: Tue, 19 Jun 2007 14:01:50 +0200	[thread overview]
Message-ID: <200706191401.51064.daniel@schwen.de> (raw)

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

             reply	other threads:[~2007-06-19 12:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 12:01 Daniel Schwen [this message]
2007-06-20  1:46 ` [Qemu-devel] ISA Proxy - possible? amateur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200706191401.51064.daniel@schwen.de \
    --to=daniel@schwen.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).