qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 12/14] pvpanic: add API to access io port


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH v3 12/14] pvpanic: add API to access io port
Date: Thu, 25 Jul 2013 12:29:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130621 Thunderbird/17.0.7

On 07/24/13 18:02, Michael S. Tsirkin wrote:
> Add API to find pvpanic device and get its io port.
> Will be used to fill in guest info structure.

> +uint16_t pvpanic_port(void)
> +{
> +    Object *o = object_resolve_path_type("", TYPE_ISA_PVPANIC_DEVICE, NULL);
> +    PVPanicState *s;
> +    if (!o) {
> +        return 0;
> +    }

       return object_property_get_int(o, "ioport");
}

Then you don't need PVPanicState access and can place the code into
acpi-build.c.

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]