[Qemu-devel] Re: qdev: Some ISA devices don't handle second instantiation gracefully (was: isa-applesmc doesn't handle second instantiation gracefully)

2010-10-13 Thread Richard W.M. Jones
On Tue, Oct 12, 2010 at 03:00:13PM +0200, Markus Armbruster wrote: > Markus Armbruster writes: > > > When I try -device isa-applesmc -device isa-applesmc, I get > > > > WARNING: Using AppleSMC with invalid key > > qemu: hardware error: register_ioport_read: invalid opaque > > [...] >

[Qemu-devel] Re: qdev: Some ISA devices don't handle second instantiation gracefully

2010-10-12 Thread Gerd Hoffmann
Hi, They call register_ioport_write(), which aborts via hw_error() when the port is already in use. This is okay for non-configurable parts of a board emulation, but not okay for a qdev device, unless it has no_user set. Related: when isa_init_irq() finds the requested IRQ already in use, it

[Qemu-devel] Re: qdev: Some ISA devices don't handle second instantiation gracefully (was: isa-applesmc doesn't handle second instantiation gracefully)

2010-10-12 Thread Alexander Graf
On 12.10.2010, at 15:00, Markus Armbruster wrote: > Markus Armbruster writes: > >> When I try -device isa-applesmc -device isa-applesmc, I get >> >>WARNING: Using AppleSMC with invalid key >>qemu: hardware error: register_ioport_read: invalid opaque >>[...] >> >> and a core dump.