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-users

[Xen-users] PCI MMIO?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] PCI MMIO?
From: "Stephen Donnelly" <sfdonnelly@xxxxxxxxx>
Date: Fri, 16 Mar 2007 09:40:59 +1300
Delivery-date: Thu, 15 Mar 2007 13:40:06 -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=Z/tcVUZ+Zqn89ldCNvq15baOIpq3SIZg34bXJ5/S4iH5+mZh19Q75qaMxBDYcTfF8VJaS/Jac6h1cWk8vP6pvSGl2BWJZPUeZ9drKV9om+XNK0hzKOp4nAndmDWpyYKOwGueEaHolCVfGXjRqxapcvPIaEX/F3Pt3bPTs87ifKg=
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=Ck2iCnk248JW6xTGfpNxn+KdQBXo4tc8orVwkgQFyp/oA1X/0INa+Jlg4L9NOVwCLgzZrx8KbtDFReyFaRhrSZpFvT3HVcvxuJ1K/gRFz2qhfB6HjuMEpQMESCZSmCbpzmMzI8Ghqv/ZjCxCNGs9ry3hkr/1zg+nPpD6nZctXtU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Not sure if this should go to users or devel, but I'll try here first.

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 space contains the registers for the device. The 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-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>