From: Tamas K Lengyel Date: Wed, 2 Jul 2014 12:04:04 +0000 (+0200) Subject: libxc: Relocate internal-only mem_event functions to xc_private.h X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4715 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5c8140954cba10e988f1386a1808465747b1856b;p=xen.git libxc: Relocate internal-only mem_event functions to xc_private.h The public xenctrl.h header exposes several internal-only functions of the mem_event system. As one of these functions (xc_mem_event_enable) had been previously used for a different purpose, relocating the entire set of xc_mem_event_* functions makes it easier for an external user of the library to determine which version of the mem_access system libxc exposes. Signed-off-by: Tamas K Lengyel Acked-by: Ian Campbell --- diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h index c7730f25b7..6cc0f2b57c 100644 --- a/tools/libxc/xc_private.h +++ b/tools/libxc/xc_private.h @@ -352,4 +352,19 @@ int xc_ffs64(uint64_t x); #define DOMPRINTF(fmt, args...) xc_dom_printf(dom->xch, fmt, ## args) #define DOMPRINTF_CALLED(xch) xc_dom_printf((xch), "%s: called", __FUNCTION__) +/** + * mem_event operations. Internal use only. + */ +int xc_mem_event_control(xc_interface *xch, domid_t domain_id, unsigned int op, + unsigned int mode, uint32_t *port); +int xc_mem_event_memop(xc_interface *xch, domid_t domain_id, + unsigned int op, unsigned int mode, + uint64_t gfn, void *buffer); +/* + * Enables mem_event and returns the mapped ring page indicated by param. + * param can be HVM_PARAM_PAGING/ACCESS/SHARING_RING_PFN + */ +void *xc_mem_event_enable(xc_interface *xch, domid_t domain_id, int param, + uint32_t *port); + #endif /* __XC_PRIVATE_H__ */ diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index 3fe737f401..3578b09460 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -2236,21 +2236,6 @@ void xc_tmem_save_done(xc_interface *xch, int dom); int xc_tmem_restore(xc_interface *xch, int dom, int fd); int xc_tmem_restore_extra(xc_interface *xch, int dom, int fd); -/** - * mem_event operations. Internal use only. - */ -int xc_mem_event_control(xc_interface *xch, domid_t domain_id, unsigned int op, - unsigned int mode, uint32_t *port); -int xc_mem_event_memop(xc_interface *xch, domid_t domain_id, - unsigned int op, unsigned int mode, - uint64_t gfn, void *buffer); -/* - * Enables mem_event and returns the mapped ring page indicated by param. - * param can be HVM_PARAM_PAGING/ACCESS/SHARING_RING_PFN - */ -void *xc_mem_event_enable(xc_interface *xch, domid_t domain_id, int param, - uint32_t *port); - /** * Mem paging operations. * Paging is supported only on the x86 architecture in 64 bit mode, with