Skip to contentSkip to conversation

scripts/vmstate-static-checker.py: Add new hpet entry for num_timers

PATCH In review Peter Xu 2 participants 2 messages May 1, 2025 – May 5, 2025

lore
Share & tools
lore

Peter Xu

author
#0 lore raw

PATCH 1/1 scripts/vmstate-static-checker.py: Add new hpet entry for num_timers

The old "num_timers" got a rename. See commit 1433e38cc8 ("hpet: do not overwrite properties on post_load") for more details. Teach the script to accept the new name.

Cc Paolo Bonzini <[email protected]>
Cc Thomas Huth <[email protected]>
---
 scripts/vmstate-static-checker.py | 1 +
 1 file changed, 1 insertion(+)
scripts/vmstate-static-checker.py +1 -0
index 25aca839a0..2335e25f94 100755
@@ -91,6 +91,7 @@ def check_fields_match(name, s_field, d_field):
                       'mem_win_size', 'mig_mem_win_size',
                       'io_win_addr', 'mig_io_win_addr',
                       'io_win_size', 'mig_io_win_size'],
+        'hpet': ['num_timers', 'num_timers_save'],
     }
 
     if not name in changed_names:
Signature · 1 line
2.48.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Peter Xu

The old "num_timers" got a rename. See commit 1433e38cc8 ("hpet: do not overwrite properties on post_load") for more details. Teach the script to accept the new name.

Cc Paolo Bonzini <[email protected]>
Cc Thomas Huth <[email protected]>
---
  scripts/vmstate-static-checker.py | 1 +
  1 file changed, 1 insertion(+)
scripts/vmstate-static-checker.py +0 -0
index 25aca839a0..2335e25f94 100755

scripts/vmstate-static-checker.py def check_fields_match(name, s_field, d_field): · line 97

Quoted 7 lines
scripts/vmstate-static-checker.py +1 -0
@@ -91,6 +91,7 @@ def check_fields_match(name, s_field, d_field):
                        'mem_win_size', 'mig_mem_win_size',
                        'io_win_addr', 'mig_io_win_addr',
                        'io_win_size', 'mig_io_win_size'],
+        'hpet': ['num_timers', 'num_timers_save'],
      }
 
      if not name in changed_names: