vga acceleration for cirrus logic device model
Quoted 10 lines · Keir Fraser
Quoted 9 lines
Quoted 5 lines
allocate new l2 tables on demand.
Something like this will certainly be needed for 64-bit tables anyway, where it's infeasible to pre-allocate all l3 and l2 table entries.
I'm a bit confused on this. This mapping is for 1:1 page table, and there is only one L3 table and 4 l2 table totally even for 64 bit table.
Quoted 5 lines
Ah yes, good point.
In that case I think the code's fine as it is. I'll check it in.
-- Keir
Hmm, seems you have been persuaded by me, but I can't persuade myself after more thinking :-)
In fact, I'm not quite sure still and hope your feedback.
There may be some problem on current 1:1 page table for 64 bit guest. Considering a guest has memory more than 4G. Current implementation may cause problem on physical to machine mapping.
However, this patch works on currently 1:1 page table implementation. So how about check it in firstly, and I will provide a total solution to improve the whole thing, because I think the 4 level 1:1 page table is more complex than 3 level, we may have to provide dynamical setting, still on consideration.
Thanks
Yunhong Jiang
Quoted 9 lines · Yunhong
There may be some problem on current 1:1 page table for 64 bit guest. Considering a guest has memory more than 4G. Current implementation may cause problem on physical to machine mapping.
However, this patch works on currently 1:1 page table implementation. So how about check it in firstly, and I will provide a total solution to improve the whole thing, because I think the 4 level 1:1 page table is more complex than 3 level, we may have to provide dynamical setting, still on consideration.
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?
If it can only run with paging disabled in 16- or 32-bit mode, it can't access above 4G pseudophys anyway. :-)
-- Keir