Hi,

This series proposes a new solution: helpers that reconfigure existing 
ISADevices.

It also contains a resend of a prerequisite patch with updated summary.

As for the remaining issue of enabling/disabling devices I'd like to hear
opinions on whether we should allow hot-plugging of these devices or
whether we should add an enabled/disabled state to a qdev device.

I'd tend to think having a enable/disable state (and a setstate callback in ISADeviceInfo) is easier to handle, especially wrt the host-side state of the device (i.e. the chardev).

Reconfiguration can be done this way then:

setstate(0)           ->  device unregisters irq + ports.
qdev_prop_set_*()     ->  updates iobase + irqs
setstate(1)           ->  device registers new irqs + ports.

cheers,
  Gerd


Reply via email to