Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRmX4-0002Mx-Ln for qemu-devel@nongnu.org; Fri, 17 Jul 2009 08:27:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRmWz-0002Ff-OO for qemu-devel@nongnu.org; Fri, 17 Jul 2009 08:27:22 -0400 Received: from [199.232.76.173] (port=35523 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRmWz-0002FN-Hf for qemu-devel@nongnu.org; Fri, 17 Jul 2009 08:27:17 -0400 Received: from cantor.suse.de ([195.135.220.2]:44030 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRmWz-0005oz-8B for qemu-devel@nongnu.org; Fri, 17 Jul 2009 08:27:17 -0400 Message-Id: From: Alexander Graf In-Reply-To: <68AE6B8C-A03D-40A8-ACF5-D426E6CB2AE5@suse.de> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: [Qemu-devel] [PATCH 7/7] Fake dirty loggin when it's not there Date: Fri, 17 Jul 2009 14:27:11 +0200 References: <1247831508-19023-1-git-send-email-agraf@suse.de> <1247831508-19023-2-git-send-email-agraf@suse.de> <1247831508-19023-3-git-send-email-agraf@suse.de> <1247831508-19023-4-git-send-email-agraf@suse.de> <1247831508-19023-5-git-send-email-agraf@suse.de> <1247831508-19023-6-git-send-email-agraf@suse.de> <1247831508-19023-7-git-send-email-agraf@suse.de> <1247831508-19023-8-git-send-email-agraf@suse.de> <68AE6B8C-A03D-40A8-ACF5-D426E6CB2AE5@suse.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Stabellini Cc: qemu-devel@nongnu.org, "hollisb@us.ibm.com Blanchard" On 17.07.2009, at 14:18, Alexander Graf wrote: > > On 17.07.2009, at 14:10, Stefano Stabellini wrote: > >> On Fri, 17 Jul 2009, Alexander Graf wrote: >>> Some KVM platforms don't support dirty logging yet, like IA64 and >>> PPC, >>> so in order to still have screen updates on those, we need to fake >>> it. >>> >>> This patch just tells the getter function for dirty bitmaps, that >>> all >>> pages within a slot are dirty when the slot has dirty logging >>> enabled. >>> >>> That way we can implement dirty logging on those platforms >>> sometime when >>> it drags down performance, but share the rest of the code with dirty >>> logging capable platforms. >> >> Isn't it going to be very very slow? >> I think a memcmp based approach as a fallback would be a better idea, >> and if we could make this generic it would be even better :) > > Oh memcmp not memcpy - sorry I misread that. > > Yeah, one could do memcmp there. I don't know if it's worth it > though. At least the VNC target does a dirty verification itself > again anyways. Thinking about this again, you'd have to copy it somewhere before. So on every dirty check you'd have to copy all memory off to "somewhere" to be able to check for it again later. Sounds feasible, but is it really worth the effort? Can Xen do dirty logging? Alex