Re: [libvirt] [PATCH 1/6] Introduce a set of APIs for managing architectures

2012-12-18 Thread Richard W.M. Jones
On Tue, Dec 11, 2012 at 02:53:36PM +, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > Introduce a 'virArch' enum for CPU architectures. Include > data type providing wordsize and endianness, and APIs to > query this info and convert to/from enum and string form. It'd be so nice if

Re: [libvirt] [PATCH 1/6] Introduce a set of APIs for managing architectures

2012-12-18 Thread Daniel P. Berrange
On Tue, Dec 18, 2012 at 10:24:06AM +0100, Jiri Denemark wrote: > On Tue, Dec 11, 2012 at 14:53:36 +, Daniel P. Berrange wrote: > > +virArch virArchFromHost(void) > > +{ > > +struct utsname ut; > > +virArch arch; > > + > > +uname(&ut); > > + > > +/* Some special cases we need to

Re: [libvirt] [PATCH 1/6] Introduce a set of APIs for managing architectures

2012-12-18 Thread Daniel P. Berrange
On Tue, Dec 18, 2012 at 10:24:06AM +0100, Jiri Denemark wrote: > On Tue, Dec 11, 2012 at 14:53:36 +, Daniel P. Berrange wrote: > > From: "Daniel P. Berrange" > > > > Introduce a 'virArch' enum for CPU architectures. Include > > data type providing wordsize and endianness, and APIs to > > quer

Re: [libvirt] [PATCH 1/6] Introduce a set of APIs for managing architectures

2012-12-18 Thread Jiri Denemark
On Tue, Dec 11, 2012 at 14:53:36 +, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > Introduce a 'virArch' enum for CPU architectures. Include > data type providing wordsize and endianness, and APIs to > query this info and convert to/from enum and string form. ... > diff --git a/sr

Re: [libvirt] [PATCH 1/6] Introduce a set of APIs for managing architectures

2012-12-11 Thread Eric Blake
On 12/11/2012 07:53 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > Introduce a 'virArch' enum for CPU architectures. Include > data type providing wordsize and endianness, and APIs to > query this info and convert to/from enum and string form. > > Signed-off-by: Daniel P. Berrang

[libvirt] [PATCH 1/6] Introduce a set of APIs for managing architectures

2012-12-11 Thread Daniel P. Berrange
From: "Daniel P. Berrange" Introduce a 'virArch' enum for CPU architectures. Include data type providing wordsize and endianness, and APIs to query this info and convert to/from enum and string form. Signed-off-by: Daniel P. Berrange --- src/Makefile.am| 1 + src/util/virarch.c | 177 +++