|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 05/10] xen/arm: optee: add std call handling
Hi Volodymyr, On 20/03/2019 17:42, Volodymyr Babchuk wrote: [...] If you hit the ASSERT (or if it where a BUG_ON) then something has already got horribly wrong. You will crash in any case, it is not going to matter much whether you crash before unmapping or after unmapping. And obviously, I can't call ASSERT() without holding the the spinlock. > On other hand, ASSERT() is a debugging feature, so we can pretend that is not there... If you okay with this, I'll move mapping/unmapping out of the spinlocks. ASSERT/BUG_ON are only here to catch against anything would be horribly wrong if we continue (the severity will drive the choice between ASSERT and BUG_ON). In normal case, this should never be hit. So I would prefer if lock section are kept to minimal. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |