|
From: | Jean-Christophe DUBOIS |
Subject: | Re: [Qemu-devel] [PATCH] i.MX: implement a more correct version of EPIT timer. |
Date: | Wed, 10 Apr 2013 21:55:19 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
On 04/10/2013 10:26 AM, Peter Maydell wrote:
On 9 April 2013 23:32, Jean-Christophe DUBOIS <address@hidden> wrote:@@ -605,11 +735,13 @@ static const VMStateDescription vmstate_imx_timerp = { .minimum_version_id_old = 1, .fields = (VMStateField[]) { VMSTATE_UINT32(cr, IMXTimerPState), + VMSTATE_UINT32(sr, IMXTimerPState), VMSTATE_UINT32(lr, IMXTimerPState), VMSTATE_UINT32(cmp, IMXTimerPState), + VMSTATE_UINT32(cnt, IMXTimerPState), VMSTATE_UINT32(freq, IMXTimerPState), - VMSTATE_INT32(int_level, IMXTimerPState), - VMSTATE_PTIMER(timer, IMXTimerPState), + VMSTATE_PTIMER(timer_reload, IMXTimerPState), + VMSTATE_PTIMER(timer_cmp, IMXTimerPState), VMSTATE_END_OF_LIST() } };If you're adding/changing vmstate fields like this then you need to increment all the version id fields too. Otherwise cross-version migration will break oddly (rather than failing cleanly).
OK
thanks -- PMM
[Prev in Thread] | Current Thread | [Next in Thread] |