Re: [Qemu-devel] [PATCHv3] ps2: migrate ledstate

2011-10-17 Thread Christophe Fergeau
On Mon, Oct 17, 2011 at 11:25:42AM +0200, Gerd Hoffmann wrote: > > > > 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, > > .fie

Re: [Qemu-devel] [PATCHv3] ps2: migrate ledstate

2011-10-17 Thread Gerd Hoffmann
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

[Qemu-devel] [PATCHv3] ps2: migrate ledstate

2011-10-14 Thread Christophe Fergeau
Make the ps2 device track its ledstate so that we can migrate it. Otherwise it gets lost across migration, and spice-server gets confused about the actual keyboard state and sends bogus caps/scroll/num key events. This fixes RH bug #729294 Signed-off-by: Christophe Fergeau --- v3: use VMSTATE_UI