WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] PCI MMIO issue

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] PCI MMIO issue
From: "Stephen Donnelly" <sfdonnelly@xxxxxxxxx>
Date: Tue, 20 Mar 2007 10:40:11 +1200
Delivery-date: Mon, 19 Mar 2007 15:39:10 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=OzutGW53WwPJ5f3yB9rEzj8Y0VafTIAsxmfp6k60Hx5eJnvz+vPgEEefy4emFnID9L418GHnQ5H7pTFjI8J2ISSFij1kQT0my1zz+I8tK3AA7cCNCcDG8uejf/PjqsgZwVM3KFaxZ8t3LyjnMW6V+ZgCFdmWSP9UNK60mdD3XUo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=C9cOUojU/CRTQFHLe55B3ObhP3SbaI/FrMJLcHhMy+IyjN7lJUlde5Slk8OiwqvNhm5Y+U82DgZzvbaAgK/EzOxku4BoIn1LO19VwnKnRYDcMv5adM2bktXB1fV2F3nHTgzHf/PSY5+50GmZS7XXwC+fHEViR6NQHchNFgoEd74=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I posted this to the xen-users list first, they suggested I ask here.

I understood that in a Driver Domain that has access to a (PCI) device, 'native' drivers can be used, but I am having some problems with memory mapped IO from user space.

I have a PCI device that has a 64kB mmio range at PCI_BAR_0. This address space contains the registers for the device. My Linux driver provides a char device that allows read/write/seek, and mmap for this space. In Linux you can use either read/write/seek to access the space, or memory map it via mmap and access it directly.

When using the driver in dom0 under Xen 3.0.4, the read/write/seek method works fine but the mmap does not. None of the related functions return errors, but the mmap does not appear to access the correct memory. Is there anything I am missing?

The mmap is performed by a remap_pfn_range() by the driver, and mmap() in the user space code.

I am running Ubuntu 6.10 AMD64 Server and I built Xen 3.0.4 from source, including the 2.6.16.33-xen kernel. The driver is running in dom0, no other domains are present.

Thanks,
Stephen.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>