Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-23 Thread Peter Maydell
On 23 July 2013 15:26, Anthony Liguori wrote: > Peter Maydell writes: > >> On 23 July 2013 13:34, Paolo Bonzini wrote: >>> Il 23/07/2013 14:22, Peter Maydell ha scritto: On 23 July 2013 13:19, Paolo Bonzini wrote: >> Yes, we should have easy support for defining a pluggable >> bus as a col

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-23 Thread Anthony Liguori
Peter Maydell writes: > On 23 July 2013 13:34, Paolo Bonzini wrote: >> Il 23/07/2013 14:22, Peter Maydell ha scritto: >>> On 23 July 2013 13:19, Paolo Bonzini wrote: > Yes, we should have easy support for defining a pluggable > bus as a collection of pins. > >> In fact, the main thing I dislike

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-23 Thread Paolo Bonzini
Il 23/07/2013 14:40, Peter Maydell ha scritto: > On 23 July 2013 13:34, Paolo Bonzini wrote: >> Il 23/07/2013 14:22, Peter Maydell ha scritto: >>> On 23 July 2013 13:19, Paolo Bonzini wrote: Il 22/07/2013 20:21, Peter Maydell ha scritto > you can't as a user of this sort of hardware

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-23 Thread Peter Maydell
On 23 July 2013 13:34, Paolo Bonzini wrote: > Il 23/07/2013 14:22, Peter Maydell ha scritto: >> On 23 July 2013 13:19, Paolo Bonzini wrote: >>> Il 22/07/2013 20:21, Peter Maydell ha scritto you can't as a user of this sort of hardware plug in an extra serial port to a SoC, because there

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-23 Thread Paolo Bonzini
Il 23/07/2013 14:22, Peter Maydell ha scritto: > On 23 July 2013 13:19, Paolo Bonzini wrote: >> Il 22/07/2013 20:21, Peter Maydell ha scritto >>> you can't as a user of this sort of hardware >>> plug in an extra serial port to a SoC, because there's just nowhere >>> to plug it in. So why should it

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-23 Thread François Revol
On 23/07/2013 14:19, Paolo Bonzini wrote: > Il 22/07/2013 20:21, Peter Maydell ha scritto: >> > Platforms without ISA and/or PCI have had a seriously hard time in >> > the dynamic >> > device creation world of QEMU. Devices on these were modeled as >> > SysBus devices >>

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-23 Thread Peter Maydell
On 23 July 2013 13:19, Paolo Bonzini wrote: > Il 22/07/2013 20:21, Peter Maydell ha scritto: >>> > Platforms without ISA and/or PCI have had a seriously hard time in the >>> > dynamic >>> > device creation world of QEMU. Devices on these were modeled as SysBus >>> > devices >>> > which can only

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-23 Thread Paolo Bonzini
Il 22/07/2013 20:21, Peter Maydell ha scritto: >> > Platforms without ISA and/or PCI have had a seriously hard time in the >> > dynamic >> > device creation world of QEMU. Devices on these were modeled as SysBus >> > devices >> > which can only be instantiated in machine files, not through -devic

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Andreas Färber
Am 23.07.2013 00:34, schrieb Peter Maydell: > On 22 July 2013 23:05, Anthony Liguori wrote: >> Peter Maydell writes: >>> We don't currently have any PCI host controller which is: >>> (a) for ARM >> >> In QEMU? You can make one super easily by just extending PCIHostState. >> >> It's just a matter

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Peter Maydell
On 22 July 2013 23:05, Anthony Liguori wrote: > Peter Maydell writes: >> We don't currently have any PCI host controller which is: >> (a) for ARM > > In QEMU? You can make one super easily by just extending PCIHostState. > > It's just a matter of mapping the index and data registers somewhere.

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Anthony Liguori
Peter Maydell writes: > On 22 July 2013 20:52, Anthony Liguori wrote: >> Alexander Graf writes: >>> On 22.07.2013, at 21:38, Anthony Liguori wrote: >>> >>> This could be used just the same for ARM's mach-virt, so I'd rather >>> not make it e500 specific. >> >> If someone designed a "virt" machi

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Peter Maydell
On 22 July 2013 20:52, Anthony Liguori wrote: > Alexander Graf writes: >> On 22.07.2013, at 21:38, Anthony Liguori wrote: >> >> This could be used just the same for ARM's mach-virt, so I'd rather >> not make it e500 specific. > > If someone designed a "virt" machine and didn't include PCI or some

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Anthony Liguori
Alexander Graf writes: > On 22.07.2013, at 21:38, Anthony Liguori wrote: > >> Alexander Graf writes: >> >> tl;dr, this is a PV bus for the e500 described as something more >> generic. I don't buy it. I don't think there are many platforms or >> devices out there where you can arbitrarily hook

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Alexander Graf
On 22.07.2013, at 21:38, Anthony Liguori wrote: > Alexander Graf writes: > >> Platforms without ISA and/or PCI have had a seriously hard time in the >> dynamic >> device creation world of QEMU. Devices on these were modeled as SysBus >> devices >> which can only be instantiated in machine fil

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Anthony Liguori
Alexander Graf writes: > Platforms without ISA and/or PCI have had a seriously hard time in the dynamic > device creation world of QEMU. Devices on these were modeled as SysBus devices > which can only be instantiated in machine files, not through -device. > > Why is that so? > > Well, SysBus is

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Alexander Graf
On 22.07.2013, at 20:21, Peter Maydell wrote: > On 22 July 2013 18:50, Alexander Graf wrote: >> Platforms without ISA and/or PCI have had a seriously hard time in the >> dynamic >> device creation world of QEMU. Devices on these were modeled as SysBus >> devices >> which can only be instantiat

Re: [Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Peter Maydell
On 22 July 2013 18:50, Alexander Graf wrote: > Platforms without ISA and/or PCI have had a seriously hard time in the dynamic > device creation world of QEMU. Devices on these were modeled as SysBus devices > which can only be instantiated in machine files, not through -device. > > Why is that so?

[Qemu-devel] [PATCH 0/9] Add platform bus

2013-07-22 Thread Alexander Graf
Platforms without ISA and/or PCI have had a seriously hard time in the dynamic device creation world of QEMU. Devices on these were modeled as SysBus devices which can only be instantiated in machine files, not through -device. Why is that so? Well, SysBus is trying to be incredibly generic. It a