[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA8644D4.20348%keir.xen@gmail.com>
Date: Fri, 02 Sep 2011 08:31:16 +0100
From: Keir Fraser <keir.xen@...il.com>
To: Ian Campbell <Ian.Campbell@...rix.com>,
Jeremy Fitzhardinge <jeremy@...p.org>
CC: "xen-devel@...ts.xensource.com" <xen-devel@...ts.xensource.com>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
"namhyung@...il.com" <namhyung@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
David Vrabel <david.vrabel@...rix.com>,
"rientjes@...gle.com" <rientjes@...gle.com>,
"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
"paulmck@...ux.vnet.ibm.com" <paulmck@...ux.vnet.ibm.com>
Subject: Re: [Xen-devel] Re: [Revert] Re: [PATCH] mm: sync vmalloc address
space page tables in alloc_vm_area()
On 02/09/2011 08:22, "Ian Campbell" <Ian.Campbell@...rix.com> wrote:
> On Thu, 2011-09-01 at 21:37 +0100, Jeremy Fitzhardinge wrote:
>> On 09/01/2011 09:11 AM, Konrad Rzeszutek Wilk wrote:
>>> On Thu, Sep 01, 2011 at 12:51:03PM +0100, David Vrabel wrote:
>>>> From: David Vrabel <david.vrabel@...rix.com>
>>> Andrew,
>>>
>>> I was wondering if you would be Ok with this patch for 3.1.
>>>
>>> It is a revert (I can prepare a proper revert if you would like
>>> that instead of this patch).
>>>
>>> The users of this particular function (alloc_vm_area) are just
>>> Xen. There are no others.
>>
>> I'd prefer to put explicit vmalloc_sync_all()s in the callsites where
>> necessary, and ultimately try to work out ways of avoiding it altogether
>> (like have some hypercall wrapper which touches the arg memory to make
>> sure its mapped?).
>
> That only syncs the current pagetable though. If that is sufficient (and
> it could well be) then perhaps just doing a vmalloc_sync_one on the
> current page tables directly would be better than faulting to do it?
It's probably sufficient unless the kernel has non-voluntary preemption, and
we are not preempt_disable()d.
-- Keir
> It's the sort of thing you could hide inside the gnttab_set_map_op type
> helpers I guess?
>
> Ian.
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@...ts.xensource.com
> http://lists.xensource.com/xen-devel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists