conf: Remove virDomainResctrlAppend and introduce virDomainResctrlNew
conf: Remove virDomainResctrlAppend and introduce virDomainResctrlNew

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 <d50c218ff14e8070a7288e1c175a5d8637d7ddbf@intel.com>
Reviewed-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>

eskultety/libvirt,olafhering/libvirt,libvirt/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,zippy2/libvirt,eskultety/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,olafhering/libvirt,eskultety/libvirt,zippy2/libvirt,eskultety/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,nertpinx/libvirt,jfehlig/libvirt,andreabolognani/libvirt,libvirt/libvirt,crobinso/libvirt,crobinso/libvirt,jardasgit/libvirt,zippy2/libvirt,fabianfreyer/libvirt,olafhering/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,libvirt/libvirt,libvirt/libvirt,zippy2/libvirt,jfehlig/libvirt,crobinso/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,eskultety/libvirt,jardasgit/libvirt,jardasgit/libvirt,crobinso/libvirt,olafhering/libvirt,jfehlig/libvirt