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] readonly grants

To: Mohammad Hedayati <hedayati.mo@xxxxxxxxx>
Subject: Re: [Xen-devel] readonly grants
From: Tim Deegan <tim@xxxxxxx>
Date: Thu, 27 Oct 2011 12:01:27 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 27 Oct 2011 04:05:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CABA5EEsXEhN8DPwbm-YLMwW8qVK-1-gV37vCYCu=spG8uUUZ5g@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CABA5EEsXEhN8DPwbm-YLMwW8qVK-1-gV37vCYCu=spG8uUUZ5g@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
At 20:16 +0330 on 26 Oct (1319660209), Mohammad Hedayati wrote:
> After mapping a readonly granted page in a PV guest, the guest can try to
> change his l1 page table entry, faulting into Xen. Here xen emulates the
> update operation, but first it must check whether the modification is
> allowed or not (i.e. the grant is readonly or not).
> I'm looking through the code, but I can't find where this checking is done.

Emulated writes go through ptwr_emulated_update() which calls
get_page_from_l1e(), which won't let the guest write a PTE that maps
another VM's memory.

Tim.

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

<Prev in Thread] Current Thread [Next in Thread>