Received: from eggs.gnu.org ([2001:4830:134:3::10]:50979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcQ2o-0001bw-0p for qemu-devel@nongnu.org; Tue, 01 Aug 2017 01:48:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcQ2k-0001JM-Tj for qemu-devel@nongnu.org; Tue, 01 Aug 2017 01:48:38 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:30840) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcQ2k-0001Ah-N4 for qemu-devel@nongnu.org; Tue, 01 Aug 2017 01:48:34 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OTZ0016DS4LWR00@mailout1.w1.samsung.com> for qemu-devel@nongnu.org; Tue, 01 Aug 2017 06:48:21 +0100 (BST) From: Alexey Perevalov Message-id: <11b966a9-529f-eb17-d40d-e32be54bfd87@samsung.com> Date: Tue, 01 Aug 2017 08:48:18 +0300 MIME-version: 1.0 In-reply-to: <20170801021137.GA15697@pxdev.xzpeter.org> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit Content-language: en-GB References: <1501229198-30588-1-git-send-email-peterx@redhat.com> <1501229198-30588-2-git-send-email-peterx@redhat.com> <20170731163414.GB2122@work-vm> <20170801021137.GA15697@pxdev.xzpeter.org> Subject: Re: [Qemu-devel] [RFC 01/29] migration: fix incorrect postcopy recved_bitmap List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu , "Dr. David Alan Gilbert" Cc: qemu-devel@nongnu.org, Laurent Vivier , Juan Quintela , Andrea Arcangeli On 08/01/2017 05:11 AM, Peter Xu wrote: > On Mon, Jul 31, 2017 at 05:34:14PM +0100, Dr. David Alan Gilbert wrote: >> * Peter Xu (peterx@redhat.com) wrote: >>> The bitmap setup during postcopy is incorrectly when the pgaes are huge >>> pages. Fix it. >>> >>> Signed-off-by: Peter Xu >>> --- >>> migration/postcopy-ram.c | 2 +- >>> migration/ram.c | 8 ++++++++ >>> migration/ram.h | 2 ++ >>> 3 files changed, 11 insertions(+), 1 deletion(-) >>> >>> diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c >>> index 276ce12..952b73a 100644 >>> --- a/migration/postcopy-ram.c >>> +++ b/migration/postcopy-ram.c >>> @@ -578,7 +578,7 @@ static int qemu_ufd_copy_ioctl(int userfault_fd, void *host_addr, >>> ret = ioctl(userfault_fd, UFFDIO_ZEROPAGE, &zero_struct); >>> } >>> if (!ret) { >>> - ramblock_recv_bitmap_set(host_addr, rb); >>> + ramblock_recv_bitmap_set_range(rb, host_addr, pagesize / getpagesize()); >> isn't that pagesize / qemu_target_page_size() ? >> >> Other than that it looks OK. > Yes, I should have fixed this before. > > I guess Alexey will handle this change (along with the copied bitmap > series)? Anyway, I'll fix it as well in my series, until Alexey post > the new version that I can rebase to. Thanks, > I'll squash it, and I'll resend it today. Are you agree to add Signed-off-by: Peter Xu to my patch? -- Best regards, Alexey Perevalov