From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7jl3-0000un-9p for qemu-devel@nongnu.org; Thu, 17 Jul 2014 07:22:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7jSw-0004bu-2i for qemu-devel@nongnu.org; Thu, 17 Jul 2014 07:04:16 -0400 Received: from mail.ispras.ru ([83.149.199.45]:47392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7jSv-0004bG-Pn for qemu-devel@nongnu.org; Thu, 17 Jul 2014 07:03:09 -0400 From: Pavel Dovgalyuk Date: Thu, 17 Jul 2014 15:03:12 +0400 Message-ID: <20140717110312.8352.29305.stgit@PASHA-ISP> In-Reply-To: <20140717110153.8352.80175.stgit@PASHA-ISP> References: <20140717110153.8352.80175.stgit@PASHA-ISP> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RFC PATCH v2 13/49] pl031: add missed field to vmstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, mark.burton@greensocs.com, real@ispras.ru, batuzovk@ispras.ru, pavel.dovgaluk@ispras.ru, pbonzini@redhat.com, fred.konrad@greensocs.com This patch adds timer which uses virtual clock to the VMState. Such timers are required for saving because virtual clock is the part of the virtual machine state. Signed-off-by: Pavel Dovgalyuk --- hw/timer/pl031.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/timer/pl031.c b/hw/timer/pl031.c index 34d9b44..f8e5abc 100644 --- a/hw/timer/pl031.c +++ b/hw/timer/pl031.c @@ -230,12 +230,13 @@ static int pl031_post_load(void *opaque, int version_id) static const VMStateDescription vmstate_pl031 = { .name = "pl031", - .version_id = 1, + .version_id = 2, .minimum_version_id = 1, .pre_save = pl031_pre_save, .post_load = pl031_post_load, .fields = (VMStateField[]) { VMSTATE_UINT32(tick_offset_vmstate, PL031State), + VMSTATE_TIMER_V(timer, PL031State, 2), VMSTATE_UINT32(mr, PL031State), VMSTATE_UINT32(lr, PL031State), VMSTATE_UINT32(cr, PL031State),