[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] add flag to enforce hugepage backing of guest RAM



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

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]