From: Tim Deegan Subject: Re: Alternate p2m design specification Date: Thu, 11 Jun 2015 13:06:13 +0100 Message-ID: <20150611120613.GB1818@deinos.phlegethon.org> References: <55778039.3050000@intel.com> <5578808C.4000602@citrix.com> <557892E8.4000908@intel.com> <5578C3B3.3000903@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z31Fc-0006W9-KW for xen-devel@lists.xenproject.org; Thu, 11 Jun 2015 12:06:28 +0000 Content-Disposition: inline In-Reply-To: <5578C3B3.3000903@cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: ravi.sahita@intel.com, Keir Fraser , Ian Campbell , Ian Jackson , Ed White , Jan Beulich , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org At 00:09 +0100 on 11 Jun (1433981379), Andrew Cooper wrote: > On 10/06/15 20:41, Ed White wrote: > > On 06/10/2015 11:23 AM, Andrew Cooper wrote: > >> Also, hardware accelerated altp2m is mutually exclusive with EPT PML, as > >> we have no way of determining which translation was in use when a gpa > >> was appended to the buffer. We are going to have to maintain a feature > >> compatibility matrix. Even for non-accelerated altp2m, the cost of > >> working out the real gpa is likely prohibitive, and we should probably > >> resort to declaring logdirty and altp2m as exclusive features. > >> > >> ~Andrew > >> > > I haven't investigated the PML code, but just to be clear, log-dirty > > without PML is compatible with altp2m. > > The logdirty code is built around the notion of a single linear idea of > a guests physical address space. Altp2m, by its very nature, introduces > non-linearities into a guests physical address space. All current users of the log-dirty code, except for PML, operate on MFNs and use the M2P to get a PFN so use for the dirty-bitmap operation. Those paths should all be able to operate with altp2m active. (IOW the single linear address space is the 'host' p2m). Cheers, Tim.