On Fri, Sep 17, 2021 at 05:46:23PM +0200, Roger Pau Monne wrote:
> Exploiting the talloc clean up routines to close the Xen interfaces
> is cumbersome, specially when atexit can be used to the same effect.
>
> Convert xc and gnttab to use atexit which allows to drop one
> indirection from the storing variables.
>
> No functional change intended.
>
> Signed-off-by: Roger Pau Monné <[email protected]>
This patch is missing the following chunk:
diff --git a/tools/xenstore/xenstored_minios.c
b/tools/xenstore/xenstored_minios.c
index c94493e52a..9b050c7e02 100644
--- a/tools/xenstore/xenstored_minios.c
+++ b/tools/xenstore/xenstored_minios.c
@@ -49,12 +49,12 @@ evtchn_port_t xenbus_evtchn(void)
void *xenbus_map(void)
{
- return xengnttab_map_grant_ref(*xgt_handle, xenbus_master_domid(),
+ return xengnttab_map_grant_ref(xgt_handle, xenbus_master_domid(),
GNTTAB_RESERVED_XENSTORE, PROT_READ|PROT_WRITE);
}
void unmap_xenbus(void *interface)
{
- xengnttab_unmap(*xgt_handle, interface, 1);
+ xengnttab_unmap(xgt_handle, interface, 1);
}