On Thu, Aug 8, 2013 at 8:07 AM, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote: > From: "Daniel P. Berrange" <berrange@xxxxxxxxxx> > > The recent patch series proposing the addition of PPC little endian > arch support to Linux defines new arch names 'ppcle' and 'ppc64le': > > https://lists.ozlabs.org/pipermail/linuxppc-dev/2013-August/109908.html > > This just makes libvirt know about these arch names, so it doesn't > immediately trip up if it seems these new names from uname. > > Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> > --- > src/util/virarch.c | 7 +++++-- > src/util/virarch.h | 7 +++++-- > 2 files changed, 10 insertions(+), 4 deletions(-) > > diff --git a/src/util/virarch.c b/src/util/virarch.c > index 81558e5..815ad29 100644 > --- a/src/util/virarch.c > +++ b/src/util/virarch.c > @@ -55,18 +55,21 @@ static const struct virArchData { > { "parisc", 32, VIR_ARCH_BIG_ENDIAN }, > { "parisc64", 64, VIR_ARCH_BIG_ENDIAN }, > { "ppc", 32, VIR_ARCH_BIG_ENDIAN }, > + { "ppcle", 32, VIR_ARCH_LITTLE_ENDIAN }, > { "ppc64", 64, VIR_ARCH_BIG_ENDIAN }, > - { "ppcemb", 32, VIR_ARCH_BIG_ENDIAN }, > > + { "ppc64le", 64, VIR_ARCH_LITTLE_ENDIAN }, > + { "ppcemb", 32, VIR_ARCH_BIG_ENDIAN }, > { "s390", 32, VIR_ARCH_BIG_ENDIAN }, > { "s390x", 64, VIR_ARCH_BIG_ENDIAN }, > { "sh4", 32, VIR_ARCH_LITTLE_ENDIAN }, > + > { "sh4eb", 64, VIR_ARCH_BIG_ENDIAN }, > { "sparc", 32, VIR_ARCH_BIG_ENDIAN }, > - > { "sparc64", 64, VIR_ARCH_BIG_ENDIAN }, > { "unicore32", 32, VIR_ARCH_LITTLE_ENDIAN }, > { "x86_64", 64, VIR_ARCH_LITTLE_ENDIAN }, > + > { "xtensa", 32, VIR_ARCH_LITTLE_ENDIAN }, > { "xtensaeb", 32, VIR_ARCH_BIG_ENDIAN }, > }; > diff --git a/src/util/virarch.h b/src/util/virarch.h > index 0d8ae25..c64012d 100644 > --- a/src/util/virarch.h > +++ b/src/util/virarch.h > @@ -47,18 +47,21 @@ typedef enum { > VIR_ARCH_PARISC, /* PA-Risc 32 BE http://en.wikipedia.org/wiki/PA-RISC */ > VIR_ARCH_PARISC64, /* PA-Risc 64 BE http://en.wikipedia.org/wiki/PA-RISC */ > VIR_ARCH_PPC, /* PowerPC 32 BE http://en.wikipedia.org/wiki/PowerPC */ > + VIR_ARCH_PPCLE, /* PowerPC 32 LE http://en.wikipedia.org/wiki/PowerPC */ > VIR_ARCH_PPC64, /* PowerPC 64 BE http://en.wikipedia.org/wiki/PowerPC */ > - VIR_ARCH_PPCEMB, /* PowerPC 32 BE http://en.wikipedia.org/wiki/PowerPC */ > > + VIR_ARCH_PPC64LE, /* PowerPC 64 LE http://en.wikipedia.org/wiki/PowerPC */ > + VIR_ARCH_PPCEMB, /* PowerPC 32 BE http://en.wikipedia.org/wiki/PowerPC */ > VIR_ARCH_S390, /* S390 32 BE http://en.wikipedia.org/wiki/S390 */ > VIR_ARCH_S390X, /* S390 64 BE http://en.wikipedia.org/wiki/S390x */ > VIR_ARCH_SH4, /* SuperH4 32 LE http://en.wikipedia.org/wiki/SuperH */ > + > VIR_ARCH_SH4EB, /* SuperH4 32 BE http://en.wikipedia.org/wiki/SuperH */ > VIR_ARCH_SPARC, /* Sparc 32 BE http://en.wikipedia.org/wiki/Sparc */ > - > VIR_ARCH_SPARC64, /* Sparc 64 BE http://en.wikipedia.org/wiki/Sparc */ > VIR_ARCH_UNICORE32, /* UniCore 32 LE http://en.wikipedia.org/wiki/Unicore*/ > VIR_ARCH_X86_64, /* x86 64 LE http://en.wikipedia.org/wiki/X86 */ > + > VIR_ARCH_XTENSA, /* XTensa 32 LE http://en.wikipedia.org/wiki/Xtensa#Processor_Cores */ > VIR_ARCH_XTENSAEB, /* XTensa 32 BE http://en.wikipedia.org/wiki/Xtensa#Processor_Cores */ > > -- > 1.8.3.1 ACK. Easy mechanical change. -- Doug Goldstein -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list