From: Costin Lupu <costin.lupu@cs.pub.ro>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <iwj@xenproject.org>, Wei Liu <wl@xen.org>,
Juergen Gross <jgross@suse.com>, Julien Grall <julien@xen.org>
Subject: [PATCH v3 2/4] libs/ctrl: Use Xen values for XC_PAGE_* definitions
Date: Mon, 23 Aug 2021 20:02:54 +0300 [thread overview]
Message-ID: <d5f02f07e9d8847a00cfe78a0e45703fdac7cd1f.1629737453.git.costin.lupu@cs.pub.ro> (raw)
In-Reply-To: <cover.1629737453.git.costin.lupu@cs.pub.ro>
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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/include/xenctrl.h b/tools/include/xenctrl.h
index b77726eab7..52a1768ee7 100644
--- a/tools/include/xenctrl.h
+++ b/tools/include/xenctrl.h
@@ -55,9 +55,9 @@
#include <xen/arch-x86/xen-mca.h>
#endif
-#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
next prev parent reply other threads:[~2021-08-23 17:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-23 17:02 [PATCH v3 0/4] Introduce XEN_PAGE_* definitions for mapping guests memory Costin Lupu
2021-08-23 17:02 ` [PATCH v3 1/4] public: Add page related definitions for accessing " Costin Lupu
2021-08-24 6:11 ` Jan Beulich
2021-09-06 10:43 ` Julien Grall
2021-08-23 17:02 ` Costin Lupu [this message]
2021-08-23 17:02 ` [PATCH v3 3/4] libs/foreignmemory: Use XEN_PAGE_* definitions Costin Lupu
2021-08-23 17:02 ` [PATCH v3 4/4] libs/gnttab: " Costin Lupu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d5f02f07e9d8847a00cfe78a0e45703fdac7cd1f.1629737453.git.costin.lupu@cs.pub.ro \
--to=costin.lupu@cs.pub.ro \
--cc=iwj@xenproject.org \
--cc=jgross@suse.com \
--cc=julien@xen.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.