Add support for PowerPC Little Endian (ppc64le) architecture.

This enables virt-install to create VMs based on ppc64le architecture.

(crobinso: fix minor pylint)

Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com>
This commit is contained in:
Prerna Saxena 2015-01-05 07:46:18 +05:30 committed by Cole Robinson
parent 22b338a65a
commit 232507b4e9
3 changed files with 3 additions and 3 deletions

View File

@ -395,7 +395,7 @@ class Domain(object):
if not conn.is_test() and not conn.is_qemu():
return None
if capsguest.arch == "ppc64" and "pseries" in self.machines:
if capsguest.arch in ["ppc64", "ppc64le"] and "pseries" in self.machines:
return "pseries"
if capsguest.arch in ["armv7l", "aarch64"]:
if "virt" in self.machines:

View File

@ -614,7 +614,7 @@ class Guest(XMLBuilder):
return
if self.os.is_container():
return
if self.os.arch not in ["x86_64", "i686", "ppc64", "ia64"]:
if self.os.arch not in ["x86_64", "i686", "ppc64", "ppc64le", "ia64"]:
return
self.add_device(VirtualGraphics(self.conn))

View File

@ -63,7 +63,7 @@ class OSXML(XMLBuilder):
return self.is_arm() and self.machine == "virt"
def is_ppc64(self):
return self.arch == "ppc64"
return self.arch == "ppc64" or self.arch == "ppc64le"
def is_pseries(self):
return self.is_ppc64 and self.machine == "pseries"