<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 11:04 AM, Yann Droneaud <span dir="ltr">&lt;<a href="mailto:ydroneaud@opteya.com" target="_blank">ydroneaud@opteya.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
Le mardi 06 octobre 2015 à 10:46 -0400, Kenneth Adam Miller a écrit :<br>
&gt; Let me be more precise in general to the overall original question:<br>
&gt;<br>
&gt; I want a userland process that I designate to only use a specific<br>
&gt; hard coded region physical of memory for it&#39;s heap. A UIO driver is<br>
&gt; the means by which I&#39;ve gone about seeking to achieve this.<br>
&gt;<br>
<br>
</span>You want brk() and mmap(..., MAP_ANONYMOUS, ...)  to allocate pages<br>
from a contigous physical memory region.<br>
<br>
You don&#39;t give the reason for such requirement. Without a proper reason<br>
it&#39;s difficult to understand what&#39;s your trying to achieve.<br>
<br>
I can only propose you to use something like CONFIG_MMU=n, but as it&#39;s<br>
a system wide choice with multiple drawbacks, I don&#39;t think it&#39;s<br>
something you want to investigate into.<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>At our workplace, we are using separation kernel and software fault isolation technologies to trap process capabilities down to specific limitations. With these technologies, we can basically trigger the failure of a process if it tries to violate the sandbox. A process subverting the kernel doesn&#39;t make a difference because our enforcement mechanisms preside beneath even that. I can&#39;t say much else about why, but using a UIO approach is very attractive to us because we can then develop our IRM in userland, and have actual writes and operations mapped to the address they need to be. Right now that is not the case for our legacy software.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
Regards.<br>
<br>
--<br>
Yann Droneaud<br>
OPTEYA<br>
<br>
</div></div></blockquote></div><br></div></div>