Skip to contentSkip to conversation

ppc/spapr: remove dead logic for non-existent machine type

PATCH New Harsh Prateek Bora 1 participant 1 message Jun 16, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc/spapr: remove dead logic for non-existent machine type

This logic was kept here to support pseries-2.12 and older machine type to enable them to calculate supported page size. Since the support for such older machine types is already removed, this becomes dead code and hence removed.

---
 hw/ppc/spapr_caps.c | 13 -------------
 1 file changed, 13 deletions(-)
hw/ppc/spapr_caps.c +0 -13
index d643591e25..0d62c11195 100644
@@ -901,19 +901,6 @@ static SpaprCapabilities default_caps_with_cpu(SpaprMachineState *spapr,
         caps.caps[SPAPR_CAP_IBS] = SPAPR_CAP_BROKEN;
     }
 
-    /* This is for pseries-2.12 and older */
-    if (smc->default_caps.caps[SPAPR_CAP_HPT_MAXPAGESIZE] == 0) {
-        uint8_t mps;
-
-        if (kvmppc_hpt_needs_host_contiguous_pages()) {
-            mps = ctz64(qemu_minrampagesize());
-        } else {
-            mps = 34; /* allow everything up to 16GiB, i.e. everything */
-        }
-
-        caps.caps[SPAPR_CAP_HPT_MAXPAGESIZE] = mps;
-    }
-
     return caps;
 }
 
Signature · 1 line
2.49.0