Skip to contentSkip to conversation

Pinning L1 page table with wrpt

DISCUSSION Jacob Gorm Hansen 2 participants 4 messages Aug 15, 2005

lore
Share & tools
lore
#0 lore raw

hi,

it seems I no longer need to pin l1 pages when running with writable page tables in xen-unstable -- e.g. I can now pin a l2 table without having pinned its l1 descendants first, without Xen complaining. Do I understand things correctly?

thanks,
Jacob

#1 lore raw
Quoted 4 lines · Jacob Gorm Hansen

it seems I no longer need to pin l1 pages when running with writable page tables in xen-unstable -- e.g. I can now pin a l2 table without having pinned its l1 descendants first, without Xen complaining. Do I understand things correctly?

Yes you do.

-- Keir

#2 lore raw
Quoted 10 lines · Keir Fraser
Quoted 4 lines · Jacob Gorm Hansen

it seems I no longer need to pin l1 pages when running with writable page tables in xen-unstable -- e.g. I can now pin a l2 table without having pinned its l1 descendants first, without Xen complaining. Do I understand things correctly?

Yes you do.

And then Xen will pin them for me recursively, or they will not be pinned at all but just checked against having writable references? I seem to have a problem when combining writable pagetables and the traditional pinned ones in the same domain. The pagetables I inherit from the domain builder need to be unpinned before I can use the pages they reference for my own page tables, or I get complaints about trying to create a writable linear p.t.

thanks,
Jacob

#3 lore raw
Quoted 7 lines · Jacob Gorm Hansen

And then Xen will pin them for me recursively, or they will not be pinned at all but just checked against having writable references? I seem to have a problem when combining writable pagetables and the traditional pinned ones in the same domain. The pagetables I inherit from the domain builder need to be unpinned before I can use the pages they reference for my own page tables, or I get complaints about trying to create a writable linear p.t.

Xen will infer their type when you pin the L2. At that point, they behave exactly the same as a pinned L1, until they are detached from the pinned L2 or the L2 itself is unpinned.

We play games with the initial p.t. in linux 2.6 as well. The code in arch/xen/i386/mm/init.c might be worth looking at, although it's pretty twisted stuff!

-- Keir