aboutsummaryrefslogtreecommitdiff
path: root/include/hw/xen
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2016-08-02 08:32:32 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-08-03 14:52:11 +0200
commit0e39bb022b5fa8c11964968885f3263c02ce42b0 (patch)
tree535f76c81af91d39a619afee1e3044c7dcdbcad8 /include/hw/xen
parent80440ea033b02d9c7330d507daf41d4bf8a8c058 (diff)
downloadqemu-0e39bb022b5fa8c11964968885f3263c02ce42b0.zip
qemu-0e39bb022b5fa8c11964968885f3263c02ce42b0.tar.gz
qemu-0e39bb022b5fa8c11964968885f3263c02ce42b0.tar.bz2
xen: use a common function for pv and hvm guest backend register calls
Instead of calling xen_be_register() for each supported backend type for hvm and pv guests in their machine init functions use a common function in order not to have to add new backends twice. This at once fixes the error that hvm domains couldn't use the qusb backend. Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Anthony PERARD <anthony.perard@citrix.com> Message-id: 1470119552-16170-1-git-send-email-jgross@suse.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/hw/xen')
-rw-r--r--include/hw/xen/xen_backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/xen/xen_backend.h b/include/hw/xen/xen_backend.h
index 754c0a4..0df282a 100644
--- a/include/hw/xen/xen_backend.h
+++ b/include/hw/xen/xen_backend.h
@@ -87,6 +87,7 @@ void xen_be_check_state(struct XenDevice *xendev);
/* xen backend driver bits */
int xen_be_init(void);
+void xen_be_register_common(void);
int xen_be_register(const char *type, struct XenDevOps *ops);
int xen_be_set_state(struct XenDevice *xendev, enum xenbus_state state);
int xen_be_bind_evtchn(struct XenDevice *xendev);