Hi, This series consists of: - trivial cleanups, add trace events (was in v1) - add QMP/HMP commands to display the list of fw_cfg entries (reworked from v1) - add unrealize() method and deallocate various buffers (new in v2) - add fw_cfg_add_file_from_host (was in v1) - add edk2_add_host_crypto_policy (new in v2)
Since v1: - Addressed Michael and Laszlo comments. Please review, Phil. v1: https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg01598.html Philippe Mathieu-Daudé (18): hw/arm/virt: Remove null-check in virt_build_smbios() hw/i386: Remove unused include cutils: Add qemu_strdup_hexlify() and qemu_strdup_unhexlify() hw/nvram/fw_cfg: Add trace events hw/nvram/fw_cfg: Use the ldst API hw/nvram/fw_cfg: Remove the unnecessary boot_splash_filedata_size hw/nvram/fw_cfg: Add fw_cfg_common_unrealize() hw/nvram/fw_cfg: Move fw_cfg_file_slots_allocate() to common_realize() hw/nvram/fw_cfg: Free file_slots in common_unrealize() hw/nvram/fw_cfg: Add reboot_timeout to FWCfgState hw/nvram/fw_cfg: Add boot_splash.time_le16 to FWCfgState hw/nvram/fw_cfg: Keep reference of file_data in FWCfgState hw/nvram/fw_cfg: Add QMP 'info fw_cfg' command hw/nvram/fw_cfg: Add HMP 'info fw_cfg' command hw/nvram/fw_cfg: Add fw_cfg_add_file_from_host() hw/firmware: Add Edk2Crypto and edk2_add_host_crypto_policy() hw/i386: Use edk2_add_host_crypto_policy() hw/arm/virt: Use edk2_add_host_crypto_policy() MAINTAINERS | 9 + hmp-commands-info.hx | 17 ++ hw/Makefile.objs | 1 + hw/acpi/piix4.c | 1 - hw/arm/virt.c | 11 +- hw/firmware/Makefile.objs | 1 + hw/firmware/uefi_edk2_crypto_policies.c | 166 ++++++++++++++ hw/i386/pc.c | 28 +++ hw/nvram/fw_cfg.c | 284 ++++++++++++++++++++++-- hw/nvram/trace-events | 7 +- hw/ppc/Makefile.objs | 2 +- hw/ppc/fw_cfg.c | 31 +++ hw/sparc/sun4m.c | 19 ++ hw/sparc64/sun4u.c | 19 ++ include/hw/firmware/uefi_edk2.h | 28 +++ include/hw/nvram/fw_cfg.h | 42 ++++ include/qemu/cutils.h | 33 +++ include/sysemu/sysemu.h | 2 - qapi/misc.json | 44 ++++ stubs/Makefile.objs | 1 + stubs/fw_cfg.c | 19 ++ util/cutils.c | 55 +++++ vl.c | 10 - 23 files changed, 792 insertions(+), 38 deletions(-) create mode 100644 hw/firmware/Makefile.objs create mode 100644 hw/firmware/uefi_edk2_crypto_policies.c create mode 100644 hw/ppc/fw_cfg.c create mode 100644 include/hw/firmware/uefi_edk2.h create mode 100644 stubs/fw_cfg.c -- 2.20.1