From: "Jan Beulich" Subject: Re: [PATCH v10 12/12] xen/common: do not implicitly permit access to mapped I/O memory Date: Tue, 29 Jul 2014 08:29:51 +0100 Message-ID: <53D7698F02000078000271FC@mail.emea.novell.com> References: <1406585529-32193-1-git-send-email-avanzini.arianna@gmail.com> <1406585529-32193-13-git-send-email-avanzini.arianna@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406585529-32193-13-git-send-email-avanzini.arianna@gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Arianna Avanzini Cc: Ian.Campbell@eu.citrix.com, paolo.valente@unimore.it, keir@xen.org, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, dario.faggioli@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, julien.grall@citrix.com, etrudeau@broadcom.com, tim@xen.org, viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org >>> On 29.07.14 at 00:12, wrote: > Currently, the XEN_DOMCTL_memory_mapping hypercall implicitly grants > to a domain access permission to the I/O memory areas mapped in its > guest address space. This conflicts with the presence of a specific > hypercall (XEN_DOMCTL_iomem_permission) used to grant such a permission > to a domain. > This commit separates the functions of the two hypercalls by having only > the latter be able to permit I/O memory access to a domain, and the > former just performing the mapping after a permissions check on both the > granting and the grantee domains. > > Signed-off-by: Arianna Avanzini Acked-by: Jan Beulich