Re: [libvirt] [PATCH 3/6] virDomainFormatSchedDef: factor out subset code

2016-11-10 Thread Martin Kletzander
On Mon, Nov 07, 2016 at 10:01:14AM +0100, Martin Polednik wrote: The code within the function is too specific for priority attribute of RT schedulers. To allow addition of schedulers that group by different properties, we factor out the logic to calculate cpu subset. Instead of comparing by

[libvirt] [PATCH 3/6] virDomainFormatSchedDef: factor out subset code

2016-11-07 Thread Martin Polednik
The code within the function is too specific for priority attribute of RT schedulers. To allow addition of schedulers that group by different properties, we factor out the logic to calculate cpu subset. Instead of comparing by priority, the new code accepts comparator for the 2 sched structs. ---