All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.19 v3 0/3] xen/x86: support foreign mappings for HVM/PVH
@ 2024-05-17 13:33 Roger Pau Monne
  2024-05-17 13:33 ` [PATCH for-4.19 v3 1/3] xen/x86: account number of foreign mappings in the p2m Roger Pau Monne
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Roger Pau Monne @ 2024-05-17 13:33 UTC (permalink / raw)
  To: xen-devel
  Cc: Roger Pau Monne, Jan Beulich, Andrew Cooper, Anthony PERARD,
	Juergen Gross, George Dunlap, Julien Grall, Stefano Stabellini,
	Christian Lindig, David Scott, Bertrand Marquis, Michal Orzel,
	Volodymyr Babchuk, Daniel P. Smith, Oleksii Kurochko,
	Community Manager

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(-)

-- 
2.44.0



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-05-29 12:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-17 13:33 [PATCH for-4.19 v3 0/3] xen/x86: support foreign mappings for HVM/PVH Roger Pau Monne
2024-05-17 13:33 ` [PATCH for-4.19 v3 1/3] xen/x86: account number of foreign mappings in the p2m Roger Pau Monne
2024-05-17 13:33 ` [PATCH for-4.19 v3 2/3] xen: enable altp2m at create domain domctl Roger Pau Monne
2024-05-17 13:54   ` Christian Lindig
2024-05-21 10:30   ` Jan Beulich
2024-05-22 13:16     ` Roger Pau Monné
2024-05-22 13:34       ` Jan Beulich
2024-05-22 16:21         ` Roger Pau Monné
2024-05-23  6:54           ` Jan Beulich
2024-05-23 11:36   ` Roger Pau Monné
2024-05-23 18:28     ` Stefano Stabellini
2024-05-24 13:28   ` Jürgen Groß
2024-05-17 13:33 ` [PATCH for-4.19 v3 3/3] xen/x86: remove foreign mappings from the p2m on teardown Roger Pau Monne
2024-05-29  7:24 ` [PATCH for-4.19 v3 0/3] xen/x86: support foreign mappings for HVM/PVH Jan Beulich
2024-05-29  7:41   ` Oleksii K.
2024-05-29 12:21   ` Julien Grall

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.