]> xenbits.xensource.com Git - libvirt.git/commitdiff
testutilsqemu: Drop fake capability testing infrastructure for 'ppc64'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 8 Mar 2023 21:46:27 +0000 (22:46 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Apr 2023 07:19:07 +0000 (09:19 +0200)
Now that all tests were converted to use real capabilities we don't need
it any more. Remove it so that no new tests are added with it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/testutilsqemu.c

index 0d7892353c1c520bf8a1243634a021687ece32e4..bd3de1e786340409c936818660c3424ef0e11e26 100644 (file)
@@ -30,14 +30,9 @@ static const char *qemu_emulators[VIR_ARCH_LAST] = {
     [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
 };
@@ -48,9 +43,6 @@ static const char *const x86_64_machines[] = {
 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
 };
@@ -59,7 +51,6 @@ static const char *const *qemu_machines[VIR_ARCH_LAST] = {
     [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,
 };
 
@@ -67,7 +58,6 @@ static const char *qemu_default_ram_id[VIR_ARCH_LAST] = {
     [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",
 };
 
@@ -164,9 +154,6 @@ testQemuAddGuest(virCaps *caps,
     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;
 
@@ -412,9 +399,6 @@ qemuTestCapsCacheInsert(virFileCache *cache,
             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)) {