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