summaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorEmil Condrea <emilcondrea@gmail.com>2016-10-25 08:50:12 +0300
committerStefano Stabellini <sstabellini@kernel.org>2016-10-28 17:53:25 -0700
commit148512e062ec99acb06bfb1d559d7254d84403f9 (patch)
tree3656f069e76db5eadbb1c8ca645913fbeeb5e6df /include/hw
parent31c17aa5c38d8aa177730b0c4429f8023f8ad79b (diff)
downloadqemu-148512e062ec99acb06bfb1d559d7254d84403f9.tar.gz
qemu-148512e062ec99acb06bfb1d559d7254d84403f9.tar.bz2
qemu-148512e062ec99acb06bfb1d559d7254d84403f9.zip
xen: Prepare xendev qtail to be shared with frontends
* move xendevs qtail to xen_pvdev.c * change xen_be_get_xendev to use a new function: xen_pv_insert_xendev Signed-off-by: Emil Condrea <emilcondrea@gmail.com> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Quan Xu <xuquan8@huawei.com> Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/xen/xen_backend.h1
-rw-r--r--include/hw/xen/xen_pvdev.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/include/hw/xen/xen_backend.h b/include/hw/xen/xen_backend.h
index 6c617d98ce..cbda40ee53 100644
--- a/include/hw/xen/xen_backend.h
+++ b/include/hw/xen/xen_backend.h
@@ -27,7 +27,6 @@ int xenstore_read_fe_int(struct XenDevice *xendev, const char *node, int *ival);
int xenstore_read_fe_uint64(struct XenDevice *xendev, const char *node,
uint64_t *uval);
-struct XenDevice *xen_be_find_xendev(const char *type, int dom, int dev);
void xen_be_check_state(struct XenDevice *xendev);
/* xen backend driver bits */
diff --git a/include/hw/xen/xen_pvdev.h b/include/hw/xen/xen_pvdev.h
index a8da3da0b0..517537ae8a 100644
--- a/include/hw/xen/xen_pvdev.h
+++ b/include/hw/xen/xen_pvdev.h
@@ -65,6 +65,10 @@ void xenstore_update(void *unused);
const char *xenbus_strstate(enum xenbus_state state);
void xen_be_evtchn_event(void *opaque);
+void xen_pv_insert_xendev(struct XenDevice *xendev);
+void xen_be_del_xendev(struct XenDevice *xendev);
+struct XenDevice *xen_be_find_xendev(const char *type, int dom, int dev);
+
void xen_be_unbind_evtchn(struct XenDevice *xendev);
int xen_be_send_notify(struct XenDevice *xendev);