[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: [PATCH] mem_sharing: fix race condition of nominate and unshare
Hi, Tim: On Sat, Jan 8, 2011 at 12:09 AM, Tim Deegan <Tim.Deegan@xxxxxxxxxx> wrote:
Just to be skeptic. Why doesn't mfn_to_gfn() take p2m lock when querying the p2m type? Is there any quarantee that the resulting type is correct and trustful? For example: (1) User1 query the p2m type: mfn_to_gfn(...&p2mt); if (p2mt == p2m_ram_rw) /* do something based on the p2m type result? */ (2) User2 modify the p2m type p2m_lock(p2m); set_p2m_entry(..... p2m_ram_rw); p2m_unlock(p2m); Thanks, Jui-Hao _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |