From patchwork Fri Jul 20 14:34:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 172283 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 73E552C0375 for ; Sat, 21 Jul 2012 00:39:55 +1000 (EST) Received: from localhost ([::1]:50262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsEMy-0004jc-83 for incoming@patchwork.ozlabs.org; Fri, 20 Jul 2012 10:39:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsEMq-0004i5-Uf for qemu-devel@nongnu.org; Fri, 20 Jul 2012 10:39:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsEMp-0007wE-Tt for qemu-devel@nongnu.org; Fri, 20 Jul 2012 10:39:44 -0400 Received: from smtp.citrix.com ([66.165.176.89]:1816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsEMp-0007w7-Os for qemu-devel@nongnu.org; Fri, 20 Jul 2012 10:39:43 -0400 X-IronPort-AV: E=Sophos;i="4.77,623,1336363200"; d="scan'208";a="32146759" Received: from ftlpmailmx01.citrite.net ([10.13.107.65]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 20 Jul 2012 10:39:42 -0400 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.65) with Microsoft SMTP Server id 8.3.213.0; Fri, 20 Jul 2012 10:39:42 -0400 Received: from [10.80.3.61] (helo=perard.uk.xensource.com) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1SsEHz-0001KX-UM; Fri, 20 Jul 2012 15:34:43 +0100 From: Anthony PERARD To: QEMU-devel Date: Fri, 20 Jul 2012 15:34:42 +0100 Message-ID: <1342794882-30648-6-git-send-email-anthony.perard@citrix.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1342794882-30648-1-git-send-email-anthony.perard@citrix.com> References: <1342794882-30648-1-git-send-email-anthony.perard@citrix.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.89 Cc: Anthony Liguori , Xen Devel , Stefano Stabellini , Avi Kivity , Anthony PERARD , Luiz Capitulino Subject: [Qemu-devel] [PATCH V2 5/5] xen: Always set the vram dirty during migration. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Because the call to track the dirty bit in the video ram during migration won't work (it returns -1), we set dirtybit on the all video ram. Signed-off-by: Anthony PERARD --- xen-all.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index 54e54cb..207182e 100644 --- a/xen-all.c +++ b/xen-all.c @@ -502,6 +502,11 @@ static void xen_sync_dirty_bitmap(XenIOState *state, return; } + if (unlikely(xen_in_migration)) { + /* track_dirty_vram does not work during migration */ + memory_region_set_dirty(framebuffer, 0, size); + return; + } rc = xc_hvm_track_dirty_vram(xen_xc, xen_domid, start_addr >> TARGET_PAGE_BITS, npages, bitmap);