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

Re: [Xen-devel] Kernel Oops when reading kernel_page_tables debugfs file

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Kernel Oops when reading kernel_page_tables debugfs file
From: Vivien Bernet-Rollande <vbernetr@xxxxxxxxx>
Date: Tue, 30 Nov 2010 10:34:07 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 30 Nov 2010 02:51:40 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=594+wz3EGLMmc9CLx4uwM05oyrFk0LvW4Dbw5D1Ug6Q=; b=aPGKfM/Oz2zsVPxmKgKaScRBwrev5qtpufHXLMYv/ha+fCMh6bBLevJBOsRClthLg7 2Lf7IBc5AgZp0azXnWV/9FzLEuyEw86plo/Wo9weZoVr5zSejXOOedf/X0K4z9J0G3ja FO86LS9DWtwdbigPCyldc8I31s399HWTIl1Fs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=jPdIcLgLKRVoCQLITVJYFrVewbUjWvKRwgcdHk96HpLHVcfnNEIaQLXfVjmQXzTYLK ver7gPozr1Y5nsriAktfiZUHL6drn6seMzkAIWGmXu/mylC3qpKJlOnYiyHLQYAuRX6m BSSdE9QQKdM/U6vFwISECWOGs0EW/D9qGDtuU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20101129152025.GA19646@xxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTik_vGN8EkXFCpb1HuE-7m436Kxsbk5aT49LkMFc@xxxxxxxxxxxxxx> <20101129152025.GA19646@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, Nov 29, 2010 at 4:20 PM, Konrad Rzeszutek Wilk
<konrad.wilk@xxxxxxxxxx> wrote:
> On Wed, Nov 24, 2010 at 05:07:49PM +0100, Vivien Bernet-Rollande wrote:
>> Hi list.
>> I'm  currently trying to get a device driver to work on Xen dom0. The driver
>> maps PCI space to userland, and for some reason I have yet to figure, it
>> doesn't work.
>
> Did you set VM_IO on your mapping?
>

The driver doesn't set the VM_IO flag itself. However, it calls
io_remap_pfn_range(), which is a macro wrapper around
remap_pfn_range(). The later does :
vma->vm_flags |= VM_IO | VM_RESERVED | VM_PFNMAP;

So the VM_IO flag is set. I actually corrected the bug by adding the
_PAGE_IOMAP flag in the vma->vm_pgprot.

Shouldn't remap_pfn_range() set that flag if VM_IO is set ?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel