linux/i386: variable hypervisor hole not really variable?
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Keir Fraser <[email protected]> 10.11.06 15:59 >>>
Quoted 3 lines · Jan Beulich
Quoted 2 lines
So long as you make the hole *smaller* there's obviously no need for a compat flag.
Quoted 7 lines
Quoted 4 lines
I'm not sure I understand you reasoning here. I do make the hole smaller (i.e. move the beginning up), and the kernel dies miserably with that. With that observation I surely think a flag is needed, as otherwise no older kernels will ever be able to boot on a hv with a respective change.
Ah yes, the page fault handler looks at
HYPERVISOR_VIRT_START. Ah well. So yes, a capability flag is needed.
More importantly, the early page table setup also depends on this (as it needs to avoid trying to change the Xen mappings). This is where it crashes right away.
Quoted 4 lines
This doesn't stop you relocating the m2p table though -- you can do that regardless. You'll just have to lie about
hypervisor_virt_startunless the guest exports this new capability. So at least you don't have to vary the m2p start address across different guests.
Relocating the m2p table makes sense only if I can move the hv base address as well - otherwise I win nothing, as it's the first thing in the address map anyway. The only thing that I get for free here is that I don't have to limit memory to 16Gb when allowing compatibility mode guests, I can rather set the limit at 166Gb.
Jan
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Keir Fraser <[email protected]> 10.11.06 16:09 >>>
Quoted 5 lines · Jan Beulich
Quoted 4 lines
This doesn't stop you relocating the m2p table though -- you can do that regardless. You'll just have to lie about
hypervisor_virt_startunless the guest exports this new capability. So at least you don't have to vary the m2p start address across different guests.
Quoted 8 lines
Quoted 5 lines
Relocating the m2p table makes sense only if I can move the hv base address as well - otherwise I win nothing, as it's the first thing in the address map anyway. The only thing that I get for free here is that I don't have to limit memory to 16Gb when allowing compatibility mode guests, I can rather set the limit at 166Gb.
I'd do that anyway, if we had that amount of memory in the machine. Nicer than limiting guests to a range of the machine address space.
Sure, I want both - if the system has (and today it typically will have) less than 166Gb, then I want to move the boundary up (to allow the guest to have more lowmem). Otherwise I'll keep it at its original place.
Jan