Re: [PATCH] migration/postcopy: not necessary to discard all RAM at the beginning

2020-02-13 Thread Wei Yang
On Thu, Feb 13, 2020 at 10:17:04AM +, Dr. David Alan Gilbert wrote: >* Wei Yang (richardw.y...@linux.intel.com) wrote: >> ram_discard_range() unmap page for specific range. To be specific, this >> clears related page table entries so that userfault would be triggered. >> But this step is not ne

Re: [PATCH] migration/postcopy: not necessary to discard all RAM at the beginning

2020-02-13 Thread Dr. David Alan Gilbert
* Wei Yang (richardw.y...@linux.intel.com) wrote: > ram_discard_range() unmap page for specific range. To be specific, this > clears related page table entries so that userfault would be triggered. > But this step is not necessary at the very beginning. > > ram_postcopy_incoming_init() is called w

Re: [PATCH] migration/postcopy: not necessary to discard all RAM at the beginning

2020-01-30 Thread Wei Yang
Hi, David and Juan Does it look good to you? On Mon, Oct 07, 2019 at 05:10:08PM +0800, Wei Yang wrote: >ram_discard_range() unmap page for specific range. To be specific, this >clears related page table entries so that userfault would be triggered. >But this step is not necessary at the very begi

Re: [PATCH] migration/postcopy: not necessary to discard all RAM at the beginning

2020-01-12 Thread Wei Yang
Oops, this one seems to be missed. On Mon, Oct 07, 2019 at 05:10:08PM +0800, Wei Yang wrote: >ram_discard_range() unmap page for specific range. To be specific, this >clears related page table entries so that userfault would be triggered. >But this step is not necessary at the very beginning. >

[PATCH] migration/postcopy: not necessary to discard all RAM at the beginning

2019-10-07 Thread Wei Yang
ram_discard_range() unmap page for specific range. To be specific, this clears related page table entries so that userfault would be triggered. But this step is not necessary at the very beginning. ram_postcopy_incoming_init() is called when destination gets ADVISE command. ADVISE command is sent