From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v10 07/12] xen/common: move the memory_mapping DOMCTL hypercall to common code Date: Wed, 30 Jul 2014 16:59:18 +0100 Message-ID: <53D91656.5070703@linaro.org> References: <1406585529-32193-1-git-send-email-avanzini.arianna@gmail.com> <1406585529-32193-8-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-8-git-send-email-avanzini.arianna@gmail.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: Arianna Avanzini , xen-devel@lists.xen.org Cc: julien.grall@citrix.com, paolo.valente@unimore.it, keir@xen.org, stefano.stabellini@eu.citrix.com, tim@xen.org, dario.faggioli@citrix.com, Ian.Jackson@eu.citrix.com, Ian.Campbell@eu.citrix.com, etrudeau@broadcom.com, JBeulich@suse.com, andrew.cooper3@citrix.com, viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org Hi Arianna, On 07/28/2014 11:12 PM, Arianna Avanzini wrote: > This commit moves to common code the implementation of the memory_mapping > DOMCTL, currently available only for the x86 architecture. It also adds > a definition for the PADDR_BITS constant for ARM, that is to be used in > common code and currently not available for the ARM architecture. > > Signed-off-by: Arianna Avanzini > Acked-by: Jan Beulich > Acked-by: Julien Grall > Tested-by: Julien Grall > Cc: Dario Faggioli > Cc: Paolo Valente > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Keir Fraser > Cc: Tim Deegan > Cc: Ian Jackson > Cc: Andrew Cooper > Cc: Eric Trudeau > Cc: Viktor Kleinik I've just noticed that this patch won't work correctly on ARM with XSM enabled. When flask is used, the error message will be printed no matters how XSM has been configured. This is because flask_domctl (xen/xsm/flask/hooks.c) only handle XEN_DOMCTL_memory_mapping for x86 (see #ifdef CONFIG_X86 within the function). Can you handle this case? Many thanks, -- Julien Grall