[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3] qmp: add ACPI_DEVICE_OST event handling
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v3] qmp: add ACPI_DEVICE_OST event handling |
Date: |
Fri, 20 Jun 2014 09:46:27 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 06/20/2014 02:33 AM, Igor Mammedov wrote:
> emits event when ACPI OSPM evaluates _OST method
> of ACPI device.
>
> Signed-off-by: Igor Mammedov <address@hidden>
> ---
> v2:
> - use new QAPI event infrastructure
> from rebased PCI tree on top of today's QMP pull request
> ---
> hw/acpi/memory_hotplug.c | 7 ++++++-
> qapi-event.json | 10 ++++++++++
> 2 files changed, 16 insertions(+), 1 deletions(-)
>
> +++ b/qapi-event.json
> @@ -304,3 +304,13 @@
> { 'event': 'QUORUM_REPORT_BAD',
> 'data': { '*error': 'str', 'node-name': 'str',
> 'sector-num': 'int', 'sector-count': 'int' } }
> +
> +##
> +# @ACPI_DEVICE_OST
> +#
> +# Emitted when guest executes ACPI _OST method.
> +#
> +# @info: ACPIOSTInfo type as described in qapi-schema.json
Needs 'Since: 2.1'.
> +##
> +{ 'event': 'ACPI_DEVICE_OST',
> + 'data': { 'info': 'ACPIOSTInfo' } }
>
Not your fault, as the problem already exists, but it's a bit awkward
that qapi-event.json is not self-contained, and your patch is only
making it worse. qapi-event.json only makes sense when included by
qapi-schema.json, when ideally it would be nice if it made sense if
compiled in isolation. I already pointed this fact out on Wenchao's
series that made events part of QAPI, but fixing it first requires
teaching the code generators to flag places where a type is used without
a pre-definition, so that we know which types have to be moved into a
common include. So don't let this comment hold up your patch.
If you add the Since line,
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature