[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 4/5] qmp: add query-acpi-ospm-status command
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [RFC 4/5] qmp: add query-acpi-ospm-status command |
Date: |
Fri, 30 May 2014 09:22:56 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 05/28/2014 08:57 AM, Igor Mammedov wrote:
> ... to get ACPI OSPM status reported by ACPI devices
> via _OST method.
>
> Signed-off-by: Igor Mammedov <address@hidden>
> ---
> qapi-schema.json | 9 +++++++++
> qmp-commands.hx | 22 ++++++++++++++++++++++
> qmp.c | 20 ++++++++++++++++++++
> 3 files changed, 51 insertions(+), 0 deletions(-)
Interface review:
> +Example:
> +-> { "execute": "query-acpi-ospm-status" }
> +<- { 'return': [ { 'device': 'd1', 'slot': 0, 'source': 1, 'status': 0},
Should 'status' be represented as an enum type, rather than an
open-coded integer?
> + { 'device': '', 'slot': 1, 'source': 0, 'status': 0},
> + { 'device': '', 'slot': 2, 'source': 0, 'status': 0},
Why not make 'device' optional, and omit it when there is no associated
device string?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [RFC 1/5] qmp: add query-memory-devices command, (continued)
[Qemu-devel] [RFC 2/5] acpi: introduce TYPE_ACPI_DEVICE_IF interface, Igor Mammedov, 2014/05/28
[Qemu-devel] [RFC 3/5] acpi: implement ospm_status() method for PIIX4/ICH9_LPC devices, Igor Mammedov, 2014/05/28
[Qemu-devel] [RFC 4/5] qmp: add query-acpi-ospm-status command, Igor Mammedov, 2014/05/28
- Re: [Qemu-devel] [RFC 4/5] qmp: add query-acpi-ospm-status command,
Eric Blake <=
[Qemu-devel] [RFC 5/5] qmp: add ACPI_DEVICE_OST event handling, Igor Mammedov, 2014/05/28