hw/acpi/vmgenid: prevent device realization on pre-2.5 machine types
commitf2a1ae45d8ec5ad494e66a9234499a2e0fbf4b40
authorLaszlo Ersek <lersek@redhat.com>
Mon, 20 Mar 2017 17:05:56 +0000 (20 18:05 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 22 Mar 2017 16:27:35 +0000 (22 18:27 +0200)
tree15ab734518a81d497a2f127bc18be884becb9cfb
parente49a6618400d11e51e30328dfe8d7cafce82d4bc
hw/acpi/vmgenid: prevent device realization on pre-2.5 machine types

The WRITE_POINTER linker/loader command that underlies VMGENID depends on
commit baf2d5bfbac0 ("fw-cfg: support writeable blobs", 2017-01-12), which
in turn depends on fw_cfg DMA.

DMA for fw_cfg is enabled in 2.5+ machine types only (see commit
e6915b5f3a87, "fw_cfg: unbreak migration compatibility for 2.4 and earlier
machines", 2016-02-18).

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Ben Warren <ben@skyportsystems.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Ben Warren <ben@skyportsystems.com <mailto:ben@skyportsystems.com>>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
hw/acpi/vmgenid.c
include/hw/acpi/vmgenid.h
include/hw/compat.h