summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/authunix_prot.c
diff options
context:
space:
mode:
authorroyger <royger@FreeBSD.org>2014-06-25 09:51:08 +0000
committerroyger <royger@FreeBSD.org>2014-06-25 09:51:08 +0000
commit67e7468d2b19cd0655d70342f6300d466d5bd1aa (patch)
tree2280c655956ec99ac43614d4fef4cf571ac390e6 /lib/libc/rpc/authunix_prot.c
parent6794b1b21906179daca3aae7eb6f789de1052d98 (diff)
downloadFreeBSD-src-67e7468d2b19cd0655d70342f6300d466d5bd1aa.zip
FreeBSD-src-67e7468d2b19cd0655d70342f6300d466d5bd1aa.tar.gz
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.
Diffstat (limited to 'lib/libc/rpc/authunix_prot.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud