xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Gohar Irfan <goharirfan94@gmail.com>, xen-devel@lists.xen.org
Subject: Re: Page Table Entry Modifications
Date: Wed, 23 Sep 2015 09:35:19 +0100	[thread overview]
Message-ID: <56026447.7000901@citrix.com> (raw)
In-Reply-To: <CAPe5K8h=vSdjr+pEMM2dUY326Vw56c+bcKgxWRNSfcNSgqigrw@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 797 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1826 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2015-09-23  8:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-22 19:35 Page Table Entry Modifications Gohar Irfan
2015-09-23  8:35 ` Andrew Cooper [this message]
2015-09-23  8:42   ` Gohar Irfan
2015-09-27  7:26     ` Gohar Irfan
2015-09-27 14:57     ` Meng Xu
2015-09-27 16:04       ` Gohar Irfan
2015-09-28 19:09         ` Gohar Irfan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56026447.7000901@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=goharirfan94@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).