From: "Jan Beulich" Subject: Re: [PATCH 7/8] x86/EPT: split super pages upon mismatching memory types Date: Thu, 27 Mar 2014 15:25:29 +0000 Message-ID: <533450F90200007800002FC0@nat28.tlf.novell.com> References: <5332FF1902000078000027A2@nat28.tlf.novell.com> <5333022A02000078000027FB@nat28.tlf.novell.com> <20140327150437.GI91759@deinos.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WTCBP-0006SX-BZ for xen-devel@lists.xenproject.org; Thu, 27 Mar 2014 15:25:31 +0000 In-Reply-To: <20140327150437.GI91759@deinos.phlegethon.org> 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: Tim Deegan Cc: Kevin Tian , Keir Fraser , Eddie Dong , Jun Nakajima , Yang Z Zhang , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 27.03.14 at 16:04, wrote: > At 15:36 +0000 on 26 Mar (1395844618), Jan Beulich wrote: >> ... between constituent pages. To indicate such, the page order is >> being passed down to the vMTRR routines, with a negative return value >> (possible only on order-non-zero pages) indicating such collisions. >> >> Some code redundancy reduction is being done to ept_set_entry() along >> the way, allowing the new handling to be centralized to a single place >> there. >> >> In order to keep ept_set_entry() fast and simple, the actual splitting >> is being deferred to the EPT_MISCONFIG VM exit handler. > > You expect that to be rare, right? We're not going to incur a lot of > extra pagefaults? Yes, since type changes are rare (normally limited to guest boot and passthrough device hotplug). Jan