[openib-general] RE: registering read-only memory

Eli Cohen eli at mellanox.co.il
Mon May 30 01:40:53 PDT 2005


OK thanks. I had another problem in MVAPI.

-----Original Message-----
From: Roland Dreier [mailto:roland at topspin.com]
Sent: Friday, May 27, 2005 7:49 PM
To: Eli Cohen
Cc: Michael S. Tsirkin; openib-general at openib.org
Subject: Re: registering read-only memory


    Eli> I saw this this on Suse 9.3 and the memory was like: static
    Eli> const char *my_string = "Hello world"; defined locally in a
    Eli> function. This produced a VMA with VM_IO set.

What kernel version/architecture?

I'm having a hard time seeing how it's possible to get a VMA with
VM_IO set except by using remap_pfn_range(), and I can't see how
ordinary const data from userspace could cause that.

 - R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050530/41ab3448/attachment.html>


More information about the general mailing list