From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arianna Avanzini Subject: [PATCH 0/3] Separate the functions of the memory_mapping and iomem_permission DOMCTLs Date: Mon, 8 Sep 2014 17:05:31 +0200 Message-ID: <1410188734-1752-1-git-send-email-avanzini.arianna@gmail.com> References: <1409743582.22712.13.camel@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1409743582.22712.13.camel@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian.Campbell@eu.citrix.com, paolo.valente@unimore.it, stefano.stabellini@eu.citrix.com, dario.faggioli@citrix.com, ian.jackson@eu.citrix.com, julien.grall@citrix.com, etrudeau@broadcom.com, JBeulich@suse.com, avanzini.arianna@gmail.com, viktor.kleinik@globallogic.com, andrii.tseglytskyi@globallogic.com List-Id: xen-devel@lists.xenproject.org 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(-) -- 2.1.0