On 11/12/18 8:31 AM, Wang Huaqiang wrote: > Introduced virDomainResctrlNew to do the most part of virDomainResctrlAppend > and move the operation of appending resctrl to @def->resctrls out of > function. > > Rather than rely on virDomainResctrlAppend to perform the allocation, move > the onus to the caller and make use of virBitmapNewCopy for @vcpus and > virObjectRef for @alloc, thus removing the need to set each to NULL after the > call. > > Signed-off-by: Wang Huaqiang <huaqiang.w...@intel.com> > --- > src/conf/domain_conf.c | 56 > +++++++++++++++++++++++++++++--------------------- > 1 file changed, 33 insertions(+), 23 deletions(-) > Reviewed-by: John Ferlan <jfer...@redhat.com> John -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
- [libvirt] [PATCHv8 05/17] util: Refactor code for adding PI... Wang Huaqiang
- [libvirt] [PATCHv8 04/17] util: Add interface to determine ... Wang Huaqiang
- [libvirt] [PATCHv8 07/17] util: Refactor code for creating ... Wang Huaqiang
- [libvirt] [PATCHv8 01/17] docs, util: Refactor schemas and ... Wang Huaqiang
- [libvirt] [PATCHv8 14/17] qemu: enable resctrl monitor in q... Wang Huaqiang
- [libvirt] [PATCHv8 12/17] conf: Remove virDomainResctrlAppe... Wang Huaqiang
- Re: [libvirt] [PATCHv8 12/17] conf: Remove virDomainRe... John Ferlan
- [libvirt] [PATCHv8 16/17] qemu: Report cache occupancy (CMT... Wang Huaqiang
- Re: [libvirt] [PATCHv8 16/17] qemu: Report cache occup... John Ferlan
- Re: [libvirt] [PATCHv8 16/17] qemu: Report cache o... Wang, Huaqiang
- Re: [libvirt] [PATCHv8 16/17] qemu: Report cache occup... John Ferlan
- Re: [libvirt] [PATCHv8 16/17] qemu: Report cache o... Wang, Huaqiang
- Re: [libvirt] [PATCHv8 16/17] qemu: Report cac... Wang, Huaqiang
- [libvirt] [PATCHv8 15/17] qemu: Refactor qemuDomainGetStats... Wang Huaqiang