Peter Maydell <peter.mayd...@linaro.org> writes: > On 23 July 2013 13:34, Paolo Bonzini <pbonz...@redhat.com> wrote: >> Il 23/07/2013 14:22, Peter Maydell ha scritto: >>> On 23 July 2013 13:19, Paolo Bonzini <pbonz...@redhat.com> wrote: > Yes, we should have easy support for defining a pluggable > bus as a collection of pins. > >> In fact, the main thing I dislike about Alex's patch is adding a new bus >> instead of making sysbus devices "just work" as pluggable devices. > > Agreed, more or less. Actually I'd rather sysbus devices > went away -- the requirement for interrupt and GPIO and > memory regions to all be defined as single arrays (so you > have to know what interrupt line 3 happens to be, and > that memory region 1 is the registers, and so on) is > pretty unfriendly. We should be able to define all these > as named connections.
The concrete next steps here are well known. 1) Make MemoryRegion's QOM objects and add them as children to the devices that own them. 2) Make qemu_irq a QOM object. Then you could use -device to plumb up all of these things without SysBus being involved. But the above is a lot of work for a use-case that while interesting academically so far hasn't proven to be all that important. Regards, Anthony Liguori > > -- PMM