All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Isaku Yamahata <yamahata@valinux.co.jp>,
	mtosatti@redhat.com, armbru@redhat.com,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] Re: pci_default_config_write() clean up.
Date: Thu, 7 May 2009 12:57:03 +0100	[thread overview]
Message-ID: <200905071257.04059.paul@codesourcery.com> (raw)
In-Reply-To: <20090507114609.GH32039@redhat.com>

On Thursday 07 May 2009, Michael S. Tsirkin wrote:
> On Thu, May 07, 2009 at 08:13:51PM +0900, Isaku Yamahata wrote:
> > On Thu, May 07, 2009 at 01:25:38PM +0300, Michael S. Tsirkin wrote:
> > > > How about callback?
> > >
> > > Yes, I think callbacks have the potential to simplify code.
> > > Would you like to add them on top of my patch then?
> >
> > Okay.
> >
> > > - There's some tricky code there to trigger callbacks only once
> > >   on a multibyte transaction. It would be simpler just to have
> > > per-dword callbacks.  These could get the mask of the written-to bytes
> > > and do if (written_mask & interesting_mask)
> > > 		stuff
> >
> > Are you assuming that word/dword io port access is word/dword aligned?
>
> I think this does not have to be the case in I/O generally.

You can assume all accesses are naturally aligned. The softmmu code will split 
unaligned accesses before devices see them.

Paul

  reply	other threads:[~2009-05-07 11:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-07  8:40 [Qemu-devel] pci_default_config_write() clean up Isaku Yamahata
2009-05-07  8:50 ` [Qemu-devel] " Michael S. Tsirkin
2009-05-07  9:06   ` Isaku Yamahata
2009-05-07  9:34     ` Michael S. Tsirkin
2009-05-07  9:29 ` Michael S. Tsirkin
2009-05-07  9:55   ` Isaku Yamahata
2009-05-07 10:25     ` Michael S. Tsirkin
2009-05-07 11:13       ` Isaku Yamahata
2009-05-07 11:46         ` Michael S. Tsirkin
2009-05-07 11:57           ` Paul Brook [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-05-08  3:43 [Qemu-devel] " Isaku Yamahata
2009-05-08 14:21 ` [Qemu-devel] " Michael S. Tsirkin
2009-05-10  8:38 ` Michael S. Tsirkin

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=200905071257.04059.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=armbru@redhat.com \
    --cc=mst@redhat.com \
    --cc=mtosatti@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yamahata@valinux.co.jp \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.