Skip to contentSkip to conversation

vga acceleration for cirrus logic device model

PATCH Jiang, Yunhong 2 participants 2 messages Sep 23, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Keir Fraser

Depends what the 1:1 page table is used for (it's also supposed to be the phys-to-machine table, isn't it?). If we ignore that latter use (I think it can be worked out later) then we are okay so long as the guest can never run in 64-bit mode with paging disabled. IIRC that is not a valid execution mode?

I think 1:1 page table is used for both paging disabled running AND physical-to-machine table, so agree that if we ignore the physical-to-machine table, it is ok with current 1:1 page table implementaion, but just as you said, we need work out later for phys-to-machine mapping.

Thanks
Yunhong Jiang

Quoted 5 lines

If it can only run with paging disabled in 16- or 32-bit mode, it can't access above 4G pseudophys anyway. :-)

-- Keir

#1 lore raw
Quoted 5 lines · Yunhong

I think 1:1 page table is used for both paging disabled running AND physical-to-machine table, so agree that if we ignore the physical-to-machine table, it is ok with current 1:1 page table implementaion, but just as you said, we need work out later for phys-to-machine mapping.

Currently that works by mapping the 1:1 top-level page directory as a second-level page directory in the monitor pagetables. Obviously that doesn't work if the monitor is using 64-bit pagetables and the 1:1 tables are in 32-bit pae mode. :-) This cannot be solved by using 64-bit 1:1 pagetables though (e.g., in that mode we cannot use vm86 mode).

I think the correct approach will be to create extra page directories in the monitor pagetables to map all the 1:1 l1's, plus extra l1's that map pseudophys memory above 4GB.

In summary, you were correct in the first place. :-)

-- Keir