Skip to contentSkip to conversation

How is the virt_hv_start_low used in compatible guest

DISCUSSION Jan Beulich 3 participants 3 messages Jul 9, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line

"Jiang, Yunhong" <[email protected]> 07/08/09 9:22 AM >>>

When consider the memory add situation, the size can't be adjusted, so I disable this adjustment if we support memory add, do you think it is ok?

I wouldn't welcome this - instead, the maximum range of memory ever expected to be added should be controlled by a command line option for that purpose. And even without such, instead of completely avoiding the adjustment, it should be done assuming the maximum amount a 32-bit domain would ever get to see (128Gb), which would still make the hole smaller than it is on a 32-bit hv.

Jan

#1 lore raw
Quoted 5 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line

"Jiang, Yunhong" <[email protected]> 07/08/09 9:22 AM >>>

When consider the memory add situation, the size can't be adjusted, so I disable this adjustment if we support memory add, do you think it is ok?

Quoted 7 lines

I wouldn't welcome this - instead, the maximum range of memory ever expected to be added should be controlled by a command line option for that purpose. And even without such, instead of completely avoiding the adjustment, it should be done assuming the maximum amount a 32-bit domain would ever get to see (128Gb), which would still make the hole smaller than it is on a 32-bit hv.

We agreed for now to size the hole big enough for amount of memory visible at boot time, and compat dom0 will simply be unable to be allocated dynamically added memory. It is at least not a regression of existing support for compat dom0. We can do smarter things later if someone really cares about the limitations of this scenario.

-- Keir

#2 lore raw
Quoted 23 lines · Keir Fraser
Quoted 5 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line

"Jiang, Yunhong" <[email protected]> 07/08/09 9:22 AM >>>

When consider the memory add situation, the size can't be adjusted, so I disable this adjustment if we support memory add, do you think it is ok?

Quoted 7 lines

I wouldn't welcome this - instead, the maximum range of memory ever expected to be added should be controlled by a command line option for that purpose. And even without such, instead of completely avoiding the adjustment, it should be done assuming the maximum amount a 32-bit domain would ever get to see (128Gb), which would still make the hole smaller than it is on a 32-bit hv.

We agreed for now to size the hole big enough for amount of memory visible
at boot time, and compat dom0 will simply be unable to be allocated dynamically added memory. It is at least not a regression of existing support for compat dom0. We can do smarter things later if someone really
cares about the limitations of this scenario.

Quoted 1 line

-- Keir

Yes, heere I made a mistake and Keir has pointed out.

Originally I thought dom0 will check the read-only m2p table for page that is assigned to other guest, either for foreign mapping or granting. Later Keir told me that the m2p table is only used for a domain's own pages. Then it is ok to leave the hole to contain memory that exist when booting, since page allocator has take consideration of the hole size also for compatible guest.

But I did meet dom0's bug if I didn't increase the hole size in compat dom0, so I need investigate the reason for it (originally I thought it is caused by the read-only m2p table size).

Thanks
Yunhong Jiang