On Tue, Feb 04, 2014 at 05:10:13PM +0000, Daniel P. Berrange wrote:
> Because there is no guarantee with -mem-prealloc. For instance,
if the
> hugepage path is not actually hugetlbfs backed, QEMU falls back to
> malloc().
Well if you can't fix -mem-prealloc to properly report errors for reasons
of back compat, then it is certainly possible to add a further 'strict=yes|no'
option to the CLI arg request that it verify this. I don't see any reason
why this checking code should be in libvirt rather than QEMU.
Regards,
Daniel
OK, do you want the StrictHugepage element to exist, and default
libvirt behaviour to remain as it is today (fallback to malloc),
or
do you want libvirt to pass strict mode to -mem-prealloc as default
when using hugepages element? (which would change behaviour of libvirt
for existing guests)