Thread (6 messages) 6 messages, 3 authors, 2011-08-07

Reserve physical page

From: Prateek Sharma <hidden>
Date: 2011-08-07 16:21:18

On Sun, Aug 7, 2011 at 9:27 PM, Vladimir Murzin [off-list ref] wrote:
On Sat, Aug 6, 2011 at 11:36 AM, Prateek Sharma [off-list ref]
wrote:
quoted
Hello everyone,
   I am wondering whether it is possible to reserve a particular physical
page in the kernel.
The GFP pages can start from _any_ location, and i cannot find a way to
specify a starting pfn.
I need a few dozen pages to store a bitmap starting at a particular
physical
quoted
page frame number.
   Perhaps i am trying to do this wrong? I am trying to establish a
(one-way) communication between KVM and a guest VM, by assuming that if
KVM
quoted
knows the physical address in the VM , it can access that bitmap.

  Thanks !

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Prateek!

I'm not completely sure, but why don't you hide needed page from
kernel? I mean, you can provide kernel with memory layout
configuration through mem= boot option. You can, for instance, use
mem=32768K at 0K,mem=32764K at 32772K, i.e. you tell to kernel  there is a
gap (starting at 32768K from 0x0 in 4K size) in memory layout. Later,
you can use this gap via ioremap call.
This looks like it will work. Thank you!
I will try this and report how this little experiment went.

Thanks again,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110807/2b60c1a5/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help