Re: [Qemu-devel] [PATCH 3/3] migration/postcopy: discard_length must not be 0

2019-06-28 Thread Dr. David Alan Gilbert
* Wei Yang (richardw.y...@linux.intel.com) wrote: > Since we break the loop when there is no more page to discard, we are > sure the following process would find some page to discard. > > It is not necessary to check it again. > > Signed-off-by: Wei Yang Reviewed-by: Dr. David Alan Gilbert >

[Qemu-devel] [PATCH 3/3] migration/postcopy: discard_length must not be 0

2019-06-26 Thread Wei Yang
Since we break the loop when there is no more page to discard, we are sure the following process would find some page to discard. It is not necessary to check it again. Signed-off-by: Wei Yang --- migration/ram.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/migration/r