Add configure query interface for pvpanic-mmio. Signed-off-by: Peng Hao <peng.h...@zte.com.cn> --- include/hw/misc/pvpanic.h | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/include/hw/misc/pvpanic.h b/include/hw/misc/pvpanic.h index f1a05b2..dc042cf 100644 --- a/include/hw/misc/pvpanic.h +++ b/include/hw/misc/pvpanic.h @@ -2,10 +2,12 @@ * QEMU simulated pvpanic device. * * Copyright Fujitsu, Corp. 2013 + * Copyright ZTE Ltd. 2018 * * Authors: * Wen Congyang <we...@cn.fujitsu.com> * Hu Tao <hu...@cn.fujitsu.com> + * Peng Hao <peng.h...@zte.com.cn> * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. @@ -28,4 +30,9 @@ static inline uint16_t pvpanic_port(void) return object_property_get_uint(o, PVPANIC_IOPORT_PROP, NULL); } +static inline Object *pvpanic_mmio(void) +{ + return object_resolve_path_type("", TYPE_PVPANIC_MMIO, NULL); +} + #endif -- 1.8.3.1