From: "Mike Sun" Subject: Re: Swapping of PT pages Date: Wed, 20 Feb 2008 10:55:29 -0500 Message-ID: References: <6bc632150802191244j16f7575ctf4bba69e57abc9d4@mail.gmail.com> <20080220093141.GA24343@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080220093141.GA24343@york.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Thanks Tim, this is very interesting. So is it safe for me to assume that the current Linux PV implementation does not allow page table pages to be swapped out (to ensure that it can be migrated correctly)? Mike > Xen is not involved in the guest's swapping/paging activities. If a > guest were to page its pagetables out to disk and then be migrated, they > would indeed be incorrect when they were reloaded. The canonicalisation > happens only for pages that are currently in memory and marked with a > page-table type. > You're right. If a guest wanted to use a pagetable after it had been > paged out, it would have to do the same MFN->PFN canonicalization on the > on-disk form, and PFN->MFN when reloading. > > (That's PV guests, BTW. HVM guests that swapped their pagetables could > potentially experience memory corruption if they used the emulated disk > controller, but should work fine with PV drivers, or with NPT.)