From: Mark Williamson <mark.williamson@cl.cam.ac.uk>
To: xen-devel@lists.xensource.com
Cc: weiming <zephyr.zhao@gmail.com>, Tim Deegan <Tim.Deegan@citrix.com>
Subject: Re: where is writable page table implemented?
Date: Tue, 25 Mar 2008 16:30:59 +0000 [thread overview]
Message-ID: <200803251630.59460.mark.williamson@cl.cam.ac.uk> (raw)
In-Reply-To: <add59a3f0803241126i603eb40qfa1b57f917103e74@mail.gmail.com>
> 2) in ptwr_do_page_fault(), it should disconnect the page from page
> directory and then mark the page as writable. Where are they done? In
> x86_emulate()?
The disconnection was originally implemented so that guests could make further
writes to that page without incurring any more traps into Xen. The goal was
to improve the performance of batch pagetable changes (e.g. when a fork() is
being performed).
This approach was abandoned in favour of trapping every direct pagetable
write, and having guests explicitly hypercall into Xen when they really do
want to modify a batch of pages. This reduced the overheads in the usual
case when the guest is only modifying a small number of pagetable entries.
The new approach gives an overall performance benefit but is ABI compatible
with guests from before this change (they just won't get the batching).
Cheers,
Mark
--
Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/)
prev parent reply other threads:[~2008-03-25 16:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 16:18 where is writable page table implemented? weiming
2008-03-24 16:25 ` Tim Deegan
2008-03-24 18:26 ` weiming
2008-03-25 10:43 ` Tim Deegan
2008-03-30 23:43 ` weiming
2008-04-01 8:38 ` Tim Deegan
2008-04-01 15:37 ` weiming
2008-04-01 16:17 ` Tim Deegan
2008-03-25 16:30 ` Mark Williamson [this message]
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=200803251630.59460.mark.williamson@cl.cam.ac.uk \
--to=mark.williamson@cl.cam.ac.uk \
--cc=Tim.Deegan@citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=zephyr.zhao@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.