From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSULE-00006z-5a for qemu-devel@nongnu.org; Sun, 28 Oct 2012 10:59:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSULD-0003y8-7L for qemu-devel@nongnu.org; Sun, 28 Oct 2012 10:59:56 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:54707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSULC-0003xy-W0 for qemu-devel@nongnu.org; Sun, 28 Oct 2012 10:59:55 -0400 Received: by mail-la0-f45.google.com with SMTP id m13so3206764lah.4 for ; Sun, 28 Oct 2012 07:59:53 -0700 (PDT) From: Igor Mitsyanko Date: Sun, 28 Oct 2012 18:59:45 +0400 Message-Id: <1351436388-3636-1-git-send-email-i.mitsyanko@samsung.com> Subject: [Qemu-devel] [PATCH V5 0/3] SD card model save/load support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, benoit.canet@gmail.com, wdongxu@linux.vnet.ibm.com, stefanha@linux.vnet.ibm.com, e.voevodin@samsung.com, armbru@redhat.com, andrew.zaborowski@intel.com, kyungmin.park@samsung.com, pbonzini@redhat.com, Igor Mitsyanko This was a part of a bigger series which also included SD state qomification, but I decided to split them. PATCH1 Not actually related to vmstate, fixes a bug for high and extra capacity cards in erase function. Changelog: v4->v5 - changed commit message to clearly state that it's a bugfix; - use neat extract*() API to test a bit in OCR register; - get rid of "?:" statements; v3->v4 new in series v1->v3 wasn't presented PATCH2 Patch by Peter Maydell which adds support of bitmaps to vmstate, required for next patch. Changelog: It was originally a standalone patch, the only thing I changed is a comment in vmstate.h: "_field_size should be a uint32_t.." -> "_field_size should be a int32_t..". PATCH3 Adds save/load support for SDState, intermediate variable introduced in SDState to hold size of wp_groups bitfield. Changelog: v4->v5 - use new VMSTATE_BITMAP() macro for wpgroup bitmap; - give a names to SD card mode and state enums and refer to them in comments to .mode and .state SDState members; v3->v4 no change v2->v3 - don't use BITS_TO_LONGS when operating with bitfields; v1->v2 - use bitmap.h heder for bit operations Igor Mitsyanko (2): hw/sd.c: Fix erase for high capacity cards hw/sd.c: add SD card save/load support Peter Maydell (1): vmstate: Add support for saving/loading bitmaps hw/sd.c | 106 +++++++++++++++++++++++++++++++++++++++++++++----------------- hw/sd.h | 1 + savevm.c | 41 ++++++++++++++++++++++++ vmstate.h | 13 ++++++++ 4 files changed, 132 insertions(+), 29 deletions(-) -- 1.8.0.msysgit.0