[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] hid: vmstat fix
From: |
TeLeMan |
Subject: |
[Qemu-devel] [PATCH] hid: vmstat fix |
Date: |
Wed, 14 Sep 2011 11:03:21 +0800 |
The commit "usb/hid: add hid_pointer_activate, use it" used
HIDMouseState.mouse_grabbed in hid_pointer_activate(), so
mouse_grabbed should be added into vmstat.
Signed-off-by: TeLeMan <address@hidden>
---
hw/hid.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/hid.c b/hw/hid.c
index c608400..72b861f 100644
--- a/hw/hid.c
+++ b/hw/hid.c
@@ -433,7 +433,7 @@ static const VMStateDescription vmstate_hid_ptr_queue = {
const VMStateDescription vmstate_hid_ptr_device = {
.name = "HIDPointerDevice",
- .version_id = 1,
+ .version_id = 2,
.minimum_version_id = 1,
.post_load = hid_post_load,
.fields = (VMStateField[]) {
@@ -443,6 +443,7 @@ const VMStateDescription vmstate_hid_ptr_device = {
VMSTATE_UINT32(n, HIDState),
VMSTATE_INT32(protocol, HIDState),
VMSTATE_UINT8(idle, HIDState),
+ VMSTATE_INT32_V(ptr.mouse_grabbed, HIDState, 2),
VMSTATE_END_OF_LIST(),
}
};
--
1.7.6.msysgit.0
- [Qemu-devel] [PATCH] hid: vmstat fix,
TeLeMan <=