All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v12 00/14] Implement the XEN_DOMCTL_memory_mapping hypercall for ARM
@ 2014-08-30 16:29 Arianna Avanzini
  2014-08-30 16:29 ` [PATCH v12 01/14] arch/arm: add consistency check to REMOVE p2m changes Arianna Avanzini
                   ` (14 more replies)
  0 siblings, 15 replies; 41+ messages in thread
From: Arianna Avanzini @ 2014-08-30 16:29 UTC (permalink / raw)
  To: xen-devel
  Cc: Ian.Campbell, paolo.valente, keir, stefano.stabellini,
	Ian.Jackson, dario.faggioli, tim, julien.grall, etrudeau,
	andrew.cooper3, JBeulich, avanzini.arianna, viktor.kleinik,
	andrii.tseglytskyi

Hello,

here's a twelfth version of my implementation proposal for the memory_mapping
DOMCTL for the ARM architecture. The changes implemented for this version
with respect to the previous one are small. A detailed changelog can be found
in the description of each of the commits, while an extensive summary of the
patch series' genesis can be found in the last full cover letter ([1]).
Please note that this patchset includes a contribution from Andrii Tseglytskyi,
as you may also see from the shortlog below.

The main change introduced with this patchset is in patch 0002. The code that
unmaps partially-mapped memory regions now, as Julien Grall suggested, handles
also the case where the unmapping, if performed on the whole range passed to
the apply_p2m_changes() function, would destroy also existing mappings. Now the
recursive invocation of apply_p2m_changes() now affects only the area actually
affected by the insertion attempt.
Patch 0002 has also been fixed according to directives by Julien Grall.

As usual, the code has been tested on a cubieboard2, with Linux v3.15 as a dom0
dom0 and both ERIKA Enterprise ([2]) and Linux v3.15 as a domU. The x86 bits
have been tested on an x86_64 machine with Linux v3.15 as both dom0 and domU.
The v11 of this patchset has been also tested by Andrii Tseglytskyi ([3]).

Any feedback about this new version of the patchset is more than welcome,
Arianna

[1] http://lists.xen.org/archives/html/xen-devel/2014-03/msg01724.html
[2] http://erika.tuxfamily.org/drupal/
[3] http://markmail.org/message/yyr6lalwifudtfad

Andrii Tseglytskyi (1):
  flask/policy: allow domU to use previously-mapped I/O-memory

Arianna Avanzini (13):
  arch/arm: add consistency check to REMOVE p2m changes
  arch/arm: unmap partially-mapped memory regions
  arch/x86: warn if to-be-removed mapping does not exist
  arch/x86: cleanup memory_mapping DOMCTL
  xen/common: add ARM stub for the function memory_type_changed()
  xen/x86: factor out map and unmap from the memory_mapping DOMCTL
  xen/common: move the memory_mapping DOMCTL hypercall to common code
  tools/libxl: parse optional start gfn from the iomem config option
  tools/libxl: handle the iomem parameter with the memory_mapping hcall
  xsm/flask: avoid spurious error messages when mapping I/O-memory
  tools/libxl: explicitly grant access to needed I/O-memory ranges
  tools/libxl: cleanup the do_pci_add() function
  xen/common: do not implicitly permit access to mapped I/O memory

 docs/man/xl.cfg.pod.5                        |  18 ++-
 tools/flask/policy/policy/modules/xen/xen.te |   1 +
 tools/libxc/xc_domain.c                      |  10 ++
 tools/libxl/libxl.h                          |  10 ++
 tools/libxl/libxl_create.c                   |  28 +++-
 tools/libxl/libxl_internal.h                 |   3 +
 tools/libxl/libxl_pci.c                      | 213 +++++++++++++++++----------
 tools/libxl/libxl_types.idl                  |   4 +
 tools/libxl/xl_cmdimpl.c                     |  17 ++-
 xen/arch/arm/p2m.c                           |  79 ++++++++--
 xen/arch/x86/domctl.c                        |  76 ----------
 xen/arch/x86/mm/p2m.c                        |  57 ++++++-
 xen/common/domctl.c                          |  54 ++++++-
 xen/common/memory.c                          |   2 +-
 xen/include/asm-arm/p2m.h                    |  13 +-
 xen/include/asm-x86/p2m.h                    |   3 +-
 xen/include/xen/p2m-common.h                 |  16 ++
 xen/xsm/flask/hooks.c                        |   2 +-
 18 files changed, 410 insertions(+), 196 deletions(-)
 create mode 100644 xen/include/xen/p2m-common.h

-- 
2.1.0

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

end of thread, other threads:[~2014-09-10 20:07 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-30 16:29 [PATCH v12 00/14] Implement the XEN_DOMCTL_memory_mapping hypercall for ARM Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 01/14] arch/arm: add consistency check to REMOVE p2m changes Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 02/14] arch/arm: unmap partially-mapped memory regions Arianna Avanzini
2014-09-01 17:53   ` Julien Grall
2014-09-01 20:13     ` Arianna Avanzini
2014-09-01 23:47     ` [PATCH] " Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 03/14] arch/x86: warn if to-be-removed mapping does not exist Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 04/14] arch/x86: cleanup memory_mapping DOMCTL Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 05/14] xen/common: add ARM stub for the function memory_type_changed() Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 06/14] xen/x86: factor out map and unmap from the memory_mapping DOMCTL Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 07/14] xen/common: move the memory_mapping DOMCTL hypercall to common code Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 08/14] tools/libxl: parse optional start gfn from the iomem config option Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 09/14] tools/libxl: handle the iomem parameter with the memory_mapping hcall Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 10/14] xsm/flask: avoid spurious error messages when mapping I/O-memory Arianna Avanzini
2014-09-03 11:22   ` Ian Campbell
2014-09-03 11:30     ` Ian Campbell
2014-09-03 14:41   ` Daniel De Graaf
2014-09-04 11:49     ` [PATCH] xsm/flask: handle XEN_DOMCTL_memory_mapping for all architectures Arianna Avanzini
2014-09-08 10:11       ` Ian Campbell
2014-09-08 12:24         ` Arianna Avanzini
2014-09-08 12:38           ` Ian Campbell
2014-09-08 12:50             ` Arianna Avanzini
2014-09-09 12:35               ` Ian Campbell
2014-09-09 13:13                 ` Arianna Avanzini
2014-09-09 14:45                   ` Ian Campbell
2014-09-10 20:07                     ` Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 11/14] flask/policy: allow domU to use previously-mapped I/O-memory Arianna Avanzini
2014-09-03 11:21   ` Ian Campbell
2014-09-03 14:45     ` Daniel De Graaf
2014-09-05 23:25       ` Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 12/14] tools/libxl: explicitly grant access to needed I/O-memory ranges Arianna Avanzini
2014-09-03 11:26   ` Ian Campbell
2014-09-08 15:05     ` [PATCH 0/3] Separate the functions of the memory_mapping and iomem_permission DOMCTLs Arianna Avanzini
2014-09-08 15:05       ` [PATCH 1/3] tools/libxl: explicitly grant access to needed I/O-memory ranges Arianna Avanzini
2014-09-08 15:05       ` [PATCH 2/3] tools/libxl: cleanup the do_pci_add() function Arianna Avanzini
2014-09-08 15:05       ` [PATCH 3/3] xen/common: do not implicitly permit access to mapped I/O memory Arianna Avanzini
2014-08-30 16:29 ` [PATCH v12 13/14] tools/libxl: cleanup the do_pci_add() function Arianna Avanzini
2014-09-03 11:27   ` Ian Campbell
2014-08-30 16:29 ` [PATCH v12 14/14] xen/common: do not implicitly permit access to mapped I/O memory Arianna Avanzini
2014-09-03 12:15 ` [PATCH v12 00/14] Implement the XEN_DOMCTL_memory_mapping hypercall for ARM Ian Campbell
2014-09-03 13:55   ` Arianna Avanzini

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.