ps2: migrate ledstate
commit7f540ab5248a62c6ca4f6346a3564d0eff0069db
authorChristophe Fergeau <cfergeau@redhat.com>
Mon, 17 Oct 2011 11:37:34 +0000 (17 13:37 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Nov 2011 21:52:05 +0000 (1 16:52 -0500)
treea97fedf15b84395928e05d26e389d3b322b32f6b
parentae878b172e8fe4a4237874de2d3bb879699d8af5
ps2: migrate ledstate

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

We only need to migrate the state when it is different of the default
one (0).

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ps2.c