Skip to content

Introduce XEN_PAGE_* definitions for mapping guests memory

Costin Lupu xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 2 repliesIn review
  2. v24 patches 9 repliesSuperseded
  3. v14 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Get rid of new page.h header and use instead arch-x86/xen.h, arch-arm.h and xen.h headers

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4public: Add page related definitions for accessing guests memoryxen/include/public/arch-arm.h xen/include/public/arch-x86/xen.h xen/include/public/xen.h+25 -02 replies
2/4libs/ctrl: Use Xen values for XC_PAGE_* definitionstools/include/xenctrl.h+3 -30 replies
3/4libs/foreignmemory: Use XEN_PAGE_* definitionstools/libs/foreignmemory/Makefile tools/libs/foreignmemory/core.c tools/libs/foreignmemory/freebsd.c +5 more+26 -330 replies
4/4libs/gnttab: Use XEN_PAGE_* definitionstools/libs/gnttab/Makefile tools/libs/gnttab/freebsd.c tools/libs/gnttab/linux.c +1 more+29 -300 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchJan BeulichJulien Grall
1/4A-b A-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] Introduce XEN_PAGE_* definitions for mapping guests memory

This series tries to fix a side-effect introduced by commits 0dbb4be7 and d1b32abd which added a dependency to xenctrl for foreignmemory and gnntab libraries library only because they needed to use the XC_PAGE_* values.

These changes introduce the XEN_PAGE_* definitions that will be used by any toolstack component that doesn't need a dependency to xenctrl library.

Changes since v1:
- Use same page definitions for both x86_64 and ARM (i.e. a single page.h file)
- Introduce xen_mk_long()

Changes since v2:
- Get rid of new page.h header and use instead arch-x86/xen.h, arch-arm.h and xen.h headers

Costin Lupu (4):
public: Add page related definitions for accessing guests memory libs/ctrl: Use Xen values for XC_PAGE_* definitions libs/foreignmemory: Use XEN_PAGE_* definitions libs/gnttab: Use XEN_PAGE_* definitions

 tools/include/xenctrl.h            |  6 +++---
 tools/libs/foreignmemory/Makefile  |  2 ++
 tools/libs/foreignmemory/core.c    |  2 +-
 tools/libs/foreignmemory/freebsd.c | 10 +++++-----
 tools/libs/foreignmemory/linux.c   | 18 +++++++++---------
 tools/libs/foreignmemory/minios.c  | 10 +---------
 tools/libs/foreignmemory/netbsd.c  | 10 +++++-----
 tools/libs/foreignmemory/private.h |  1 -
 tools/libs/foreignmemory/solaris.c |  6 +++---
 tools/libs/gnttab/Makefile         |  2 ++
 tools/libs/gnttab/freebsd.c        | 19 +++++++++----------
 tools/libs/gnttab/linux.c          | 19 +++++++++----------
 tools/libs/gnttab/netbsd.c         | 19 +++++++++----------
 xen/include/public/arch-arm.h      |  8 ++++++++
 xen/include/public/arch-x86/xen.h  |  8 ++++++++
 xen/include/public/xen.h           |  9 +++++++++
 16 files changed, 83 insertions(+), 66 deletions(-)
Signature · 1 line
2.20.1