|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v7 12/14] arm/mem_access: Add long-descriptor based gpt
Hi, On 18/07/17 13:25, Sergej Proskurin wrote: While working on other bit of Xen, it occurred to me that access_guest_memory_by_ipa will take the p2m lock. However it is already taken by another caller in the stack (see get_page_from_gva). This means you rely on the p2m lock to be recursive. I don't think we make this assumption in any p2m code at the moment. I think it is fine with the current locking (we are using read-write lock).I am not a big fan of nested lock, but I can't see how to do it properly here. Nevertheless, I would like a comment on top of the p2m rwlock to explain we have place using nested p2m locked. So if we ever decide to modify the lock, we will not get get caught with a deadlock in the memaccess code. I will review the rest of the patch later. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |