From 5226bb59f703963914e446557a2eea4a82eaf462 Mon Sep 17 00:00:00 2001 From: Cao jin Date: Sun, 17 Jan 2016 20:13:13 +0800 Subject: Add Error **errp for xen_pt_setup_vga() To catch the error message. Also modify the caller Signed-off-by: Cao jin Reviewed-by: Eric Blake Reviewed-by: Stefano Stabellini --- hw/xen/xen_pt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/xen/xen_pt.h') diff --git a/hw/xen/xen_pt.h b/hw/xen/xen_pt.h index 37497119f5..26f74f8eae 100644 --- a/hw/xen/xen_pt.h +++ b/hw/xen/xen_pt.h @@ -330,5 +330,6 @@ static inline bool is_igd_vga_passthrough(XenHostPCIDevice *dev) } int xen_pt_register_vga_regions(XenHostPCIDevice *dev); int xen_pt_unregister_vga_regions(XenHostPCIDevice *dev); -int xen_pt_setup_vga(XenPCIPassthroughState *s, XenHostPCIDevice *dev); +void xen_pt_setup_vga(XenPCIPassthroughState *s, XenHostPCIDevice *dev, + Error **errp); #endif /* !XEN_PT_H */ -- cgit v1.2.3