提交 af3713f6 编写于 作者: A Amit Shah 提交者: Juan Quintela

tests: vmstate static checker: add substructure for usb-kbd for hid section

This shows how the script deals with substructures added to vmstate
descriptions that don't change the on-wire format.
Signed-off-by: NAmit Shah <amit.shah@redhat.com>
Reviewed-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NJuan Quintela <quintela@redhat.com>
上级 c7173a9c
......@@ -844,7 +844,7 @@
"field": "dev",
"version_id": 0,
"field_exists": false,
"size": 4352,
"size": 5832,
"Description": {
"name": "USBDevice",
"version_id": 1,
......@@ -896,58 +896,71 @@
}
},
{
"field": "kbd.keycodes",
"field": "hid",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "head",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "n",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "kbd.modifiers",
"version_id": 0,
"field_exists": false,
"size": 2
},
{
"field": "kbd.leds",
"version_id": 0,
"field_exists": false,
"size": 1
},
{
"field": "kbd.key",
"version_id": 0,
"field_exists": false,
"size": 1
},
{
"field": "kbd.keys",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "protocol",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "idle",
"version_id": 0,
"field_exists": false,
"size": 1
"size": 312,
"Description": {
"name": "HIDKeyboardDevice",
"version_id": 1,
"minimum_version_id": 1,
"Fields": [
{
"field": "kbd.keycodes",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "head",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "n",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "kbd.modifiers",
"version_id": 0,
"field_exists": false,
"size": 2
},
{
"field": "kbd.leds",
"version_id": 0,
"field_exists": false,
"size": 1
},
{
"field": "kbd.key",
"version_id": 0,
"field_exists": false,
"size": 1
},
{
"field": "kbd.keys",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "protocol",
"version_id": 0,
"field_exists": false,
"size": 4
},
{
"field": "idle",
"version_id": 0,
"field_exists": false,
"size": 1
}
]
}
}
]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册