freebsd-dev/sys/xen
Roger Pau Monné 2602ef7cfa xen: fix gntdev
Current interface to the gntdev in FreeBSD is wrong, and mostly worked
out of luck before the PTI FreeBSD fixes, when kernel and user-space
where sharing the same page tables.

On FreeBSD ioctls have the size of the passed struct encoded in the
ioctl number, because the generic ioctl handler in the OS takes care
of copying the data from user-space to kernel space, and then calls
the device specific ioctl handler. Thus using ioctl structs with
variable sizes is not possible.

The fix is to turn the array of structs at the end of
ioctl_gntdev_alloc_gref and ioctl_gntdev_map_grant_ref into pointers,
that can be properly accessed from the kernel gntdev driver using the
copyin/copyout functions. Note that this is exactly how it's done for
the privcmd driver.

Sponsored by:   Citrix Systems R&D
2018-05-02 10:19:17 +00:00
..
evtchn
interface xen/vchan: change license of header from Lesser GPL v2.1 to BSD 2016-09-30 13:41:24 +00:00
xenbus sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
xenmem
xenstore sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
blkif.h xen: Code cleanup and small bug fixes 2015-10-21 10:44:07 +00:00
error.h xen: rewrite Xen error translation 2016-06-02 07:45:01 +00:00
evtchn.h
features.c
features.h
gntdev.h xen: fix gntdev 2018-05-02 10:19:17 +00:00
gnttab.h xen: add missing #define in include guard. 2016-06-02 07:43:02 +00:00
hvm.h
hypervisor.h xen: Code cleanup and small bug fixes 2015-10-21 10:44:07 +00:00
privcmd.h
xen_intr.h xen: fix IPI setup with EARLY_AP_STARTUP 2016-12-22 16:09:44 +00:00
xen_msi.h
xen_pci.h
xen_pv.h
xen-os.h xen: add support for canceled suspend 2017-03-07 09:16:51 +00:00