<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: registering read-only memory</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>OK thanks. I had another problem in MVAPI.</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Roland Dreier [<A HREF="mailto:roland@topspin.com">mailto:roland@topspin.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Friday, May 27, 2005 7:49 PM</FONT>
<BR><FONT SIZE=2>To: Eli Cohen</FONT>
<BR><FONT SIZE=2>Cc: Michael S. Tsirkin; openib-general@openib.org</FONT>
<BR><FONT SIZE=2>Subject: Re: registering read-only memory</FONT>
</P>
<BR>
<P><FONT SIZE=2> Eli> I saw this this on Suse 9.3 and the memory was like: static</FONT>
<BR><FONT SIZE=2> Eli> const char *my_string = "Hello world"; defined locally in a</FONT>
<BR><FONT SIZE=2> Eli> function. This produced a VMA with VM_IO set.</FONT>
</P>
<P><FONT SIZE=2>What kernel version/architecture?</FONT>
</P>
<P><FONT SIZE=2>I'm having a hard time seeing how it's possible to get a VMA with</FONT>
<BR><FONT SIZE=2>VM_IO set except by using remap_pfn_range(), and I can't see how</FONT>
<BR><FONT SIZE=2>ordinary const data from userspace could cause that.</FONT>
</P>
<P><FONT SIZE=2> - R.</FONT>
</P>
</BODY>
</HTML>