From: Joe Batt <Joe@soliddesign.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH,RFC]: Generic memory callback regions
Date: Tue, 01 Jun 2004 06:13:41 -0500 [thread overview]
Message-ID: <1086088420.21275.6.camel@localhost> (raw)
In-Reply-To: <1086058382.21903.53.camel@sherbert>
I haven't read your patch, but I recently wrote a SH2 emulator. We
found that a lot of time was spent finding the right callbacks, so for
the device memory, we used a sorted array. After each access, we
bubbled that memory region closed to the beginning of the array. This
turned out to be faster than the tree that we were using. The main
differences are we have 100+ regions and implemented it in Java.
Joe
On Mon, 2004-05-31 at 21:53, Gianni Tedesco wrote:
> Hi,
>
> This patch adds an API for CONFIG_SOFTMMU mode that hardware drivers can
> use to add memory regions backed by callback functions. It simply adds a
> layer for storing opaque data above the basic cpu_register_io_memory /
> cpu_register_physical memory functions. I used a linked list to store
> the data structures, i think O(ln/2) avg. lookup time will be fine as I
> don't envisage many of these regions existing.
>
> I've tested it as far as I currently can for the pciproxy code and it
> seems to do the correct thing. I could work around this manually within
> the pciproxy code itself, but I figured a generic interface would be
> something useful for other drivers (such as any PCI card with MMIO
> resources).
>
> Ideas / thoughts / bugs?
next prev parent reply other threads:[~2004-06-01 11:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 2:53 [Qemu-devel] [PATCH,RFC]: Generic memory callback regions Gianni Tedesco
2004-06-01 11:13 ` Joe Batt [this message]
2004-06-01 11:26 ` Gianni Tedesco
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=1086088420.21275.6.camel@localhost \
--to=joe@soliddesign.net \
--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).