From: Lukas Hejtmanek Subject: Re: Permissive devices in Xen Date: Sun, 8 Jul 2007 12:00:44 +0200 Message-ID: <20070708100044.GX3885@ics.muni.cz> References: <20070708010556.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: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sun, Jul 08, 2007 at 10:55:16AM +0100, Keir Fraser wrote: > > Why the PCI address bars are handled in very different way? And it se= ems > > that writing these bars is never committed to the real devices. Why? >=20 > domU is not trusted to manage the i/o address space. We assume dom0 has= set > up the values sanely and domU should have no reason to change them. OK, I see. But there is problem with, e.g., InfiniBand card that during initialization performs reset of the card. The reset destroys the PCI con= fig space therefore the driver reads 16 dwords from the config space and afte= r reset, it writes them back. In DomU, it obviously does not restore addres= s bars and the device fails to respond via MMIO. So, I've tried to allow DomU (via pciback driver) to write also the addre= ss=20 bars but in this case, I'm facing to huge SLAB corruptions. In Dom0 or no= n-Xen kernel, it works pretty well. Do you have any hints how to track it down? --=20 Luk=E1=B9 Hejtm=E1nek