]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Add support for ACPI_DEVICE_OST event handling
authorPeter Krempa <pkrempa@redhat.com>
Fri, 1 Apr 2016 14:41:08 +0000 (16:41 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 13 Apr 2016 11:26:29 +0000 (13:26 +0200)
commit650e8d2c590260dabc1f7426565792da4ccb74ab
treee97539eb363e69bd04bc122648bd30c4187064b1
parent5be120710e7865b1ee198d398176b75253fb0b3f
qemu: monitor: Add support for ACPI_DEVICE_OST event handling

The event is emitted on ACPI OSPM Status Indication events.

ACPI standard documentation describes the method as:

This object is an optional control method that is invoked by OSPM to
indicate processing status to the platform. During device ejection,
device hot add, or other event processing, OSPM may need to perform
specific handshaking with the platform. OSPM may also need to indicate
to the platform its inability to complete a requested operation; for
example, when a user presses an ejection button for a device that is
currently in use or is otherwise currently incapable of being ejected.
In this case, the processing of the ACPI Eject Request notification by
OSPM fails. OSPM may indicate this failure to the platform through the
invocation of the _OST control method. As a result of the status
notification indicating ejection failure, the platform may take certain
action including reissuing the notification or perhaps turning on an
appropriate indicator light to signal the failure to the user.
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c