To allow enabling/disabling present ISA devices without hotplug,
keep track of state and add a helper to avoid enabling twice.
Since the properties to be configured are defined at device level,
delegate the actual work to a callback function.
If no callback is supplied, the device can't be disabled.
Prepare VMSTATE_ISA_DEVICE for devices that support disabling.
Legacy devices never change their state and won't need this yet.
Cc: Gerd Hoffmann <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
hw/hw.h | 15 +++++++++++++++
hw/isa-bus.c | 29 +++++++++++++++++++++++++++++
hw/isa.h | 4 ++++
3 files changed, 48 insertions(+), 0 deletions(-)