From: David Gibson <david@gibson.dropbear.id.au>
To: Thomas Huth <thuth@redhat.com>
Cc: "Michael Tokarev" <mjt@tls.msk.ru>,
"QEMU Development" <qemu-devel@nongnu.org>,
qemu-ppc@nongnu.org, "Cédric Le Goater" <clg@kaod.org>,
"Greg Kurz" <groug@kaod.org>
Subject: Re: ppc kvm: support of 64K guest page size with 4K host pagesize?
Date: Thu, 5 Jun 2025 20:25:29 +1000 [thread overview]
Message-ID: <aEFwmU8PRo_SxV4T@zatzit> (raw)
In-Reply-To: <58abce8b-c5c2-4fd1-a32c-2d887445097d@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1555 bytes --]
On Thu, Jun 05, 2025 at 08:52:44AM +0200, Thomas Huth wrote:
> On 05/06/2025 08.34, Michael Tokarev wrote:
> > There's a bug report filed in debian against qemu,
> > https://bugs.debian.org/1107288 - saying kvm on ppc does not
> > work on debian (anymore) due to qemu requesting unrealistic
> > (non-existing) page size of 64K on a host which only has 4K.
> >
> > I don't know much about PPC, - what's the issue here? Should
> > qemu use the same page size for kvm as on the host?
>
> Looking at
>
> https://gitlab.com/qemu-project/qemu/-/commit/2309832afdaf8d6451ebc2e81bace8eb8ea41293
>
> it seems like this was done on purpose? David, do you remember why
> auto-detecting was not a good idea here?
Because the available page sizes are guest visible. So if we
auto-detected, guests could be silently migration-incompatible with
the same command line.
> Anyway, seems like there is a hpt-max-page-size property that could be used
> to set the value manually - maybe you could suggest that to the user as a
> work-around?
Yes, that's what you'll need to do. We set the default to 64kiB
pages, since at that point 64kiB was the default for all major host
distros, and guests benefit significantly from being able to use 64kiB
pages. If you want guests compatible with 4kiB page hosts, you need
to use this parameter.
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2025-06-05 10:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-05 6:34 ppc kvm: support of 64K guest page size with 4K host pagesize? Michael Tokarev
2025-06-05 6:52 ` Thomas Huth
2025-06-05 10:25 ` David Gibson [this message]
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=aEFwmU8PRo_SxV4T@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=clg@kaod.org \
--cc=groug@kaod.org \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/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).