[Qemu-devel] Re: [PATCH 6/6] pci host: make pci_data_{write, read}() get PCIConfigAddress.

2010-01-13 Thread Paul Brook
> I thought we will get rid of vpb_pci_config_addr, and fill in > fields in PCIConfigAddress directly. If we don't, and still > recode into PC format, this is not making code any prettier > so I don't really see what this buys us. I agree. This patch seems to be introducing churn for no benefit.

Re: [Qemu-devel] Re: [PATCH 6/6] pci host: make pci_data_{write, read}() get PCIConfigAddress.

2010-01-12 Thread Alexander Graf
Isaku Yamahata wrote: > On Tue, Jan 12, 2010 at 12:12:36PM +0200, Michael S. Tsirkin wrote: > >> On Tue, Jan 12, 2010 at 05:52:58PM +0900, Isaku Yamahata wrote: >> >>> diff --git a/hw/versatile_pci.c b/hw/versatile_pci.c >>> index d99b7fa..14a728a 100644 >>> --- a/hw/versatile_pci.c >>> +++

[Qemu-devel] Re: [PATCH 6/6] pci host: make pci_data_{write, read}() get PCIConfigAddress.

2010-01-12 Thread Isaku Yamahata
On Tue, Jan 12, 2010 at 12:12:36PM +0200, Michael S. Tsirkin wrote: > On Tue, Jan 12, 2010 at 05:52:58PM +0900, Isaku Yamahata wrote: > > diff --git a/hw/versatile_pci.c b/hw/versatile_pci.c > > index d99b7fa..14a728a 100644 > > --- a/hw/versatile_pci.c > > +++ b/hw/versatile_pci.c > > @@ -23,11 +2

[Qemu-devel] Re: [PATCH 6/6] pci host: make pci_data_{write, read}() get PCIConfigAddress.

2010-01-12 Thread Michael S. Tsirkin
On Tue, Jan 12, 2010 at 05:52:58PM +0900, Isaku Yamahata wrote: > Move out pci address decoding logic from pci_data_{write, read}() > by making pci_data_{write, read}() get PCIConfigAddress. > > Cc: Blue Swirl > Cc: Aurelien Jarno > Cc: Paul Brook > Signed-off-by: Isaku Yamahata > --- > hw/ap