From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: PCI-passthrough for 32 bit guests and high MMIO addresses Date: Fri, 21 Nov 2014 14:45:19 +0000 Message-ID: <546F4FFF.1080101@citrix.com> References: <546F4E86.8060801@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <546F4E86.8060801@suse.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Juergen Gross , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 21/11/14 14:39, Juergen Gross wrote: > Hi, > > again a fallout from my "linear p2m list" tests: > > Trying to do PCI-passthrough with a 32-bit pv-domain I passed the > wrong device to the domain. The MMIO address was too large for a > MFN of a 32-bit system (it was 380003200000-3800036fffff). > > Instead of rejecting the operation Xen tried to perform it resulting > in a (quite understandable) failure in the domU. > > I think either the hypervisor or the tools should refuse to do > PCI-passthrough in this case. > What actually goes wrong? Does the 32bit guest truncate the MMIO region to 44 bits and try to map that? I would completely agree that something (libxl?) should refuse this attempt to do passthrough, but I think pci-front should also kick up a fuss if it is able to detect this error. ~Andrew