From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNmPy-0004wD-Ec for qemu-devel@nongnu.org; Sun, 22 Sep 2013 12:22:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNmPr-0004WM-4w for qemu-devel@nongnu.org; Sun, 22 Sep 2013 12:21:54 -0400 Received: from emh01.mail.saunalahti.fi ([62.142.5.107]:41672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNmPm-0004W1-L2 for qemu-devel@nongnu.org; Sun, 22 Sep 2013 12:21:42 -0400 Date: Sun, 22 Sep 2013 19:21:40 +0300 From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Message-ID: <20130922162140.GC2924@reaktio.net> References: <656205981.20130917163339@eikelenboom.it> <20130922130245.GB2924@reaktio.net> <119503463.20130922170058@eikelenboom.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <119503463.20130922170058@eikelenboom.it> Subject: Re: [Qemu-devel] [Xen-devel] RESEND [Xen-unstable][Qemu-xen] HVM Guest reading of Expansion ROM from passthroughed PCI device returns data from emulated VGA rom List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sander Eikelenboom Cc: Anthony PERARD , xen-devel , qemu-devel@nongnu.org, Stefano Stabellini On Sun, Sep 22, 2013 at 05:00:58PM +0200, Sander Eikelenboom wrote: > > >> I'm trying to get secondary vga-passthrough on a HVM guest to work with a AMD HD6570 and the native kernel radeon driver and kernel modesetting. > >> So the guest still gets the emulated stdvga or cirrus device(used in my case here) as primary/boot vga adapter. > >> > >> - When i don't passthrough the radeon card, the linux native radeon driver loads fine. > >> - When i do passtrough the device to a HVM with the same kernel: > >> The driver in the guest tries to read the pci expansion rom from the passthroughed device to get the vbios. > >> The driver reports a successful read, but fails because it can't find the right string at the right offset. > >> > > > Did you try with qemu-dm-traditional aswell? Does it have the same problem? > > Hi Pasi, > > Yes i did and yes the same problem. > From what i recall i used to have succes with vga passthrough with a secondary vga card, but that was some time ago. > I don't know which of the components (xen, dom0 kernel, domU kernel, radeon driver, qemu has changed in such a way that it fails to work now ... > > > But in the mean time i tried to debug it further and from what i can see: > - Only the io port en mem of the pci device are mapped through the hypervisor. > - The rom is not, (a hypercall to do the memory mapping is never made) i tried several things to get it to do the mapping, but so far failt to do so. > - It seems to be a 64bit capable device, some code comments and git commit messages seem to suggest that there were/are some problems with that (in the way the involved components interact) > Yeah, there has been some patches related to that, and I think still some open bugs.. Btw did you try with Xen 4.3? Or 4.2? -- Pasi