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
