[VIR_ARCH_I686] = "/usr/bin/qemu-system-i386",
[VIR_ARCH_X86_64] = "/usr/bin/qemu-system-x86_64",
[VIR_ARCH_AARCH64] = "/usr/bin/qemu-system-aarch64",
- [VIR_ARCH_PPC64] = "/usr/bin/qemu-system-ppc64",
[VIR_ARCH_S390X] = "/usr/bin/qemu-system-s390x",
};
-static const virArch arch_alias[VIR_ARCH_LAST] = {
- [VIR_ARCH_PPC64LE] = VIR_ARCH_PPC64,
-};
-
static const char *const i386_machines[] = {
"pc", NULL
};
static const char *const aarch64_machines[] = {
"virt", "virt-2.6", "versatilepb", NULL
};
-static const char *const ppc64_machines[] = {
- "pseries", NULL
-};
static const char *const s390x_machines[] = {
"s390-ccw-virtio", NULL
};
[VIR_ARCH_I686] = i386_machines,
[VIR_ARCH_X86_64] = x86_64_machines,
[VIR_ARCH_AARCH64] = aarch64_machines,
- [VIR_ARCH_PPC64] = ppc64_machines,
[VIR_ARCH_S390X] = s390x_machines,
};
[VIR_ARCH_I686] = "pc.ram",
[VIR_ARCH_X86_64] = "pc.ram",
[VIR_ARCH_AARCH64] = "mach-virt.ram",
- [VIR_ARCH_PPC64] = "ppc_spapr.ram",
[VIR_ARCH_S390X] = "s390.ram",
};
virCapsGuest *guest;
virArch emu_arch = arch;
- if (arch_alias[arch] != VIR_ARCH_NONE)
- emu_arch = arch_alias[arch];
-
if (qemu_emulators[emu_arch] == NULL)
return 0;
g_autoptr(virQEMUCaps) copyCaps = NULL;
virQEMUCaps *effCaps = caps;
- if (arch_alias[arch] != VIR_ARCH_NONE)
- arch = arch_alias[arch];
-
if (qemu_emulators[arch]) {
/* if we are dealing with fake caps we need to populate machine types */
if (!virQEMUCapsHasMachines(caps)) {