From: Thomas Huth <thuth@redhat.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: qemu-ppc@nongnu.org, "QEMU Developers" <qemu-devel@nongnu.org>,
"Cédric Le Goater" <clg@kaod.org>,
"David Gibson" <david@gibson.dropbear.id.au>
Subject: Re: [Qemu-devel] KVM-PR is broken with current QEMU
Date: Thu, 22 Sep 2016 08:25:38 +0200 [thread overview]
Message-ID: <20160922082538.3d1c5895@thh440s> (raw)
In-Reply-To: <1474407935.2857.87.camel@kernel.crashing.org>
On Wed, 21 Sep 2016 07:45:35 +1000
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Tue, 2016-09-20 at 13:44 +0200, Thomas Huth wrote:
> >
> > Seems like KVM PR is using the "degraded" ISA variants (without the
> > 1TB
> > segments), but the new POWERPC_MMU_64K flag has not been added to
> > those.
> > Has this been done on purpose, or was this just by accident?
> > I can make KVM PR working again with the following patch:
> >
> > diff --git a/target-ppc/cpu-qom.h b/target-ppc/cpu-qom.h
> > index 2864105..36694cb 100644
> > --- a/target-ppc/cpu-qom.h
> > +++ b/target-ppc/cpu-qom.h
> > @@ -81,6 +81,7 @@ enum powerpc_mmu_t {
> > | POWERPC_MMU_AMR | 0x00000003,
> > /* Architecture 2.06 "degraded" (no 1T segments) */
> > POWERPC_MMU_2_06a = POWERPC_MMU_64 | POWERPC_MMU_AMR
> > + | POWERPC_MMU_64K
> > | 0x00000003,
> > /* Architecture 2.07 variant */
> > POWERPC_MMU_2_07 = POWERPC_MMU_64 | POWERPC_MMU_1TSEG
> > @@ -88,6 +89,7 @@ enum powerpc_mmu_t {
> > | POWERPC_MMU_AMR | 0x00000004,
> > /* Architecture 2.07 "degraded" (no 1T segments) */
> > POWERPC_MMU_2_07a = POWERPC_MMU_64 | POWERPC_MMU_AMR
> > + | POWERPC_MMU_64K
> > | 0x00000004,
> > };
> >
> > However, not sure whether this is the right fix ... Cédric, Ben, any
> > ideas?
>
> Oh I thought I had removed the degraded variants ... Definitely looks
> like an accident. I *think* PR KVM supports 64K pages, no ? If not,
> then we shouldn't enable the flag.. somebody needs to check the kernel.
Yes, it supports 64k pages - but only on POWER8, not on POWER8E or
POWER8NVL yet. I've posted a patch to fix this here:
https://patchwork.ozlabs.org/patch/672841/
Thomas
prev parent reply other threads:[~2016-09-22 6:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-20 11:44 [Qemu-devel] KVM-PR is broken with current QEMU Thomas Huth
2016-09-20 12:24 ` Cédric Le Goater
2016-09-20 14:04 ` [Qemu-devel] [Qemu-ppc] " Cédric Le Goater
2016-09-20 14:24 ` Thomas Huth
2016-09-20 14:39 ` Cédric Le Goater
2016-09-21 8:22 ` Thomas Huth
2016-09-22 1:57 ` David Gibson
2016-09-22 5:30 ` Thomas Huth
2016-09-22 7:18 ` Thomas Huth
2016-09-22 9:46 ` Cédric Le Goater
2016-09-22 9:57 ` Anton Blanchard
2016-09-20 21:45 ` [Qemu-devel] " Benjamin Herrenschmidt
2016-09-21 7:45 ` Thomas Huth
2016-09-22 6:25 ` Thomas Huth [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=20160922082538.3d1c5895@thh440s \
--to=thuth@redhat.com \
--cc=benh@kernel.crashing.org \
--cc=clg@kaod.org \
--cc=david@gibson.dropbear.id.au \
--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).