freebsd-skq/sys/dev/xen
royger 2a27cb2b69 xen: temporary disable SMAP when forwarding hypercalls from user-space
The Xen page-table walker used to resolve the virtual addresses in the
hypercalls will refuse to access user-space pages when SMAP is enabled
unless the AC flag in EFLAGS is set (just like normal hardware with
SMAP support would do).

Since privcmd allows forwarding hypercalls (and buffers) from
user-space into Xen make sure SMAP is temporary disabled for the
duration of the hypercall from user-space.

Approved by:		re (gjb)
Sponsored by:		Citrix Systems R&D
2018-09-13 07:15:02 +00:00
..
balloon xen: remove direct usage of HYPERVISOR_start_info 2018-07-19 07:54:45 +00:00
blkback
blkfront xen-blkfront: fix memory leak in xbd_connect error path 2018-07-30 11:27:51 +00:00
console xen: do not limit PV console usage to PV guests 2018-07-19 07:58:24 +00:00
control
debug
evtchn
gntdev
grant_table xen/grants: fix deadlocks in the free callbacks 2018-07-30 11:41:51 +00:00
netback
netfront xen/netfront: Ensure curvnet is set 2018-08-23 16:52:52 +00:00
pci
pcifront
privcmd xen: temporary disable SMAP when forwarding hypercalls from user-space 2018-09-13 07:15:02 +00:00
pvcpu xen: attach the PV CPU if no CPU device is present 2018-07-19 08:00:52 +00:00
timer Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
xenpci
xenstore xen: remove direct usage of HYPERVISOR_start_info 2018-07-19 07:54:45 +00:00