From: David Vrabel Subject: Re: [Xen-devel] [PATCH V3 8/8] xen: Speed up set_phys_to_machine() by using read-only mappings Date: Tue, 11 Nov 2014 17:48:44 +0000 Message-ID: <54624BFC.6000205@citrix.com> References: <1415684626-18590-1-git-send-email-jgross@suse.com> <1415684626-18590-9-git-send-email-jgross@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1415684626-18590-9-git-send-email-jgross@suse.com> Sender: linux-kernel-owner@vger.kernel.org To: Juergen Gross , linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, konrad.wilk@oracle.com, david.vrabel@citrix.com, boris.ostrovsky@oracle.com, x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com List-Id: xen-devel@lists.xenproject.org On 11/11/14 05:43, Juergen Gross wrote: > Instead of checking at each call of set_phys_to_machine() whether a > new p2m page has to be allocated due to writing an entry in a large > invalid or identity area, just map those areas read only and react > to a page fault on write by allocating the new page. > > This change will make the common path with no allocation much > faster as it only requires a single write of the new mfn instead > of walking the address translation tables and checking for the > special cases. Reviewed-by: David Vrabel David