* ppc kvm: support of 64K guest page size with 4K host pagesize?
@ 2025-06-05 6:34 Michael Tokarev
2025-06-05 6:52 ` Thomas Huth
0 siblings, 1 reply; 3+ messages in thread
From: Michael Tokarev @ 2025-06-05 6:34 UTC (permalink / raw)
To: QEMU Development; +Cc: qemu-ppc
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?
Thanks,
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ppc kvm: support of 64K guest page size with 4K host pagesize?
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
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2025-06-05 6:52 UTC (permalink / raw)
To: Michael Tokarev, QEMU Development, David Gibson
Cc: qemu-ppc, Cédric Le Goater, Greg Kurz
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?
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?
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ppc kvm: support of 64K guest page size with 4K host pagesize?
2025-06-05 6:52 ` Thomas Huth
@ 2025-06-05 10:25 ` David Gibson
0 siblings, 0 replies; 3+ messages in thread
From: David Gibson @ 2025-06-05 10:25 UTC (permalink / raw)
To: Thomas Huth
Cc: Michael Tokarev, QEMU Development, qemu-ppc,
Cédric Le Goater, Greg Kurz
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-05 10:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).