From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41163 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7Zdw-0006Cs-E5 for qemu-devel@nongnu.org; Wed, 06 Apr 2011 16:48:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7ZYJ-0001zb-DR for qemu-devel@nongnu.org; Wed, 06 Apr 2011 16:42:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7ZYJ-0001zP-42 for qemu-devel@nongnu.org; Wed, 06 Apr 2011 16:42:11 -0400 Date: Wed, 6 Apr 2011 23:41:51 +0300 From: "Michael S. Tsirkin" Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCH RFC 3/5] vhost: skip memory which needs dirty logging List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org vhost doesn't support write logging (except for migration), anyway. Signed-off-by: Michael S. Tsirkin --- hw/vhost.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/vhost.c b/hw/vhost.c index dc3d0e2..257e3dd 100644 --- a/hw/vhost.c +++ b/hw/vhost.c @@ -311,6 +311,10 @@ static void vhost_client_set_memory(CPUPhysMemoryClient *client, int r; dev->mem = qemu_realloc(dev->mem, s); + if (log_dirty) { + flags = IO_MEM_UNASSIGNED; + } + assert(size); vhost_dev_unassign_memory(dev, start_addr, size); -- 1.7.3.2.91.g446ac