qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Isaku Yamahata <yamahata@valinux.co.jp>
Cc: Blue Swirl <blauwirbel@gmail.com>, Alexander Graf <agraf@suse.de>,
	Aurelien Jarno <aurelien@aurel32.net>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 1/6] PCI config space access overhaul
Date: Tue, 5 Jan 2010 15:11:24 +0200	[thread overview]
Message-ID: <20100105131124.GA27684@redhat.com> (raw)
In-Reply-To: <20100105124638.GA29412@valinux.co.jp>

On Tue, Jan 05, 2010 at 09:46:38PM +0900, Isaku Yamahata wrote:
> > diff --git a/hw/pci_host_template_all.h b/hw/pci_host_template_all.h
> > new file mode 100644
> > index 0000000..74b3e84
> > --- /dev/null
> > +++ b/hw/pci_host_template_all.h
> > @@ -0,0 +1,23 @@
> > +#define PCI_HOST_BWL    b
> > +#define PCI_HOST_BITS   8
> > +
> > +#include "pci_host_template.h"
> > +
> > +#undef PCI_HOST_BWL
> > +#undef PCI_HOST_BITS
> > +
> > +#define PCI_HOST_BWL    w
> > +#define PCI_HOST_BITS   16
> > +
> > +#include "pci_host_template.h"
> > +
> > +#undef PCI_HOST_BWL
> > +#undef PCI_HOST_BITS
> > +
> > +#define PCI_HOST_BWL    l
> > +#define PCI_HOST_BITS   32
> > +
> > +#include "pci_host_template.h"
> > +
> > +#undef PCI_HOST_BWL
> > +#undef PCI_HOST_BITS
> 
> Oh, another new cpp tricks.
> I'm ok with this trick. However Michael may have his own idea.

I'm ok, yes.  Though long term, we should think about switching to an
API that does not result in all this horrible boilerplate code that we
are then forced to work around with macros.  And it need not be hard: we
just want
1.  bswap(addr, len)
2.  wrapper around cpu_register_io_memory that gets
    length and passes it on.

> This trick would be split out into independent patch.

Yes.

  reply	other threads:[~2010-01-05 19:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-04  7:32 [Qemu-devel] [PATCH 0/6] PPC NewWorld fixery v2 Alexander Graf
2010-01-04  7:32 ` [Qemu-devel] [PATCH 1/6] PCI config space access overhaul Alexander Graf
2010-01-05 12:46   ` Isaku Yamahata
2010-01-05 13:11     ` Michael S. Tsirkin [this message]
2010-01-12 10:36     ` Alexander Graf
2010-01-12 10:59       ` Michael S. Tsirkin
2010-01-05 22:16   ` [Qemu-devel] " Michael S. Tsirkin
2010-01-12 10:38     ` Alexander Graf
2010-01-04  7:32 ` [Qemu-devel] [PATCH 2/6] Add config space conversion function for uni_north Alexander Graf
2010-01-04  7:32 ` [Qemu-devel] [PATCH 3/6] Use Mac99_U3 type on ppc64 Alexander Graf
2010-01-04  7:32 ` [Qemu-devel] [PATCH 4/6] Include dump of lspci -nn on real G5 Alexander Graf
2010-01-04  7:32 ` [Qemu-devel] [PATCH 5/6] Make interrupts work Alexander Graf
2010-01-04  7:32 ` [Qemu-devel] [PATCH 6/6] Enable secondary cmd64x Alexander Graf

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=20100105131124.GA27684@redhat.com \
    --to=mst@redhat.com \
    --cc=agraf@suse.de \
    --cc=aurelien@aurel32.net \
    --cc=blauwirbel@gmail.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 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).