|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCHv3] ps2: migrate ledstate |
Date: | Mon, 17 Oct 2011 11:25:42 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110927 Red Hat/3.1.15-1.el6_1 Thunderbird/3.1.15 |
static const VMStateDescription vmstate_ps2_common = { .name = "PS2 Common State", - .version_id = 3, + .version_id = 4, .minimum_version_id = 2, .minimum_version_id_old = 2, .fields = (VMStateField []) {
@@ -577,6 +585,7 @@ static const VMStateDescription vmstate_ps2_keyboard = { VMSTATE_INT32(scan_enabled, PS2KbdState), VMSTATE_INT32(translate, PS2KbdState), VMSTATE_INT32_V(scancode_set, PS2KbdState,3), + VMSTATE_INT32_V(ledstate, PS2KbdState, 4), VMSTATE_END_OF_LIST() }
version_id in vmstate_ps2_keyboard must be updated too.The version update in vmstate_ps2_common might not be needed, IIRC the versions for stuff referenced via VMSTATE_STRUCT() isn't used anyway, Juan?
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |