From: Jan Kiszka Date: Sun, 6 Mar 2011 15:09:49 +0000 (+0100) Subject: i8254: Fix migration from older versions X-Git-Tag: v0.15.0-rc0~699 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ca22a3a3758ee7ab14166058d4ce36bc6cdfdfd8;p=qemu.git i8254: Fix migration from older versions qdev conversion broke migration as the previous version used vmstate instance IDs derived from the iobase. Fix it by registering a legacy alias. Signed-off-by: Jan Kiszka Signed-off-by: Blue Swirl --- diff --git a/hw/i8254.c b/hw/i8254.c index eaf5d3e17..47c9d7382 100644 --- a/hw/i8254.c +++ b/hw/i8254.c @@ -520,6 +520,8 @@ static int pit_initfn(ISADevice *dev) register_ioport_read(pit->iobase, 3, 1, pit_ioport_read, pit); isa_init_ioport(dev, pit->iobase); + qdev_set_legacy_instance_id(&dev->qdev, pit->iobase, 2); + return 0; }