Re: [Qemu-devel] [PATCH v5 44/45] Disable mlock around incoming postcopy

2015-03-22 Thread David Gibson
On Wed, Feb 25, 2015 at 04:52:07PM +, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Userfault doesn't work with mlock; mlock is designed to nail down pages > so they don't move, userfault is designed to tell you when they're not > there. > > munlock the pages we us

[Qemu-devel] [PATCH v5 44/45] Disable mlock around incoming postcopy

2015-02-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Userfault doesn't work with mlock; mlock is designed to nail down pages so they don't move, userfault is designed to tell you when they're not there. munlock the pages we userfault protect before postcopy. mlock everything again at the end if mlock is enabled. Sig