From: Blue Swirl <blauwirbel@gmail.com>
To: Robert Reif <reif@earthlink.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC] 64 bit device I/O
Date: Wed, 25 Feb 2009 22:02:54 +0200 [thread overview]
Message-ID: <f43fc5580902251202n79310d05lcb92b51796232e39@mail.gmail.com> (raw)
In-Reply-To: <49A531AE.9080301@earthlink.net>
On 2/25/09, Robert Reif <reif@earthlink.net> wrote:
> Avi Kivity wrote:
>
> > Robert Reif wrote:
> >
> > > Blue Swirl wrote:
> > >
> > > > Would it be better to use a structure with four elements with correct
> > > > types (including uint8/16_t) instead of the cast? This could also be
> > > > limited to only cpu_register_io_memory64.
> > > >
> > > >
> > > >
> > > >
> > > This is what I would prefer and is what the first version of this patch
> > > that I submitted a year ago did:
> http://landley.net/qemu/2008-01-01.html
> > >
> > > The problem is that every hardware driver would need to be changed and
> > > some of them would need to be changed drastically because they use the
> > > same functions for all three data sizes. No one seemed interested in
> this
> > > approach so I abandoned it.
> > >
> > > This approach while uglier requires no changes to the hardware drivers
> > > unless they need 64 bit support so I hoped it would be better received.
> > >
> >
> > You might try adding a struct-based 4-function interface, and implementing
> the array-based 3-function interface on top of that. This way, no immediate
> changes would be needed for devices, but we could change them incrementally
> from the old interface to the new interface.
> >
> >
> >
> I just tried this by changing exec.c to use a structure internally but
> still provide an array interface through the old interface and it's a real
> nice cleanup until you have to deal with subpages. Changing the subpage
> code over to a structure doesn't really improve it any.
>
> Why is the subpage code now saving so much redundant stuff compared to what
> it initially started out as. Is it because that one VGA driver is messing
> with the internals of QEMU?
Also CPURead/WriteMemoryFunc structure could be read only, except for
these VGA hacks.
next prev parent reply other threads:[~2009-02-25 20:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-21 15:05 [Qemu-devel] [RFC] 64 bit device I/O Robert Reif
2009-02-24 12:50 ` Robert Reif
2009-02-24 20:16 ` Blue Swirl
2009-02-24 23:46 ` Robert Reif
2009-02-25 7:24 ` Avi Kivity
2009-02-25 7:25 ` Avi Kivity
2009-02-25 11:55 ` Robert Reif
2009-02-25 20:02 ` Blue Swirl [this message]
2009-02-25 11:55 ` Paul Brook
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=f43fc5580902251202n79310d05lcb92b51796232e39@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=reif@earthlink.net \
/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).