Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-06 Thread Michael S. Tsirkin
On Tue, Apr 05, 2011 at 09:02:45PM +0300, Blue Swirl wrote: > On Tue, Apr 5, 2011 at 12:26 AM, Michael S. Tsirkin wrote: > > On Tue, Apr 05, 2011 at 12:05:08AM +0300, Blue Swirl wrote: > >> On Mon, Apr 4, 2011 at 10:44 PM, Michael S. Tsirkin > >> wrote: > >> > On Mon, Apr 04, 2011 at 08:02:23PM

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-06 Thread Avi Kivity
On 04/05/2011 09:06 PM, Blue Swirl wrote: > > The more complicated BARs cannot be described declaratively (at least > without a lot of complicated infrastructure). They can switch from RAM to > MMIO mappings at runtime, and have different sub-regions. Subregions should be possible, but I agr

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-05 Thread Blue Swirl
On Tue, Apr 5, 2011 at 10:39 AM, Avi Kivity wrote: > On 04/04/2011 08:02 PM, Blue Swirl wrote: >> >> On Mon, Apr 4, 2011 at 7:35 PM, Avi Kivity  wrote: >> >  On 04/04/2011 07:22 PM, Anthony Liguori wrote: >> >> >> >>  On 04/04/2011 10:59 AM, Michael S. Tsirkin wrote: >> >>> >> >>>  On Mon, Apr 04,

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-05 Thread Blue Swirl
On Tue, Apr 5, 2011 at 12:26 AM, Michael S. Tsirkin wrote: > On Tue, Apr 05, 2011 at 12:05:08AM +0300, Blue Swirl wrote: >> On Mon, Apr 4, 2011 at 10:44 PM, Michael S. Tsirkin wrote: >> > On Mon, Apr 04, 2011 at 08:02:23PM +0300, Blue Swirl wrote: >> >> On Mon, Apr 4, 2011 at 7:35 PM, Avi Kivity

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-05 Thread Avi Kivity
On 04/04/2011 08:02 PM, Blue Swirl wrote: On Mon, Apr 4, 2011 at 7:35 PM, Avi Kivity wrote: > On 04/04/2011 07:22 PM, Anthony Liguori wrote: >> >> On 04/04/2011 10:59 AM, Michael S. Tsirkin wrote: >>> >>> On Mon, Apr 04, 2011 at 06:27:57PM +0300, Avi Kivity wrote: Many PCI BARs tha

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-04 Thread Michael S. Tsirkin
On Tue, Apr 05, 2011 at 12:05:08AM +0300, Blue Swirl wrote: > On Mon, Apr 4, 2011 at 10:44 PM, Michael S. Tsirkin wrote: > > On Mon, Apr 04, 2011 at 08:02:23PM +0300, Blue Swirl wrote: > >> On Mon, Apr 4, 2011 at 7:35 PM, Avi Kivity wrote: > >> > On 04/04/2011 07:22 PM, Anthony Liguori wrote: > >

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-04 Thread Blue Swirl
On Mon, Apr 4, 2011 at 10:44 PM, Michael S. Tsirkin wrote: > On Mon, Apr 04, 2011 at 08:02:23PM +0300, Blue Swirl wrote: >> On Mon, Apr 4, 2011 at 7:35 PM, Avi Kivity wrote: >> > On 04/04/2011 07:22 PM, Anthony Liguori wrote: >> >> >> >> On 04/04/2011 10:59 AM, Michael S. Tsirkin wrote: >> >>> >>

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-04 Thread Michael S. Tsirkin
On Mon, Apr 04, 2011 at 08:02:23PM +0300, Blue Swirl wrote: > On Mon, Apr 4, 2011 at 7:35 PM, Avi Kivity wrote: > > On 04/04/2011 07:22 PM, Anthony Liguori wrote: > >> > >> On 04/04/2011 10:59 AM, Michael S. Tsirkin wrote: > >>> > >>> On Mon, Apr 04, 2011 at 06:27:57PM +0300, Avi Kivity wrote: > >

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-04 Thread Blue Swirl
On Mon, Apr 4, 2011 at 7:35 PM, Avi Kivity wrote: > On 04/04/2011 07:22 PM, Anthony Liguori wrote: >> >> On 04/04/2011 10:59 AM, Michael S. Tsirkin wrote: >>> >>> On Mon, Apr 04, 2011 at 06:27:57PM +0300, Avi Kivity wrote: Many PCI BARs that use the memory address space map a single MMIO

[Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-04 Thread Michael S. Tsirkin
On Mon, Apr 04, 2011 at 06:27:57PM +0300, Avi Kivity wrote: > Many PCI BARs that use the memory address space map a single MMIO region into > the entire BAR range. Introduce an API pci_register_bar_simple() for that use > case, and convert all users where this can be done trivially. > > This will

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-04 Thread Avi Kivity
On 04/04/2011 07:22 PM, Anthony Liguori wrote: On 04/04/2011 10:59 AM, Michael S. Tsirkin wrote: On Mon, Apr 04, 2011 at 06:27:57PM +0300, Avi Kivity wrote: Many PCI BARs that use the memory address space map a single MMIO region into the entire BAR range. Introduce an API pci_register_bar_sim

Re: [Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-04 Thread Anthony Liguori
On 04/04/2011 10:59 AM, Michael S. Tsirkin wrote: On Mon, Apr 04, 2011 at 06:27:57PM +0300, Avi Kivity wrote: Many PCI BARs that use the memory address space map a single MMIO region into the entire BAR range. Introduce an API pci_register_bar_simple() for that use case, and convert all users w

[Qemu-devel] Re: [PATCH 00/10] pci: pci_register_bar_simple

2011-04-04 Thread Avi Kivity
On 04/04/2011 06:59 PM, Michael S. Tsirkin wrote: On Mon, Apr 04, 2011 at 06:27:57PM +0300, Avi Kivity wrote: > Many PCI BARs that use the memory address space map a single MMIO region into > the entire BAR range. Introduce an API pci_register_bar_simple() for that use > case, and convert al