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] question on get_page_and_type()

To: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>, "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] question on get_page_and_type()
From: "Ian Pratt" <Ian.Pratt@xxxxxxxxxxxx>
Date: Sun, 15 Apr 2007 05:20:01 +0100
Delivery-date: Sat, 14 Apr 2007 21:19:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <b8e946230704131225s5bdb78depb401085f221c56c1@xxxxxxxxxxxxxx><C2459958.5D6C%Keir.Fraser@xxxxxxxxxxxx> <08CA2245AFCF444DB3AC415E47CC40AF9D79B9@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <8A87A9A84C201449A0C56B728ACF491E0BA1E3@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <08CA2245AFCF444DB3AC415E47CC40AF9D7A73@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acd+AnYdtNWvBOn1EduH7gAWy6hiGQADAu5wAA0WghAAJBzZQAAQcprg
Thread-topic: [Xen-devel] question on get_page_and_type()
> Ah, OK. Thanks for clarifying!
> I assume this could only happen if the guest is buggy, right? Normally
> the guest should not do a grant_copy into its pagetables or issue a
> grant for its page tables. But in case it does it is only corrupting
> itself right? I assume only the page owner could use the page for page
> tables. Is it fair to say that the get_page_and_type() is only
> protecting a guest to harm itself? In that case would it be acceptable
> to transfer this enforcement to the guest itself if this gives a boost
> in performance?

No, for direct pagetable mode guests it's necessary for correctness,
otherwise a guest can corrupt it's pagetables and access memory
belonging to other guests or the hypervisor, or even tripple fault the
machine.

Ian

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel