[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] readonly grants



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.