Received: from eggs.gnu.org ([208.118.235.92]:50250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQ177-00012X-69 for qemu-devel@nongnu.org; Wed, 10 Apr 2013 15:55:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQ176-0005kU-3J for qemu-devel@nongnu.org; Wed, 10 Apr 2013 15:55:25 -0400 Received: from zose-mta11.web4all.fr ([178.33.204.87]:39920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQ175-0005k4-TF for qemu-devel@nongnu.org; Wed, 10 Apr 2013 15:55:24 -0400 Message-ID: <5165C3A7.2060501@tribudubois.net> Date: Wed, 10 Apr 2013 21:55:19 +0200 From: Jean-Christophe DUBOIS MIME-Version: 1.0 References: <1365546746-7867-1-git-send-email-jcd@tribudubois.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] i.MX: implement a more correct version of EPIT timer. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , peter.chubb@nicta.com.au, philipo@ok-labs.com On 04/10/2013 10:26 AM, Peter Maydell wrote: > On 9 April 2013 23:32, Jean-Christophe DUBOIS 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 >