diff options
author | Juan Quintela <quintela@redhat.com> | 2023-10-20 11:07:21 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-11-01 16:13:58 +0100 |
commit | 1f52c7a80bf19fef5228abe85cdb845088e07274 (patch) | |
tree | 5981b3b62a6e081634ea952f5b2a03d029cc7842 | |
parent | 99b16e8ee4789432cc543fde45902796385713c0 (diff) | |
download | qemu-1f52c7a80bf19fef5228abe85cdb845088e07274.zip qemu-1f52c7a80bf19fef5228abe85cdb845088e07274.tar.gz qemu-1f52c7a80bf19fef5228abe85cdb845088e07274.tar.bz2 |
migration: Use vmstate_register_any() for isa-ide
Otherwise qom-test fails.
ok 4 /i386/qom/x-remote
qemu-system-i386: savevm_state_handler_insert: Detected duplicate SaveStateEntry: id=isa-ide, instance_id=0x0
Broken pipe
../../../../../mnt/code/qemu/full/tests/qtest/libqtest.c:195: kill_qemu() tried to terminate QEMU process but encountered exit status 1 (expected 0)
Aborted (core dumped)
$
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231020090731.28701-4-quintela@redhat.com>
-rw-r--r-- | hw/ide/isa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/isa.c b/hw/ide/isa.c index 95053e0..ea60c08 100644 --- a/hw/ide/isa.c +++ b/hw/ide/isa.c @@ -73,7 +73,7 @@ static void isa_ide_realizefn(DeviceState *dev, Error **errp) ide_bus_init(&s->bus, sizeof(s->bus), dev, 0, 2); ide_init_ioport(&s->bus, isadev, s->iobase, s->iobase2); ide_bus_init_output_irq(&s->bus, isa_get_irq(isadev, s->irqnum)); - vmstate_register(VMSTATE_IF(dev), 0, &vmstate_ide_isa, s); + vmstate_register_any(VMSTATE_IF(dev), &vmstate_ide_isa, s); ide_bus_register_restart_cb(&s->bus); } |