Received: from eggs.gnu.org ([2001:4830:134:3::10]:49087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlHN-0005v1-C3 for qemu-devel@nongnu.org; Mon, 14 Oct 2013 12:46:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVlHH-0008II-8Z for qemu-devel@nongnu.org; Mon, 14 Oct 2013 12:46:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlHH-0008Hn-05 for qemu-devel@nongnu.org; Mon, 14 Oct 2013 12:45:55 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9EGjrfM022877 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 Oct 2013 12:45:53 -0400 From: Eduardo Habkost Date: Mon, 14 Oct 2013 13:45:43 -0300 Message-Id: <1381769148-22400-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 0/5] vmstate: Add max_version_id field List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Juan Quintela Cc: Paolo Bonzini , Markus Armbruster This series cleans up the vmstate save/load code a little, and adds a max_version_id field to VMStateDescription. This will be useful in case we need to revert vmstate changes but keep compatibility with QEMU versions that had a higher version_id. No existing behavior will be changed by code that doesn't have max_version_id set. One possible use case for this is the the "cpu" section, where the xsave CPU state could be made optional by moving it to a "xsave" section, and then revert version_id back to 11 while still accepting version_id==12 migration data. Eduardo Habkost (5): savevm: Coding style line length fix vmstate: Replace while (...) with for (...) vmstate: Simplify field-skipping load/save logic vmstate: Use version_id when saving vmstate: Add max_version_id field to VMStateDescription include/migration/vmstate.h | 1 + savevm.c | 170 +++++++++++++++++++++++--------------------- 2 files changed, 89 insertions(+), 82 deletions(-) -- 1.8.3.1