[libvirt] [PATCH] add flag to enforce hugepage backing of guest RAM
Eric Blake
eblake at redhat.com
Tue Feb 4 22:04:11 UTC 2014
On 02/04/2014 02:57 PM, Marcelo Tosatti wrote:
>
>> So perhaps we do need some "policy" attribute on the <hugepages/>
>> element to indicate desired behaviour here.
>
> What about the following new element under <hugepages/> ?
>
> enforce_hugepage_size=integer
Which feels a bit redundant (we're already under the <hugepages>
element, after all). Maybe:
<hugepages>
<size strict='yes' unit='G'>1</size>
</hugepages>
where strict could be no if we are giving a hint but don't care if the
hint cannot be honored (default yes if omitted), and where unit + value
allows the user to input the size in a sensible unit (on output, we'd
probably want to use unit='k' and spell out 1048576, for similarity with
all our other memory interfaces that output in k for back-compat reasons).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140204/365d9381/attachment-0001.sig>
More information about the libvir-list
mailing list