Re: [PATCH 23/41] conf: Introduce virCPUDefCopyWithoutModel

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

 



On Tue, Aug 30, 2016 at 10:23:10 -0400, John Ferlan wrote:
> 
> 
> On 08/12/2016 09:33 AM, Jiri Denemark wrote:
> > Useful for copying a CPU definition without model related parts (i.e.,
> > without model name, feature list, vendor).
> > 
> > Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> > ---
> >  src/conf/cpu_conf.c      | 16 +++++++++++++++-
> >  src/conf/cpu_conf.h      |  3 +++
> >  src/libvirt_private.syms |  1 +
> >  3 files changed, 19 insertions(+), 1 deletion(-)
> > '
> 
> suggestion - how about "virCPUDefSparseCopy" ?  Especially since nothing
> that requires a VIR_STRDUP is copied (e.g. vendor, vendor_id, features).

The API copies everything but the CPU model stuff (which can be copied
separately with virCPUDefCopyModel). I think virCPUDefCopyWithoutModel
is more explicit about what it does than virCPUDefSparseCopy or
something similarly generic.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]