qemu-e2k/hw
Philippe Mathieu-Daudé 8d0bceba24 hw/nvram: Always register FW_CFG_DATA_GENERATOR_INTERFACE
While the FW_CFG_DATA_GENERATOR_INTERFACE is only consumed
by a device only available using system-mode (fw_cfg), it is
implemented by a crypto component (tls-cipher-suites) which
is always available when crypto is used.

Commit 69699f3055 introduced the following error in the
qemu-storage-daemon binary:

  $ echo -e \
    '{"execute": "qmp_capabilities"}\r\n{"execute": "qom-list-types"}\r\n{"execute": "quit"}\r\n' \
    | storage-daemon/qemu-storage-daemon --chardev stdio,id=qmp0  --monitor qmp0
  {"QMP": {"version": {"qemu": {"micro": 50, "minor": 1, "major": 5}, "package": ""}, "capabilities": ["oob"]}}
  {"return": {}}
  missing interface 'fw_cfg-data-generator' for object 'tls-creds'
  Aborted (core dumped)

Since QOM dependencies are resolved at runtime, this issue
could not be triggered at linktime, and we don't have test
running the qemu-storage-daemon binary.

Fix by always registering the QOM interface.

Reported-by: Kevin Wolf <kwolf@redhat.com>
Fixes: 69699f3055 ("crypto/tls-cipher-suites: Produce fw_cfg consumable blob")
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20201006111909.2302081-2-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-10-12 11:50:20 -04:00
..
9pfs
acpi qapi: Extract ACPI commands to 'acpi.json' 2020-09-29 15:41:36 +02:00
adc
alpha load_elf: Remove unused address variables from callers 2020-09-25 16:52:08 -07:00
arm hw/arm/virt: Implement kvm-steal-time 2020-10-08 15:24:32 +01:00
audio
avr
block vhost: recheck dev state in the vhost_migration_log routine 2020-09-29 02:14:29 -04:00
char hw/char/bcm2835_aux: Allow less than 32-bit accesses 2020-10-08 15:24:32 +01:00
core hw/core: Move the creation of the library to the main meson.build 2020-10-12 11:50:19 -04:00
cpu
cris load_elf: Remove unused address variables from callers 2020-09-25 16:52:08 -07:00
display virtio-vga: implement big-endian-framebuffer property 2020-09-29 10:08:25 +02:00
dma
gpio
hppa
hyperv
i2c
i386 cpus: prepare new CpusAccel cpu accelerator interface 2020-10-05 16:41:22 +02:00
ide hw/ide: restore replay support of IDE 2020-10-09 17:27:55 +01:00
input
intc hw/intc/armv7m_nvic: Only show ID register values for Main Extension CPUs 2020-10-01 15:31:00 +01:00
ipack
ipmi
isa x86: ich9: expose "smi_negotiated_features" as a QOM property 2020-09-29 02:15:24 -04:00
lm32
m68k
mem
microblaze load_elf: Remove unused address variables from callers 2020-09-25 16:52:08 -07:00
mips hw/mips/mipssim: Use MMIO serial device on fake ISA I/O 2020-09-30 19:09:20 +02:00
misc hw/misc/mips_cpc: Start vCPU when powered on 2020-10-09 17:27:55 +01:00
moxie load_elf: Remove unused address variables from callers 2020-09-25 16:52:08 -07:00
net error: Remove NULL checks on error_propagate() calls (again) 2020-10-09 08:36:23 +02:00
nios2 load_elf: Remove unused address variables from callers 2020-09-25 16:52:08 -07:00
nubus
nvram hw/nvram: Always register FW_CFG_DATA_GENERATOR_INTERFACE 2020-10-12 11:50:20 -04:00
openrisc
pci qapi: Extract PCI commands to 'pci.json' 2020-09-29 15:41:36 +02:00
pci-bridge
pci-host acpi/gpex: no reason to use a method for _CRS 2020-09-30 11:29:56 +02:00
pcmcia
ppc spapr_numa: consider user input when defining associativity 2020-10-09 15:06:11 +11:00
rdma
riscv load_elf: Remove unused address variables from callers 2020-09-25 16:52:08 -07:00
rtc
rx
s390x error: Use error_fatal to simplify obvious fatal errors (again) 2020-10-09 08:36:23 +02:00
scsi monitor: Use getter/setter functions for cur_mon 2020-10-09 07:08:19 +02:00
sd
semihosting
sh4
smbios hw/smbios: report error if table size is too large 2020-09-29 02:15:24 -04:00
sparc
sparc64
ssi hw/ssi/npcm7xx_fiu: Fix handling of unsigned integer 2020-10-08 15:24:32 +01:00
timer
tpm
tricore
unicore32
usb hw/usb: Use lock guard macros 2020-09-28 13:13:58 +02:00
vfio vfio-ccw: plug memory leak while getting region info 2020-10-02 13:52:49 +02:00
virtio Error reporting patches for 2020-10-09 2020-10-09 14:47:45 +01:00
watchdog
xen
xenpv
xtensa load_elf: Remove unused address variables from callers 2020-09-25 16:52:08 -07:00
Kconfig
meson.build