[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH for-4.5 v11 9/9] tools/tests: Enable xen-access on ARM



Hello Tamas,

On 09/29/2014 12:36 PM, Tamas K Lengyel wrote:
> Define the ARM specific test_and_set_bit functions and switch
> to use maximum gpfn as the limit to setting permissions. Also,
> move HAS_MEM_ACCESS definition into config.
> 
> Signed-off-by: Tamas K Lengyel <tklengyel@xxxxxxxxxxxxx>
> ---
> v6: - Just use xc_domain_maximum_gpfn to get max_gpfn.
> v5: - Use the new information returned by getdomaininfo, max_gpfn, to
>       set access permissions. On ARM this will include the potential
>       memory hole as well which the hypervisor just loops over.
> v4: - Take into account multiple guest ram banks on ARM.
>     - Move HAS_MEM_ACCESS definition into config/*.mk and only compile
>       xen-access when it is defined.
>     - Pass CONFIG_X86/CONFIG_ARM flags during compilation in xen-access
>       Makefile.
> ---
>  tools/tests/xen-access/Makefile     |  9 ++++-
>  tools/tests/xen-access/xen-access.c | 79 
> ++++++++++++++++++++++++-------------
>  2 files changed, 59 insertions(+), 29 deletions(-)
> 
> diff --git a/tools/tests/xen-access/Makefile b/tools/tests/xen-access/Makefile
> index 65eef99..5056972 100644
> --- a/tools/tests/xen-access/Makefile
> +++ b/tools/tests/xen-access/Makefile
> @@ -7,8 +7,13 @@ CFLAGS += $(CFLAGS_libxenctrl)
>  CFLAGS += $(CFLAGS_libxenguest)
>  CFLAGS += $(CFLAGS_xeninclude)
>  
> -TARGETS-y := 
> -TARGETS-$(CONFIG_X86) += xen-access
> +CFLAGS-y :=
> +CFLAGS-$(CONFIG_X86) := -DCONFIG_X86
> +CFLAGS-$(CONFIG_ARM) := -DCONFIG_ARM

Hmmm ... why do you need those flags?

Can't you directly use __aarch64__, __arm__, __i386__ and __x86_64__?

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.