]> git.ipfire.org Git - thirdparty/qemu.git/commit
libvhost-user: mprotect & madvises for postcopy
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 12 Mar 2018 17:21:18 +0000 (17:21 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 20 Mar 2018 14:40:37 +0000 (16:40 +0200)
commit0185cfb30b05af9966d60552976e672b827189ef
tree633808d7bcb8ad35deae2656d984261700dbf33e
parentdedfb4b21af6c5deb71c3c08b663dafec98e9f31
libvhost-user: mprotect & madvises for postcopy

Clear the area and turn off THP.
PROT_NONE the area until after we've userfault advised it
to catch any unexpected changes.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/libvhost-user/libvhost-user.c