Commit ff90d503 authored by Jan Kiszka's avatar Jan Kiszka Committed by Aurelien Jarno
Browse files

vmmouse: Register vmstate via qdev


Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 43f20196
......@@ -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[]) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment