|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 4/4] x86/ioreq server: Reset outstanding p2m_ioreq_server entries when an ioreq server unmaps.
On 8/9/2016 5:45 PM, Jan Beulich wrote: On 09.08.16 at 11:25, <yu.c.zhang@xxxxxxxxxxxxxxx> wrote:On 8/9/2016 4:13 PM, Jan Beulich wrote:On 09.08.16 at 09:39, <yu.c.zhang@xxxxxxxxxxxxxxx> wrote:On 8/9/2016 12:29 AM, Jan Beulich wrote:On 12.07.16 at 11:02, <yu.c.zhang@xxxxxxxxxxxxxxx> wrote: Oh. This is a good point. Thanks. :-) 2> the misconfiguration handlers - resolve_misconfig() or do_recalc(), which are triggered by HVM's vm exit, yet this will only happen after the ioreq server has already been unmapped. This means the accesses to the entry_count will not be concurrent with the above hvmop handlers.This case may be fine, but not for (just) the named reason: Multiple misconfig invocations can happen at the same time, but presumably your addition is inside the p2m-locked region (you'd have to double check that). Yes, both are wrapped in p2m-locked region. So this give me another thought:if we put the increment/decrement of entry_count inside p2m_change_type_one(), which has the p2m_lock/p2m_unlock, we could avoid introducing another spinlock and can also avoid the overflow possibility by using atomic_t. [snip] Thanks Yu _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |