Skip to content

Separate the functions of the memory_mapping and iomem_permission DOMCTLs

Arianna Avanzini xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tools/libxl: explicitly grant access to needed I/O-memory rangestools/libxl/libxl_create.c tools/libxl/libxl_internal.h tools/libxl/libxl_pci.c+86 -160 replies
2/3tools/libxl: cleanup the do_pci_add() functiontools/libxl/libxl_pci.c+61 -610 replies
3/3xen/common: do not implicitly permit access to mapped I/O memoryxen/common/domctl.c+10 -260 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchIan CampbellJan Beulich
1/3
2/3A-b
3/3A-b

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

Read the v1 thread

Cover letter [PATCH 0/3] Separate the functions of the memory_mapping and iomem_permission DOMCTLs

Hello,

this patchset originates from the twelfth version of the series "Implement the XEN_DOMCTL_memory_mapping hypercall for ARM" ([1]). It includes only the last three patches, whose aim was to separate the functions of the memory_mapping and iomem_permission DOMCTLs. The memory_mapping DOMCTL's behavior, in fact, currently defaults to implicitly granting to a domain access permission to an I/O-memory range that was to be mapped in its guest address space, while a specific hypercall for granting access permissions to I/O-memory ranges exists.

With respect to v12 of the original patchset, the main change concerns the use of libxl_defbool_val() to access the value of the gfx_passthru configuration option, as indicated by Ian Campbell. Also, the description of commit 0002 has been fixed in its lack of clarity pointed out by Ian Campbell.

The patches have been tested on a cubieboard2, with Linux v3.15 as a dom0 and both ERIKA Enterprise ([2]) and Linux v3.15 as a domU. It has also been tested on an x86_64 machine with Linux v3.15 as both dom0 and domU.

Any feedback is, as usual, welcome.
Thank you,
Arianna

[1] http://markmail.org/thread/cx2q7vhlwuzssmzp
[2] http://erika.tuxfamily.org/drupal/

Arianna Avanzini (3):
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

 tools/libxl/libxl_create.c   |   9 ++
 tools/libxl/libxl_internal.h |   2 +
 tools/libxl/libxl_pci.c      | 213 +++++++++++++++++++++++++++----------------
 xen/common/domctl.c          |  36 ++------
 4 files changed, 157 insertions(+), 103 deletions(-)
Signature · 1 line
2.1.0