[Qemu-devel] [PATCH v4 7/7] RTC:Allow to migrate from old version

2012-03-19 Thread Zhang, Yang Z
The new logic is compatible with old. So it should not block migrate from old version. But new version cannot migrate to old. Signed-off-by: Yang Zhang --- hw/mc146818rtc.c | 48 1 files changed, 44 insertions(+), 4 deletions(-) diff --git a/h

Re: [Qemu-devel] [PATCH v4 7/7] RTC:Allow to migrate from old version

2012-03-19 Thread Avi Kivity
On 03/19/2012 08:14 AM, Zhang, Yang Z wrote: > The new logic is compatible with old. So it should not block migrate from old > version. But new version cannot migrate to old. > > +static int rtc_load_old(QEMUFile *f, void *opaque, int version_id) > +{ > +RTCState *s = opaque; > + > +if (ve