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] mmap in PV xen-4.0.1

To: Ranjith Ravi <ranjith.ravi@xxxxxxxxx>
Subject: Re: [Xen-devel] mmap in PV xen-4.0.1
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Tue, 16 Aug 2011 22:20:20 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Eric Camachat <eric.camachat@xxxxxxxxx>, Wei Liu <liuw@xxxxxxxxx>
Delivery-date: Tue, 16 Aug 2011 19:21:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAEFf3tK+f4eSsjSGcsxhpFrhrqDk8PEG2TFthcNXfcNDqCk3nA@xxxxxxxxxxxxxx>
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: <20110810192546.GA2875@xxxxxxxxxxxx> <CACeEFf5B08guZ2XNKGcuUSP-W=NiqMHxT3o0ghi5ky7QJOeRKg@xxxxxxxxxxxxxx> <20110811013104.GB1889@limbo> <CACeEFf72bXGhgb=O9U-eavV7yqBNAepx_EZ+Lp5nPFa7KK_zeQ@xxxxxxxxxxxxxx> <CACeEFf7X1cCwPxDfaCGuUGF0qTnrBO_jnMa_UNd_Ni2=AosAoA@xxxxxxxxxxxxxx> <20110812042608.GA2760@limbo> <CACeEFf69kcwe4mg1LH3iDzcmLPjCDgK83-5eFRW7Ccbi1p9zww@xxxxxxxxxxxxxx> <CAEFf3t+j2JY-S3dMVdAqGnWNYFgaAq1vc7HigX=XN7AcCR_VAA@xxxxxxxxxxxxxx> <20110816050608.GB27908@xxxxxxxxxxxx> <CAEFf3tK+f4eSsjSGcsxhpFrhrqDk8PEG2TFthcNXfcNDqCk3nA@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
On Tue, Aug 16, 2011 at 11:27:03AM -0700, Ranjith Ravi wrote:
> On Mon, Aug 15, 2011 at 10:06 PM, Konrad Rzeszutek Wilk <
> konrad.wilk@xxxxxxxxxx> wrote:
> 
> > On Mon, Aug 15, 2011 at 08:13:37PM -0700, Ranjith Ravi wrote:
> > > > Looking into the kernel source, a check in range_is_allowed failed so
> > > > I just can't map /dev/mem with specified range (-EPERM).
> > >
> > >  mmap() and read access  works on 2.6.37.6
> > > ( dom0 - fc13 xen 4.0.2)
> > > Tried it after disabling 'CONFIG_STRICT_DEVMEM' in kernel config.
> >
> > So it did not work with CONFIG_STRICT_DEVMEM=y?
> >
> >
> mmap() returns failure with CONFIG_STRICT_DEVMEM=y
> 
>  >
> > > Can someone point out the changes/patches in 2.6.37.6 which fixes mmap()
> > > problem ?
> >
> > Um, so 2.6.37 did not work?
> > >
> >
> 
> mmap()/read access worked on 2.6.37.6
> Would like to try the same changes on 2.6.32 (Debian 6.0-pvops)
> if some one can point the changes/patches.

No idea. Looking at the changelog of 2.6.37 nothing really strikes
me as having fixed this.

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

<Prev in Thread] Current Thread [Next in Thread>