From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: Page Table Entry Modifications Date: Wed, 23 Sep 2015 09:35:19 +0100 Message-ID: <56026447.7000901@citrix.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3733831124029538294==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Gohar Irfan , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============3733831124029538294== Content-Type: multipart/alternative; boundary="------------000803000900020207030600" This is a multi-part message in MIME format. --------------000803000900020207030600 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 22/09/15 20:35, Gohar Irfan wrote: > Hi All, > > I want to know if, in the case of HVM (shadow page tables), we can > change the machine frame number pointed to by a page table entry? Yes - Xen is able to change the mfn in a pte. > An overly simplified example would be: let's say I have page number 10 > that is pointing to machine frame number 10, but I would like it to > point to machine frame number 1? Yes - that is in theory possible. > Can this be achieved inside the "sh_page_fault" function inside > "xen/arch/x86/mm/shadow/multi.c" as this seems like a relevant place > for this modification to me. What are you trying to achieve? Modifications such as what you request are possible, but you are exceedingly likely to end up with memory corruption as a result. ~Andrew --------------000803000900020207030600 Content-Type: text/html; charset=windows-1252 Content-Length: 1876 Content-Transfer-Encoding: quoted-printable On 22/09/15 20:35, Gohar Irfan wrote:
Hi All,

I want to know if, in the case of HVM (shadow page tables), we can change the machine frame number pointed to by a page table entry=3F

Yes - Xen is able to change the mfn in a pte.

An overly simplified example would be: let's say I have page number 10 that is pointing to machine frame number 10, but I would like it to point to machine frame number 1=3F

Yes - that is in theory possible.

Can this be achieved inside the "sh_page_fault" function inside "xen/arch/x86/mm/shadow/multi.c" as this seems like a relevant place for this modification to me.

What are you trying to achieve=3F=A0 Modifications such as what you request are possible, but you are exceedingly likely to end up with memory corruption as a result.

~Andrew
--------------000803000900020207030600-- --===============3733831124029538294== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============3733831124029538294==--