]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
acpi: introduce TYPE_ACPI_DEVICE_IF interface
authorIgor Mammedov <imammedo@redhat.com>
Mon, 16 Jun 2014 17:12:26 +0000 (19:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 15:44:22 +0000 (18:44 +0300)
commit521b3673ac16ec7fa33b1ec2cdfe75ec708f073e
tree5126aa874621807f4aaa7cd45f5d8bacc6afed9e
parent6f2e27301d8cfea0a40dda7ec8a6dc1b9d0e228e
acpi: introduce TYPE_ACPI_DEVICE_IF interface

... it will be used to abstract generic ACPI bits from
device that implements ACPI interface.

ACPIOSTInfo type is used for passing-through raw _OST
event/status codes reported by guest OS to a management
layer. It lets management tools interpret values
as specified by ACPI spec if it is interested in it.

QEMU doesn't encode these values as enum, since it
doesn't need to handle them and it allows interface
to scale well without any changes in QEMU while guest
OS and management evolves in time.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/Makefile.objs
hw/acpi/acpi_interface.c [new file with mode: 0644]
include/hw/acpi/acpi_dev_interface.h [new file with mode: 0644]
qapi-schema.json