Re: [PATCH 02/24] conf: Move NUMA cell parsing code from cpu conf to numa conf

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

 



On Thu, Feb 19, 2015 at 16:12:28 -0500, John Ferlan wrote:
> 
> 
> On 02/16/2015 01:51 PM, Peter Krempa wrote:
> > For weird historical reasons NUMA cells are added as a subelement of
> > <cpu> while the actual configuration is done in <numatune>.
> > 
> > This patch splits out the cell parser code from cpu config to NUMA
> > config. Note that the changes to the code are minimal just to make it
> > work and the function will be refactored in the next patch.
> > ---
> >  src/conf/cpu_conf.c    |  90 ---------------------------------------
> >  src/conf/domain_conf.c |  17 +++++---
> >  src/conf/numa_conf.c   | 111 +++++++++++++++++++++++++++++++++++++++++++++++++
> >  src/conf/numa_conf.h   |   4 ++
> >  4 files changed, 126 insertions(+), 96 deletions(-)
> > 

...

> > +                VIR_FREE(memAccessStr);
> > +            }
> > +        }
> > +    }
> > +
> > +    ret = 0;
> > +
> > + error:
> > + cleanup:
> 
> Although this is mostly a cut'n'paste, why not just change the one "goto
> cleanup;" to goto error and then not have two labels?

I wanted to separate cleanup/refactor from the move :)

> 
> 
> ACK - since I'm sure you'll do the right thing...
> 
> John

Peter

Attachment: signature.asc
Description: Digital signature

--
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]