[libvirt] [PATCH v2 2/6] util: Use default group's mask for unspecified resctrl allocations

Pavel Hrdina phrdina at redhat.com
Wed Jan 31 14:22:42 UTC 2018


On Wed, Jan 31, 2018 at 02:36:57PM +0100, Martin Kletzander wrote:
> Introduce virResctrlAllocCopyMasks() and use that to initially copy the default
> group schemata to the allocation before reserving any parts of the cache.  The
> reason for this is that when new group is created the schemata will have unknown
> data in it.  If there was previously group with the same CLoS ID, it will have
> the previous valies, if not it will have all bits set.  And we need to set all
> unspecified (in the XML) allocations to the same one as the default group.
> 
> Some non-Linux functions now need to be made public due to this change.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1289368
> 
> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
> ---
>  src/util/virresctrl.c | 72 +++++++++++++++++++++++++++++++++++----------------
>  1 file changed, 50 insertions(+), 22 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180131/a76d28ae/attachment-0001.sig>


More information about the libvir-list mailing list