diff --git a/tools/xenstored/domain.c b/tools/xenstored/domain.c index e282b5c5ed..cf5a54965a 100644 --- a/tools/xenstored/domain.c +++ b/tools/xenstored/domain.c @@ -512,11 +512,6 @@ static void *map_interface(domid_t domid) if (domid == store_domid) return xenbus_map(); -#ifdef __MINIOS__ - if (domid == stub_domid) - return xenstore_buf; -#endif - return xengnttab_map_grant_ref(*xgt_handle, domid, GNTTAB_RESERVED_XENSTORE, PROT_READ|PROT_WRITE); diff --git a/tools/xenstored/minios.c b/tools/xenstored/minios.c index 60d921cf01..a214e23907 100644 --- a/tools/xenstored/minios.c +++ b/tools/xenstored/minios.c @@ -61,13 +61,11 @@ evtchn_port_t get_domain_evtchn(unsigned int domid) void *xenbus_map(void) { - return xengnttab_map_grant_ref(*xgt_handle, xenbus_master_domid(), - GNTTAB_RESERVED_XENSTORE, PROT_READ|PROT_WRITE); + return xenstore_buf; } void unmap_xenbus(void *interface) { - xengnttab_unmap(*xgt_handle, interface, 1); } void early_init(bool live_update, bool dofork, const char *pidfile)