linux/arch/arm/xen
Julien Grall 0b61f2c0f3 arm/xen: Enable user access to the kernel before issuing a privcmd call
When Xen is copying data to/from the guest it will check if the kernel
has the right to do the access. If not, the hypercall will return an
error.

After the commit a5e090acbf "ARM:
software-based privileged-no-access support", the kernel can't access
any longer the user space by default. This will result to fail on every
hypercall made by the userspace (i.e via privcmd).

We have to enable the userspace access and then restore the correct
permission every time the privcmd is used to made an hypercall.

I didn't find generic helpers to do a these operations, so the change
is only arm32 specific.

Reported-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Julien Grall <julien.grall@citrix.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-09-11 18:50:03 +01:00
..
enlighten.c xen/arm: allow console=hvc0 to be omitted for guests 2015-05-28 12:23:11 +01:00
grant-table.c arm/xen: remove duplicate arch_gnttab_init() function 2014-08-11 11:59:14 +01:00
hypercall.S arm/xen: Enable user access to the kernel before issuing a privcmd call 2015-09-11 18:50:03 +01:00
Makefile xen/arm/arm64: merge xen/mm32.c into xen/mm.c 2014-12-04 12:41:53 +00:00
mm.c xen: Include xen/page.h rather than asm/xen/page.h 2015-06-17 16:14:18 +01:00
p2m.c xen: Include xen/page.h rather than asm/xen/page.h 2015-06-17 16:14:18 +01:00