[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 3/3] tools/libxc/xc_mem_paging_setup.c: FIX- Race condition between initializing shared ring and mempaging.
On Thu, Aug 7, 2014 at 4:40 PM, Dushyant Behl <myselfdushyantbehl@xxxxxxxxx> wrote: This patch is meant to fix a known race condition bug in mempaging (+ IanC) Â This patch has a few problems, but raises a couple interesting points about xc_mem_event_enable. See below:
--- Once xc_mem_event_enable maps the ring page, surely there is no downside to clearing it out? i.e. moving this memset there should help. + Likewise. Once xc_mem_event_enable has mapped (and cleared) the ring page, and since it's holding the domain paused, there is no downside in applying SHARED_RING_INIT, methinks. Every consumer of xc_mem_event_enable is bound to do that. And doing it prior to enabling mem event and unpausing the domain ensures Xen will have a proper ring to place events at.
If those two make sense, then we can cut a patch against xc_mem_event_enable. Thanks Andres +  ÂBACK_RING_INIT(back_ring, (mem_event_sring_t *)ring_page, PAGE_SIZE); _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |