xen/pvshim: fix GNTTABOP_query_size hypercall forwarding with SMAP
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 26 Jan 2018 15:29:10 +0000 (15:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 26 Jan 2018 18:28:47 +0000 (18:28 +0000)
commit1124a9a26f05439a3aa31eaea227285e50dc94c0
tree56ea951812a25456feb5fd5e85db138255816eba
parent4c7e478d597b0346eef3a256cfd6794ac778b608
xen/pvshim: fix GNTTABOP_query_size hypercall forwarding with SMAP

Disable SMAP in the shim before bouncing the hypercall, or else L0
will fail to get the hypercall buffer.

Reported-by: Fatih Acar <fatih.acar@gandi.net>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/pv/shim.c