From: Alex Bligh Subject: Re: [PATCHv4 4/5] exec, memory: Call to xen_modified_memory. Date: Wed, 20 Feb 2013 20:35:36 +0000 Message-ID: References: <1361279850-8246-1-git-send-email-alex@alex.org.uk> <1361279850-8246-5-git-send-email-alex@alex.org.uk> <8C4820ECA744AD74C30515BF@nimrod.local> Reply-To: Alex Bligh Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: xen-devel , Ian Jackson , Ian Campbell , Alex Bligh , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Stefano, --On 20 February 2013 12:30:45 +0000 Stefano Stabellini wrote: > Also add a call to xen_modified_memory from > cpu_physical_memory_set_dirty, if I am not mistaken that should solve > the problem with the dirty vram. I think I now recall why I did not do this. Firstly, cpu_physical_memory_set_dirty is inline, and I'd have to check (presumably) xen_enabled() then call a non-inline function. This seemed a bit much to satisfy only the needs of the VRAM check as (as far as I could tell - I may well be wrong) xen_modifed_memory was being called appropriately by all the other callers anyway. Secondly, if I do need to modify this one, it seemed odd that I'd need not need to modify cpu_physical_set_dirty_flags. It seemed cleaner just to fix up the VRAM stuff. What do you think? I'll send another patch series with everything else in. -- Alex Bligh