Skip to content

xen/x86: support foreign mappings for HVM/PVH

Roger Pau Monne xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 12 repliesIn review
  2. v23 patches 7 repliesSuperseded
  3. v12 patches 10 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xen/x86: account number of foreign mappings in the p2mxen/arch/x86/include/asm/p2m.h+6 -00 replies
2/3xen: enable altp2m at create domain domctltools/libs/light/libxl_create.c tools/libs/light/libxl_x86.c tools/ocaml/libs/xc/xenctrl_stubs.c +5 more+106 -259 replies
3/3xen/x86: remove foreign mappings from the p2m on teardownCHANGELOG.md xen/arch/x86/domain.c xen/arch/x86/include/asm/p2m.h +2 more+103 -160 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJan BeulichChristian LindigStefano StabelliniJuergen GrossOleksii Kurochko
SeriesRelease-acked-by
1/3R-b
2/3R-b A-b A-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [PATCH for-4.19 v3 0/3] xen/x86: support foreign mappings for HVM/PVH

Hello,

The following series attempts to solve a shortcoming of HVM/PVH guests with the lack of support for foreign mappings. Such lack of support prevents using PVH based guests as stubdomains for example.

Add support in a way similar to how it's done on Arm, by iterating over the p2m based on the maximum gfn.

Patch 2 is not strictly needed. Moving the enablement of altp2m from an HVM param to a create domctl flag avoids any possible race with the HVM param changing after it's been evaluated. Note the param can only be set by the control domain, and libxl currently sets it at domain create. Also altp2m enablement is different from activation, as activation does happen during runtime of the domain.

Thanks, Roger.

Roger Pau Monne (3):
xen/x86: account number of foreign mappings in the p2m xen/x86: enable altp2m at create domain domctl xen/x86: remove foreign mappings from the p2m on teardown

 CHANGELOG.md                        |  1 +
 tools/libs/light/libxl_create.c     | 23 +++++++++-
 tools/libs/light/libxl_x86.c        | 26 +++++------
 tools/ocaml/libs/xc/xenctrl_stubs.c |  2 +-
 xen/arch/arm/domain.c               |  6 +++
 xen/arch/x86/domain.c               | 28 ++++++++++++
 xen/arch/x86/hvm/hvm.c              | 23 +++++++++-
 xen/arch/x86/include/asm/p2m.h      | 32 +++++++++-----
 xen/arch/x86/mm/p2m-basic.c         | 18 ++++++++
 xen/arch/x86/mm/p2m.c               | 68 +++++++++++++++++++++++++++--
 xen/include/public/domctl.h         | 20 ++++++++-
 xen/include/public/hvm/params.h     |  9 +---
 12 files changed, 215 insertions(+), 41 deletions(-)
Signature · 1 line
2.44.0