Re: RFC: Split EPT huge pages in advance of dirty logging

2020-02-20 Thread Ben Gardon
On Thu, Feb 20, 2020 at 5:53 AM Zhoujian (jay) wrote: > > > > > -Original Message- > > From: Peter Xu [mailto:pet...@redhat.com] > > Sent: Thursday, February 20, 2020 1:19 AM > > To: Zhoujian (jay) > > Cc: k...@vger.kernel.org; qemu-devel@nongnu.org; pbonz...@redhat.com; > > dgilb...@redh

Re: RFC: Split EPT huge pages in advance of dirty logging

2020-02-20 Thread Ben Gardon
FWIW, we currently do this eager splitting at Google for live migration. When the log-dirty-memory flag is set on a memslot we eagerly split all pages in the slot down to 4k granularity. As Jay said, this does not cause crippling lock contention because the vCPU page faults generated by write prote