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

Re: [Xen-devel] [PATCH v3 15/15] tools/tests: Enable xen-access on ARM






On Mon, Sep 1, 2014 at 11:26 PM, Julien Grall <julien.grall@xxxxxxxxxx> wrote:
Hello Tamas,


On 01/09/14 10:22, Tamas K Lengyel wrote:
diff --git a/tools/tests/xen-access/Makefile b/tools/tests/xen-access/Makefile
index 65eef99..698355c 100644
--- a/tools/tests/xen-access/Makefile
+++ b/tools/tests/xen-access/Makefile
@@ -7,9 +7,7 @@ CFLAGS += $(CFLAGS_libxenctrl)
  CFLAGS += $(CFLAGS_libxenguest)
  CFLAGS += $(CFLAGS_xeninclude)

-TARGETS-y :=
-TARGETS-$(CONFIG_X86) += xen-access
-TARGETS := $(TARGETS-y)
+TARGETS := xen-access

I would move the definition of HAS_MEM_ACCESS from arch/*/Rules.mk to config/*.mk and use the defition here to build or not xen-access.


@@ -520,7 +551,7 @@ int main(int argc, char *argv[])

              /* Unregister for every event */
              rc = xc_set_mem_access(xch, domain_id, XENMEM_access_rwx, ~0ull, 0);
-            rc = xc_set_mem_access(xch, domain_id, XENMEM_access_rwx, 0,
+            rc = xc_set_mem_access(xch, domain_id, XENMEM_access_rwx, GUEST_RAM_BASE_PFN,
                                     xenaccess->domain_info->max_pages);

ARM may contains multiple banks non-contiguous banks. On Xen 4.5, there is 2 banks with a hole (see GUEST_RAM{0,1}_* in xen/include/public/arch-arm.h).

This change won't work with guest using more than 3G of RAM.

I guess it would only partially work. I'll add an #ifdef CONFIG_ARM here to set the second bank's permissions also.

Tamas
 

Regards,

--
Julien Grall


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

_______________________________________________
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®.