On 2 January 2015 at 09:25, Laurent Vivier <laur...@vivier.eu> wrote: > Using AddressSpace is really a very good idea, in fact, but I don't like > the way you pass it to the device (a qdev_set_prop()). > > I think we should do as it is done in PCI. This must be managed at > sysbus level, not at the device level.
Actually I think using properties is the direction we're headed for this currently. (Consider the case of a sysbus device which has two DMA master ports, like an ARM trustzone aware device.) However I have a feeling the plan was to use MemoryRegion properties rather than AddressSpaces. Can anybody remember if we have an example of this in-tree? -- PMM