From: Lukas Hejtmanek Subject: Re: Question regarding SLAB corruption Date: Mon, 9 Jul 2007 20:37:45 +0200 Message-ID: <20070709183745.GR3885@ics.muni.cz> References: <20070709174226.GQ3885@ics.muni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Roland Dreier , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Jul 09, 2007 at 07:29:59PM +0100, Keir Fraser wrote: > Oh! I take it then that the infiniband driver will call sync_single() o= n > subsections of a mapped region? I haven't seen that behaviour before an= d it > will kill lib/swiotlb.c (the generic Linux swiotlb implementation) just= as > surely as it does the Xen-specific swiotlb! >=20 > We could make the swiotlb robust to this treatment, I guess. It will in= volve > initialising all covered io_tlb_orig_addr[] slots rather than just the > first. You could even have a go at this yourself if you like: rather th= an > initialising a single slot at the end of map_single(), you'd have a for= -loop > to iterate over each allocated swiotlb slab. Is there a reason why this is not an issue in Dom0? --=20 Luk=E1=B9 Hejtm=E1nek