Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Markus Armbruster
Peter Maydell peter.mayd...@linaro.org writes: On 5 March 2013 04:16, Paolo Bonzini pbonz...@redhat.com wrote: Il 04/03/2013 18:58, Peter Maydell ha scritto: Mass-mark these devices as no_user. There is no such thing as a 'no-user' device -- Anthony

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Peter Maydell
On 7 March 2013 16:48, Markus Armbruster arm...@redhat.com wrote: Can we make some progress towards something that makes more sense? First step: reasons for marking a device no_user. From a user point of view, I think there's just one: -device/device_add cannot possibly result in a working

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Markus Armbruster
Peter Maydell peter.mayd...@linaro.org writes: On 7 March 2013 16:48, Markus Armbruster arm...@redhat.com wrote: Can we make some progress towards something that makes more sense? First step: reasons for marking a device no_user. From a user point of view, I think there's just one:

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Peter Maydell
On 7 March 2013 20:45, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Case four: we really don't expect anybody to be trying to wire this up dynamically, which would apply to things like the on-cpu peripherals for some ARM cores. What ARM cores were you thinking here exactly? We are

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Anthony Liguori
Markus Armbruster arm...@redhat.com writes: Peter Maydell peter.mayd...@linaro.org writes: [and I don't think this device can be added via the monitor but not the command line counts as consistent or coherent...] no_user applies equally to -device and device_add.

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Peter Maydell
On 8 March 2013 00:09, Anthony Liguori aligu...@us.ibm.com wrote: What is -devices help trying to show? Devices that are valid to for a user to pass? Hint: on a PC, the only thing that's valid to add are devices that implement a certain bus type. In fact, it depends on the bus model. Yeah,

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Markus Armbruster
Anthony Liguori aligu...@us.ibm.com writes: Markus Armbruster arm...@redhat.com writes: Peter Maydell peter.mayd...@linaro.org writes: [and I don't think this device can be added via the monitor but not the command line counts as consistent or coherent...] no_user

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Anthony Liguori
Markus Armbruster arm...@redhat.com writes: Anthony Liguori aligu...@us.ibm.com writes: Markus Armbruster arm...@redhat.com writes: Peter Maydell peter.mayd...@linaro.org writes: [and I don't think this device can be added via the monitor but not the command line

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Markus Armbruster
Anthony Liguori aligu...@us.ibm.com writes: Markus Armbruster arm...@redhat.com writes: Anthony Liguori aligu...@us.ibm.com writes: Markus Armbruster arm...@redhat.com writes: Peter Maydell peter.mayd...@linaro.org writes: [and I don't think this device can be

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Peter Crosthwaite
On Fri, Mar 8, 2013 at 1:41 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 7 March 2013 20:45, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Case four: we really don't expect anybody to be trying to wire this up dynamically, which would apply to things like the on-cpu peripherals

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-07 Thread Peter Maydell
On 8 March 2013 07:37, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Its all out of tree using out device tree driven machine instantiation but we are toying with the idea of moving away from that in favour of -device and friends (2100 less lines out of tree code for me), once the

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-05 Thread Paolo Bonzini
Il 05/03/2013 00:22, Peter Maydell ha scritto: Yes, the right thing to do would be to QOMify memory regions and introduce pins, but that's a bit more than the amount of time I have now for this. ...plus it means that when we do have these things we have to go round and identify the cases

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-05 Thread Gerd Hoffmann
On 03/05/13 11:58, Paolo Bonzini wrote: Il 05/03/2013 00:22, Peter Maydell ha scritto: Yes, the right thing to do would be to QOMify memory regions and introduce pins, but that's a bit more than the amount of time I have now for this. ...plus it means that when we do have these things we

[Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-04 Thread Paolo Bonzini
These features require creating the device specially from board code. Therefore, devices that use it cannot be created with -device. (And some of them are even visible in binaries for qemu-system-x86_64, for example the sysbus EHCI device). Mass-mark these devices as no_user. Signed-off-by:

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-04 Thread Peter Maydell
On 5 March 2013 01:32, Paolo Bonzini pbonz...@redhat.com wrote: These features require creating the device specially from board code. Therefore, devices that use it cannot be created with -device. (And some of them are even visible in binaries for qemu-system-x86_64, for example the sysbus

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-04 Thread Paolo Bonzini
Il 04/03/2013 18:58, Peter Maydell ha scritto: Mass-mark these devices as no_user. There is no such thing as a 'no-user' device -- Anthony (http://lists.gnu.org/archive/html/qemu-devel/2013-01/msg00896.html) We should figure out what we might be trying to use 'no-user' for, and

Re: [Qemu-devel] [PATCH] sysbus: add no_user for devices using mmio or IRQ or GPIO

2013-03-04 Thread Peter Maydell
On 5 March 2013 04:16, Paolo Bonzini pbonz...@redhat.com wrote: Il 04/03/2013 18:58, Peter Maydell ha scritto: Mass-mark these devices as no_user. There is no such thing as a 'no-user' device -- Anthony (http://lists.gnu.org/archive/html/qemu-devel/2013-01/msg00896.html) We should figure