From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUM1K-00041x-70 for qemu-devel@nongnu.org; Tue, 04 Dec 2018 20:30:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUM1F-0008G7-TN for qemu-devel@nongnu.org; Tue, 04 Dec 2018 20:30:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55136) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUM1F-0008Dz-7G for qemu-devel@nongnu.org; Tue, 04 Dec 2018 20:30:29 -0500 References: From: Jason Wang Message-ID: <915953bd-cc9c-9456-b619-297138f68ae6@redhat.com> Date: Wed, 5 Dec 2018 09:30:19 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Logging dirty pages from vhost-net in-kernel with vIOMMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jintack Lim , QEMU Devel Mailing List Cc: "Michael S. Tsirkin" On 2018/12/5 =E4=B8=8A=E5=8D=882:37, Jintack Lim wrote: > Hi, > > I'm wondering how the current implementation works when logging dirty > pages during migration from vhost-net (in kernel) when used vIOMMU. > > I understand how vhost-net logs GPAs when not using vIOMMU. But when > we use vhost with vIOMMU, then shouldn't vhost-net need to log the > translated address (GPA) instead of the address written in the > descriptor (IOVA) ? The current implementation looks like vhost-net > just logs IOVA without translation in vhost_get_vq_desc() in > drivers/vhost/net.c. It seems like QEMU doesn't do any further > translation of the dirty log when syncing. > > I might be missing something. Could somebody shed some light on this? Good catch. It looks like a bug to me. Want to post a patch for this? Thanks > > Thanks, > Jintack > >