From: Harsh Prateek Bora <harshpb@linux.ibm.com>
To: qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Cc: npiggin@gmail.com, danielhb413@gmail.com, clg@kaod.org
Subject: [PATCH] ppc/spapr: remove dead logic for non-existent machine type
Date: Mon, 16 Jun 2025 05:52:08 -0400 [thread overview]
Message-ID: <20250616095208.241834-1-harshpb@linux.ibm.com> (raw)
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
reply other threads:[~2025-06-16 9:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250616095208.241834-1-harshpb@linux.ibm.com \
--to=harshpb@linux.ibm.com \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=npiggin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).