x86/shadow: adjust minimum allocation calculations
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 13 lines · Jan Beulich
A previously bad situation has become worse with the early setting of ->max_vcpus: The value returned by
shadow_min_acceptable_pages()has further grown, and hence now holds back even more memory from use for the p2m.Make
sh_min_allocation()account for all p2m memory needed forshadow_enable()to succeed during domain creation (at which point the domain has no memory at all allocated to it yet, and hence use ofd->tot_pagesis meaningless).Also make
shadow_min_acceptable_pages()no longer needlessly add 1 to the vCPU count.
Quoted 6 lines
Finally make the debugging
printk()inshadow_alloc_p2m_page()a little more useful by logging some of the relevant domain settings.Reported-by Roger Pau Monné <[email protected]>Signed-off-by Jan Beulich <[email protected]>Reviewed-by Roger Pau Monné <[email protected]>
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel