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.
Signed-off-by: Harsh Prateek Bora <hars...@linux.ibm.com> --- hw/ppc/spapr_caps.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/hw/ppc/spapr_caps.c b/hw/ppc/spapr_caps.c index d643591e25..0d62c11195 100644 --- a/hw/ppc/spapr_caps.c +++ b/hw/ppc/spapr_caps.c @@ -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; } -- 2.49.0