|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] [RESEND] Question about recursive mappings
> About the possible fix, won't something like trying a
> get_linear_pagetable() at all level works? Will it cause too
> much overhead?
> Generally speaking, is allowing a R/O mapping of another
> table the domain own (whichever level it is) safe? At first
> thought, i don't see any way of exploiting it.
Yes, it's safe, you just need to get the 'general' ref count right,
which as I recall, depends on whether the page you're mapping is in the
same page table, or a foreign page table. The va back pointer means that
there is a unique 'normal' place in each pagetable where a given page
can be mapped, so you can easily inspect (via xen's linear mapping) to
see whether the page belongs to the current pagetable or not.
One thing we do have to watch out for is when we introduce super page
mappings, as you have to be careful about using linear page tables in
this context -- the x86 pagetable format doesn't allow you to generate a
trap if a linear mapping attempts to misuse a superpage. That's not your
worry right now :-)
Ian
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|