* [PATCH] ppc/spapr: remove dead logic for non-existent machine type
@ 2025-06-16 9:52 Harsh Prateek Bora
0 siblings, 0 replies; only message in thread
From: Harsh Prateek Bora @ 2025-06-16 9:52 UTC (permalink / raw)
To: qemu-ppc, qemu-devel; +Cc: npiggin, danielhb413, clg
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 <harshpb@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-16 9:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-16 9:52 [PATCH] ppc/spapr: remove dead logic for non-existent machine type Harsh Prateek Bora
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).