MFC r348785:Replace uses of vm_page_unwire(m, PQ_NONE) with vm_page_unwire_noq(m).
MFC r341398:Change the vm_ooffset_t type to unsigned.MFC note: For KPI stability, UOFF_TO_IDX() macro is still provided,redefined to OFF_TO_IDX().
xen: fix gntdevCurrent interface to the gntdev in FreeBSD is wrong, and mostly workedout of luck before the PTI FreeBSD fixes, when kernel and user-spacewhere sharing the same page tables.On Fr
xen: fix gntdevCurrent interface to the gntdev in FreeBSD is wrong, and mostly workedout of luck before the PTI FreeBSD fixes, when kernel and user-spacewhere sharing the same page tables.On FreeBSD ioctls have the size of the passed struct encoded in theioctl number, because the generic ioctl handler in the OS takes careof copying the data from user-space to kernel space, and then callsthe device specific ioctl handler. Thus using ioctl structs withvariable sizes is not possible.The fix is to turn the array of structs at the end ofioctl_gntdev_alloc_gref and ioctl_gntdev_map_grant_ref into pointers,that can be properly accessed from the kernel gntdev driver using thecopyin/copyout functions. Note that this is exactly how it's done forthe privcmd driver.Sponsored by: Citrix Systems R&D
show more ...
Remove unneeded include of vm_phys.h.
xen/gntdev: prevent unsynchronized accesses to the map entryvm_map_lookup_done should only be called when the gntdev has finished poking atthe entry.Reported by: alcReviewed by: alcMFC after:
xen/gntdev: prevent unsynchronized accesses to the map entryvm_map_lookup_done should only be called when the gntdev has finished poking atthe entry.Reported by: alcReviewed by: alcMFC after: 1 weekSponsored by: Citrix Systems R&D
xen/gndev: use UOFF_TO_IDX instead of OFF_TO_IDXThe Xen grant table device treats the mmap offset parameter as an unsignedtype, and as so it must use the newly introduced UOFF_TO_IDX.Sponsored b
xen/gndev: use UOFF_TO_IDX instead of OFF_TO_IDXThe Xen grant table device treats the mmap offset parameter as an unsignedtype, and as so it must use the newly introduced UOFF_TO_IDX.Sponsored by: Citrix Systems R&DMFC after: 2 weeksX-MFC-with: r313690
xen: add a grant-table user-space deviceA grant-table user-space device will allow user-space applications to mapand share grants (Xen way to share memory) among Xen domains. This granttable user
xen: add a grant-table user-space deviceA grant-table user-space device will allow user-space applications to mapand share grants (Xen way to share memory) among Xen domains. This granttable user-space device has been tested with the QEMU Qdisk Xen backed.Submitted by: jaggiReviewed by: roygerDifferential review: https://reviews.freebsd.org/D7293