We use the values provided by the Xen public interface for defining the
XC_PAGE_* macros.
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
---
tools/include/xenctrl.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/include/xenctrl.h b/tools/include/xenctrl.h
index b77726eab7..2031308458 100644
--- a/tools/include/xenctrl.h
+++ b/tools/include/xenctrl.h
@@ -54,10 +54,11 @@
#include <xen/foreign/x86_64.h>
#include <xen/arch-x86/xen-mca.h>
#endif
+#include <xen/page.h>
-#define XC_PAGE_SHIFT 12
-#define XC_PAGE_SIZE (1UL << XC_PAGE_SHIFT)
-#define XC_PAGE_MASK (~(XC_PAGE_SIZE-1))
+#define XC_PAGE_SHIFT XEN_PAGE_SHIFT
+#define XC_PAGE_SIZE XEN_PAGE_SIZE
+#define XC_PAGE_MASK XEN_PAGE_MASK
#define INVALID_MFN (~0UL)
--
2.20.1