hw/uefi: add var-service-json.c + qapi for NV vars.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 25 Feb 2025 16:30:18 +0000 (17:30 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 4 Mar 2025 11:02:50 +0000 (12:02 +0100)
commit12058948abdf7eed8364aee79add66b40002fd5b
treec62a122e581d5271c8338456441bc114965ffc24
parentf903e88306adfcce3b80a512a222c8551718d719
hw/uefi: add var-service-json.c + qapi for NV vars.

Define qapi schema for the uefi variable store state.

Use it and the generated visitor helper functions to store persistent
(EFI_VARIABLE_NON_VOLATILE) variables in JSON format on disk.

Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-ID: <20250225163031.1409078-15-kraxel@redhat.com>
[ incremental fix squashed in ]
Message-ID: <pji24p6oag7cn2rovus7rquo7q2c6tokuquobfro2sqorky7vu@tk7cxud6jw7f>
hw/uefi/var-service-json.c [new file with mode: 0644]
qapi/meson.build
qapi/qapi-schema.json
qapi/uefi.json [new file with mode: 0644]