qemu-e2k/hw/acpi
Marc-André Lureau c8389550de vmgenid: replace x-write-pointer-available hack
This compat property sole function is to prevent the device from being
instantiated. Instead of requiring an extra compat property, check if
fw_cfg has DMA enabled.

fw_cfg is a built-in device that is initialized very early by the
machine init code.  We have at least one other device that also
assumes fw_cfg_find() can be safely used on realize: pvpanic.

This has the additional benefit of handling other cases properly, like:

  $ qemu-system-x86_64 -device vmgenid -machine none
  qemu-system-x86_64: -device vmgenid: vmgenid requires DMA write support in fw_cfg, which this machine type does not provide
  $ qemu-system-x86_64 -device vmgenid -machine pc-i440fx-2.9 -global fw_cfg.dma_enabled=off
  qemu-system-x86_64: -device vmgenid: vmgenid requires DMA write support in fw_cfg, which this machine type does not provide
  $ qemu-system-x86_64 -device vmgenid -machine pc-i440fx-2.6 -global fw_cfg.dma_enabled=on
  [boots normally]

Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Ben Warren <ben@skyportsystems.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2017-09-08 16:15:17 +03:00
..
acpi_interface.c
acpi-stub.c acpi: filter based on CONFIG_ACPI_X86 rather than TARGET 2017-01-16 17:52:35 +01:00
aml-build.c pci, virtio, vhost: fixes 2017-05-18 10:01:08 +01:00
bios-linker-loader.c vmgenid: replace x-write-pointer-available hack 2017-09-08 16:15:17 +03:00
core.c shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
cpu_hotplug.c machine: Make possible_cpu_arch_ids() return const pointer 2017-01-23 21:25:37 -02:00
cpu.c pc: get numa node mapping from possible_cpus instead of numa_get_node_for_cpu() 2017-05-11 16:08:49 -03:00
ich9.c include/exec/poison: Mark CONFIG_KVM as poisoned, too 2017-07-04 14:30:03 +02:00
ipmi-stub.c stubs: move acpi stubs to hw/acpi 2017-01-16 17:52:35 +01:00
ipmi.c
Makefile.objs ACPI: Add Virtual Machine Generation ID support 2017-03-02 07:14:27 +02:00
memory_hotplug.c pc-dimm: make "size" property uint64 2017-06-20 14:31:32 +02:00
nvdimm.c pc-dimm: make "size" property uint64 2017-06-20 14:31:32 +02:00
pcihp.c hw/acpi: Move acpi_set_pci_info to pcihp 2017-09-08 16:15:17 +03:00
piix4.c Revert "ACPI: don't call acpi_pcihp_device_plug_cb on xen" 2017-09-08 16:15:17 +03:00
tco.c tco: do not generate an NMI 2017-04-05 17:23:52 +02:00
trace-events docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
vmgenid.c vmgenid: replace x-write-pointer-available hack 2017-09-08 16:15:17 +03:00