]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
scripts/vmstate-static-checker.py: Allow new name for ghes_addr_le field
authorThomas Huth <thuth@redhat.com>
Tue, 29 Apr 2025 15:21:39 +0000 (17:21 +0200)
committerPeter Xu <peterx@redhat.com>
Fri, 2 May 2025 15:09:36 +0000 (11:09 -0400)
ghes_addr_le has been renamed to hw_error_le in commit 652f6d86cbb
("acpi/ghes: better name the offset of the hardware error firmware").
Adjust the checker script to allow that changed field name.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20250429152141.294380-3-thuth@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
scripts/vmstate-static-checker.py

index 9c0e6b81f217b0779c32db8987b2f9f4d5638c0b..25aca839a034adb971d1fc0456a8322df86924d3 100755 (executable)
@@ -42,6 +42,7 @@ def check_fields_match(name, s_field, d_field):
     # Some fields changed names between qemu versions.  This list
     # is used to allow such changes in each section / description.
     changed_names = {
+        'acpi-ghes': ['ghes_addr_le', 'hw_error_le'],
         'apic': ['timer', 'timer_expiry'],
         'e1000': ['dev', 'parent_obj'],
         'ehci': ['dev', 'pcidev'],