]> git.ipfire.org Git - thirdparty/qemu.git/commit
vmstate-static-checker: Recognize "num" field
authorPeter Xu <peterx@redhat.com>
Tue, 25 Apr 2023 18:05:44 +0000 (14:05 -0400)
committerJuan Quintela <quintela@redhat.com>
Thu, 27 Apr 2023 08:18:26 +0000 (10:18 +0200)
commita67cceb071b76cc1631c67c11c845ffc4aa0803e
tree115ad59aeed728a57798c188c281a5623cfb5dd1
parent12c81e5ae9aa226f1200ecf25153d350e92cf387
vmstate-static-checker: Recognize "num" field

Recognize this field for VMS_ARRAY typed vmsd fields, then we can do proper
size matching with previous patch.

Note that this is compatible with old -dump-vmstate output, because when
"num" is not there we'll still use the old "size" only.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
scripts/vmstate-static-checker.py