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>
This commit is contained in:
Gerd Hoffmann 2025-02-25 17:30:18 +01:00
parent f903e88306
commit 12058948ab
4 changed files with 309 additions and 0 deletions

View file

@ -65,6 +65,7 @@ if have_system
'pci',
'rocker',
'tpm',
'uefi',
]
endif
if have_system or have_tools