From patchwork Fri Jun 3 15:56:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 98604 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F2C30B6FB0 for ; Sat, 4 Jun 2011 02:10:36 +1000 (EST) Received: from localhost ([::1]:41448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSWxF-0005k5-0s for incoming@patchwork.ozlabs.org; Fri, 03 Jun 2011 12:10:33 -0400 Received: from eggs.gnu.org ([140.186.70.92]:60029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSWh7-0002RO-GA for qemu-devel@nongnu.org; Fri, 03 Jun 2011 11:53:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSWh6-0005j9-2U for qemu-devel@nongnu.org; Fri, 03 Jun 2011 11:53:53 -0400 Received: from smtp.citrix.com ([66.165.176.89]:6518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSWh5-0005ie-Tp for qemu-devel@nongnu.org; Fri, 03 Jun 2011 11:53:52 -0400 X-IronPort-AV: E=Sophos;i="4.65,315,1304308800"; d="scan'208";a="14422919" Received: from ftlpmailmx01.citrite.net ([10.13.107.65]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 03 Jun 2011 11:53:49 -0400 Received: from smtp01.ad.xensource.com (10.219.128.104) by smtprelay.citrix.com (10.13.107.65) with Microsoft SMTP Server id 8.3.137.0; Fri, 3 Jun 2011 11:53:48 -0400 Received: from localhost.localdomain (kaball.uk.xensource.com [10.80.2.59]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id p53FrjDV028550; Fri, 3 Jun 2011 08:53:46 -0700 From: To: qemu-devel@nongnu.org Date: Fri, 3 Jun 2011 16:56:53 +0100 Message-ID: <1307116614-11775-1-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.0.4 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.perard@citrix.com, xen-devel@lists.xensource.com, agraf@suse.de, Stefano Stabellini Subject: [Qemu-devel] [PATCH] xen: avoid tracking the region 0xa0000 - 0xbffff 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 From: Stefano Stabellini Xen can only do dirty bit tracking for one memory region, so we should explicitly avoid trying to track the legacy VGA region between 0xa0000 and 0xbffff, rather than trying and failing. Signed-off-by: Stefano Stabellini --- xen-all.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index 9a5c3ec..1fdc2e8 100644 --- a/xen-all.c +++ b/xen-all.c @@ -218,6 +218,10 @@ static int xen_add_to_physmap(XenIOState *state, if (get_physmapping(state, start_addr, size)) { return 0; } + /* do not try to map legacy VGA memory */ + if (start_addr >= 0xa0000 && start_addr + size <= 0xbffff) { + return -1; + } if (size <= 0) { return -1; }