From: Lukas Hejtmanek Subject: Re: Question regarding SLAB corruption Date: Tue, 10 Jul 2007 00:13:01 +0200 Message-ID: <20070709221301.GY3885@ics.muni.cz> References: <20070709205607.GT3885@ics.muni.cz> <20070709211437.GU3885@ics.muni.cz> <20070709214234.GW3885@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: Roland Dreier Cc: xen-devel@lists.xensource.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org On Mon, Jul 09, 2007 at 02:53:53PM -0700, Roland Dreier wrote: > > Great! With this "fix", it turns on interface ib0. Many thanks to al= l! >=20 > in domU? That is cool. Yes! I'm able to ping another machine over the IB from DomU. In Dom0, the driver works as well. (It stoped to work after swiotlb patches to the Xen= .) > Anyway I think the real fix is to switch to dma_sync_single_range in > mthca along with Keir's fixes to swiotlb. OK, I see. I would be happy to test any further patches if you are about = to do them. > Although I'm a little confused about the earlier parts of the story. > Why was it necessary to force the use of swiotlb? Shouldn't things > work by default? I guess it's because swiotlb is ON by default in Dom0. So forcing it also= in DomU makes it equivalent to Dom0. And because both domains are virtual, i= .e., the domains do not see *real* physical memory then standard memory mappin= g routines do not work. It's my guess. =20 > And is there any more intelligent way to give big chunks of system > memory to a PCI device for exclusive use? Maybe some support in Xen - a syscall that is able to map contiguous ares= but also in this case, we have problem migration and reporting physical addre= sses to the PCI device. It's similar to FTP and NAT problem. NAT basically virtualizes network but the FTP needs to pass data IP thus hooks in NAT a= re=20 needed. We would need similar hooks here or to deny sending 'virtual phys= ical' address to the devices. --=20 Luk=E1=B9 Hejtm=E1nek