[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 7/7] libvchan: do not use xc_gntshr_share_page_notify in Mini-OS



It isn't implemented there yet.

Signed-off-by: Marek Marczykowski <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
---
 tools/libvchan/init.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/libvchan/init.c b/tools/libvchan/init.c
index 8a66cef..54aa08e 100644
--- a/tools/libvchan/init.c
+++ b/tools/libvchan/init.c
@@ -78,9 +78,14 @@ static int init_gnt_srv(struct libxenvchan *ctrl, int domain)
        uint32_t ring_ref = -1;
        void *ring;
 
+#ifdef __MINIOS__
+       /* _notify part not implemented in Mini-OS */
+       ring = xc_gntshr_share_page(ctrl->gntshr, domain, &ring_ref, 1);
+#else
        ring = xc_gntshr_share_page_notify(ctrl->gntshr, domain,
                        &ring_ref, 1, offsetof(struct vchan_interface, 
srv_live),
                        ctrl->event_port);
+#endif
 
        if (!ring)
                goto out;
-- 
1.8.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.