diff options
author | Julien Grall <julien.grall@citrix.com> | 2015-09-11 18:25:59 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-09-11 19:50:03 +0200 |
commit | 0b61f2c0f37983c98ed4207f3f5e265938371b68 (patch) | |
tree | 3dd23439d981eb8e93da117a6a563c797d4fe08c /arch/arm/mach-at91/generic.h | |
parent | ARM: domains: add memory dependencies to get_domain/set_domain (diff) | |
download | linux-0b61f2c0f37983c98ed4207f3f5e265938371b68.tar.xz linux-0b61f2c0f37983c98ed4207f3f5e265938371b68.zip |
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 a5e090acbf545c0a3b04080f8a488b17ec41fe02 "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>
Diffstat (limited to 'arch/arm/mach-at91/generic.h')
0 files changed, 0 insertions, 0 deletions