From: Chengyuan Li <chengyuanli@gmail.com>
To: Keir Fraser <keir.fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.sourceforge.net
Subject: Re: What's the advantage of Writable pagetable?
Date: Sun, 10 Oct 2004 10:44:22 +0800 [thread overview]
Message-ID: <d2ab765004100919447fd5df40@mail.gmail.com> (raw)
In-Reply-To: <E1CGDGA-0006YX-00@mta1.cl.cam.ac.uk>
As the queue is canceled, it seems that the performance will decline. Right?
On Sat, 09 Oct 2004 10:11:26 +0100, Keir Fraser
<keir.fraser@cl.cam.ac.uk> wrote:
>
> Advantages are that update snaturally get batched, rather than needong
> to be explicitly maintainbed in a queue and then explicitly
> flushed. The flushes are a problem in Linux 2.4 because they are
> needed in various places in the generic VM code, to avoid races where
> the kernel reads a PTE that it has just written, but where the update
> is still buffered in in the update queue.
>
> A further advantage is that atomic read-modify-write instructions will
> trivially work correctly with writable page tables. e.g., when we
> support SMP guests they will wish to 'CMPXCHG' the contents of a PTE
> to zero them while notg racing against updates of accessed/dirty bits
> by another CPU. Using the old interface with explicit batching. we
> would have to add a new kind of update command to support each kind of
> atomic instruction!
>
> -- Keir
>
>
>
>
> > Hi,
> >
> > Before writable pagetable is enabled, XenLinux use Hypercall to update
> > PTE. After the writable pagetable is enabled, it depends on page fault
> > to update PTE. What's the advantage then?
> >
> >
> > Thanks,
> > Chengyuan
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > Use IT products in your business? Tell us what you think of them. Give us
> > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
>
>
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
next prev parent reply other threads:[~2004-10-10 2:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-09 8:30 What's the advantage of Writable pagetable? Chengyuan Li
2004-10-09 9:11 ` Keir Fraser
2004-10-10 2:44 ` Chengyuan Li [this message]
2004-10-10 12:00 ` Mark A. Williamson
2004-10-11 3:04 ` Chengyuan Li
-- strict thread matches above, loose matches on Subject: below --
2004-10-10 8:49 Ian Pratt
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=d2ab765004100919447fd5df40@mail.gmail.com \
--to=chengyuanli@gmail.com \
--cc=keir.fraser@cl.cam.ac.uk \
--cc=xen-devel@lists.sourceforge.net \
/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.