[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] vmmouse: Register vmstate via qdev
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH] vmmouse: Register vmstate via qdev |
Date: |
Mon, 21 Mar 2011 10:53:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
Signed-off-by: Jan Kiszka <address@hidden>
---
hw/vmmouse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/vmmouse.c b/hw/vmmouse.c
index ab8dbd6..1113f33 100644
--- a/hw/vmmouse.c
+++ b/hw/vmmouse.c
@@ -265,7 +265,6 @@ static int vmmouse_initfn(ISADevice *dev)
vmport_register(VMMOUSE_STATUS, vmmouse_ioport_read, s);
vmport_register(VMMOUSE_COMMAND, vmmouse_ioport_read, s);
vmport_register(VMMOUSE_DATA, vmmouse_ioport_read, s);
- vmstate_register(NULL, 0, &vmstate_vmmouse, s);
return 0;
}
@@ -274,6 +273,7 @@ static ISADeviceInfo vmmouse_info = {
.init = vmmouse_initfn,
.qdev.name = "vmmouse",
.qdev.size = sizeof(VMMouseState),
+ .qdev.vmsd = &vmstate_vmmouse,
.qdev.no_user = 1,
.qdev.reset = vmmouse_reset,
.qdev.props = (Property[]) {
--
1.7.1
- [Qemu-devel] [PATCH] vmmouse: Register vmstate via qdev,
Jan Kiszka <=