Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-27 Thread Paolo Bonzini
Il 27/06/2014 13:52, Peter Maydell ha scritto: On 27 June 2014 12:48, Paolo Bonzini wrote: We could also make TYPE_MACHINE a subclass of TYPE_DEVICE, to have an obvious place for this SoC object. Why isn't TYPE_MACHINE a subclass of TYPE_DEVICE anyway? To start the conversion with an API th

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-27 Thread Peter Maydell
On 27 June 2014 12:48, Paolo Bonzini wrote: > We could also make TYPE_MACHINE a subclass of TYPE_DEVICE, to have an > obvious place for this SoC object. Why isn't TYPE_MACHINE a subclass of TYPE_DEVICE anyway? thanks -- PMM

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-27 Thread Paolo Bonzini
Il 27/06/2014 13:24, Alexander Graf ha scritto: I think we can all agree that the sysbus bus is not a bus per se. So conceptually, what's the difference between a device attached to a non-bus and a device not attached to a bus at all? And why can't we convert sysbus to not be a bus anymore? I

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-27 Thread Alexander Graf
On 27.06.14 12:54, Peter Crosthwaite wrote: On Fri, Jun 27, 2014 at 8:30 PM, Andreas Färber wrote: Am 26.06.2014 14:01, schrieb Alexander Graf: On 20.06.14 08:43, Peter Crosthwaite wrote: On Wed, Jun 4, 2014 at 10:28 PM, Alexander Graf wrote: Platforms without ISA and/or PCI have had a ser

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-27 Thread Alexander Graf
On 27.06.14 12:30, Andreas Färber wrote: Am 26.06.2014 14:01, schrieb Alexander Graf: On 20.06.14 08:43, Peter Crosthwaite wrote: On Wed, Jun 4, 2014 at 10:28 PM, Alexander Graf wrote: Platforms without ISA and/or PCI have had a seriously hard time in the dynamic device creation world of QEM

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-27 Thread Alexander Graf
On 27.06.14 13:17, Andreas Färber wrote: Am 27.06.2014 12:54, schrieb Peter Crosthwaite: On Fri, Jun 27, 2014 at 8:30 PM, Andreas Färber wrote: Am 26.06.2014 14:01, schrieb Alexander Graf: On 20.06.14 08:43, Peter Crosthwaite wrote: On Wed, Jun 4, 2014 at 10:28 PM, Alexander Graf wrote: P

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-27 Thread Andreas Färber
Am 27.06.2014 12:54, schrieb Peter Crosthwaite: > On Fri, Jun 27, 2014 at 8:30 PM, Andreas Färber wrote: >> Am 26.06.2014 14:01, schrieb Alexander Graf: >>> On 20.06.14 08:43, Peter Crosthwaite wrote: On Wed, Jun 4, 2014 at 10:28 PM, Alexander Graf wrote: > Platforms without ISA and/or P

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-27 Thread Peter Crosthwaite
On Fri, Jun 27, 2014 at 8:30 PM, Andreas Färber wrote: > Am 26.06.2014 14:01, schrieb Alexander Graf: >> >> On 20.06.14 08:43, Peter Crosthwaite wrote: >>> On Wed, Jun 4, 2014 at 10:28 PM, Alexander Graf wrote: Platforms without ISA and/or PCI have had a seriously hard time in the dynam

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-27 Thread Andreas Färber
Am 26.06.2014 14:01, schrieb Alexander Graf: > > On 20.06.14 08:43, Peter Crosthwaite wrote: >> On Wed, Jun 4, 2014 at 10:28 PM, 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 mo

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-26 Thread Alexander Graf
On 20.06.14 08:43, Peter Crosthwaite wrote: On Wed, Jun 4, 2014 at 10:28 PM, 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 mac

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-20 Thread Paolo Bonzini
Il 20/06/2014 08:43, Peter Crosthwaite ha scritto: I think a big point of confusion here is you have picked a not-even-qdevified device for conversion. Boards are still calling serial_mm_init() directly due to lack of a proper device for Sysbus serial. Do you have another device that already QOM

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-19 Thread Peter Crosthwaite
On Wed, Jun 4, 2014 at 10:28 PM, 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 i

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-19 Thread Alexander Graf
On 19.06.14 22:54, Paolo Bonzini wrote: Il 04/06/2014 14:28, Alexander Graf ha scritto: But do we need that level of complexity for normal devices usually? In a normal platform world (SoCs, PV machines) we have a flat memory layout we can plug our device memory into. We also have a flat IRQ

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-19 Thread Paolo Bonzini
Il 04/06/2014 14:28, Alexander Graf ha scritto: But do we need that level of complexity for normal devices usually? In a normal platform world (SoCs, PV machines) we have a flat memory layout we can plug our device memory into. We also have a flat IRQ model where we can plug our device IRQs into

[Qemu-devel] [PATCH 0/5] Platform device support

2014-06-04 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