freebsd-skq/sys/dev/xen
Roger Pau Monné 68e58ea7ed xen/virtio: fix balloon drivers to not mark pages as WIRED
Prevent the Xen and VirtIO balloon drivers from marking pages as
wired. This prevents them from increasing the system wired page count,
which can lead to mlock failing because of hitting the limit in
vm.max_wired.

In the Xen case make sure pages are zeroed before giving them back to
the hypervisor, or else we might be leaking data. Also remove the
balloon_{append/retrieve} and link pages directly into the
ballooned_pages queue using the plinks.q field in the page struct.

Sponsored by: Citrix Systems R&D
Reviewed by: kib, bryanv
Approved by: gibbs

dev/virtio/balloon/virtio_balloon.c:
 - Don't allocate pages with VM_ALLOC_WIRED.

dev/xen/balloon/balloon.c:
 - Don't allocate pages with VM_ALLOC_WIRED.
 - Make sure pages are zeroed before giving them back to the
   hypervisor.
 - Remove the balloon_entry struct and the balloon_{append/retrieve}
   functions and use the page plinks.q entry to link the pages
   directly into the ballooned_pages queue.
2014-06-25 09:51:08 +00:00
..
balloon xen/virtio: fix balloon drivers to not mark pages as WIRED 2014-06-25 09:51:08 +00:00
blkback dtrace sdt: remove the ugly sname parameter of SDT_PROBE_DEFINE 2013-11-26 08:46:27 +00:00
blkfront Allow FreeBSD to be booted from CDROM media on XenServer 6.2 and 2013-10-13 02:34:20 +00:00
console xen: introduce xenpv bus 2014-06-16 08:44:33 +00:00
control xen: unify gnttab initialization for PVHVM and PVH 2014-06-16 08:48:42 +00:00
netback Somehow fix LINT-NOIP. 2013-11-01 18:42:03 +00:00
netfront Fix typo in r257515. 2013-11-10 09:36:51 +00:00
pcifront More BUS_PROBE_NOWILDCARD sweeping. Some devices here (if_ath_ahb and siba) 2013-10-29 14:19:42 +00:00
pvcpu xen: add missing files 2014-06-16 08:54:04 +00:00
timer xen: introduce xenpv bus 2014-06-16 08:44:33 +00:00
xenpci xen: unify gnttab initialization for PVHVM and PVH 2014-06-16 08:48:42 +00:00