WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] What's the advantage of Writable pagetable?

To: "Chengyuan Li" <chengyuanli@xxxxxxxxx>, "Keir Fraser" <keir.fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] What's the advantage of Writable pagetable?
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Sun, 10 Oct 2004 09:49:48 +0100
Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 11 Oct 2004 00:33:43 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Thread-index: AcSuc/oRA1yUA4eeSFe2553PTowNgwAMaF5Q
Thread-topic: [Xen-devel] What's the advantage of Writable pagetable?
> As the queue is canceled, it seems that the performance will decline.
Right?

No -- when a pagetable page is 'unhooked' the guest can write to it
freely without incurring further faults. We validate all the entries and
re-hook the page either when a TLB flush occurs, or when we detect a
page fault on the area of VA space the page maps.

The performance is very similar to the batched interface used in 2.4,
but its less invasive to the guest OS an will make SMP guests easier.

Ian

On Sat, 09 Oct 2004 10:11:26 +0100, Keir Fraser
<keir.fraser@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxx
> > 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel