diff options
author | Laszlo Ersek <lersek@redhat.com> | 2017-03-20 18:05:57 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-03-22 18:29:27 +0200 |
commit | f92063028a0ea9e15d8f962644bce76c0e8aa7d1 (patch) | |
tree | aa6351da0d31306379373403493ee34065c05391 /include/hw/acpi/vmgenid.h | |
parent | f2a1ae45d8ec5ad494e66a9234499a2e0fbf4b40 (diff) |
hw/acpi/vmgenid: prevent more than one vmgenid device
A system with multiple VMGENID devices is undefined in the VMGENID spec by
omission.
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: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'include/hw/acpi/vmgenid.h')
-rw-r--r-- | include/hw/acpi/vmgenid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/acpi/vmgenid.h b/include/hw/acpi/vmgenid.h index 8578476bae..7beb9592fb 100644 --- a/include/hw/acpi/vmgenid.h +++ b/include/hw/acpi/vmgenid.h @@ -24,6 +24,7 @@ typedef struct VmGenIdState { bool write_pointer_available; } VmGenIdState; +/* returns NULL unless there is exactly one device */ static inline Object *find_vmgenid_dev(void) { return object_resolve_path_type("", VMGENID_DEVICE, NULL); |