From: Scott Wood <scottwood@freescale.com>
To: Alexander Graf <agraf@suse.de>
Cc: Yoder Stuart-B08248 <B08248@freescale.com>,
"kvm@vger.kernel.org list" <kvm@vger.kernel.org>,
"<kvm-ppc@vger.kernel.org>" <kvm-ppc@vger.kernel.org>,
"qemu-devel@nongnu.org List" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: RFC: New API for PPC for vcpu mmu access
Date: Mon, 14 Feb 2011 15:16:57 -0600 [thread overview]
Message-ID: <20110214151657.0ce8c4a4@schlenkerla.am.freescale.net> (raw)
In-Reply-To: <F7188541-9C17-478D-B46F-3FBA4415F6F4@suse.de>
On Mon, 14 Feb 2011 21:19:19 +0100
Alexander Graf <agraf@suse.de> wrote:
> There's no nack here :). The only thing that needs to change is the anonymous part, as that's a gnu extension. Just name the structs and unions and all is well.
Ah, I thought it was an aesthetic objection -- didn't realize it was a
GNUism. Oh well.
> The reason I was asking is that I assumed the code would end up being easier, not more complex without the u32s. In fact, it probably would. I'll leave the final decision if you want to access things by entry->u81.split.mas8 or entry->mas8_1 & MAS8_1_MAS8_MASK.
After sending that, I was thinking that mas7_3 is more naturally used
as a pair, so I'd stick with the u64 there.
I think mas8_1 benefits less from the pairing, though -- it's only really
useful if you're going to put the value directly in hardware, which we
won't.
> >> The struct name should also have
> >> a version indicator - it's the data descriptor only a single specific
> >> mmu_type, right?
> >
> > It handles both KVM_MMU_PPC_BOOK3E_NOHV and KVM_MMU_PPC_BOOK3E_HV.
>
> Even fictional future changes to the tlb layout?
No, those need a new MMU type ID.
> >> Please state the size explicitly then. It's 1k, right?
> >
> > It's 4K on Freescale chips. We should probably implement sregs first, in
> > which case qemu can read the MMU config registers to find out the minimum
> > supported page size.
> >
> > If we specify 4K here, we should probably just go ahead and stick FSL in
> > the MMU type name. Specifying the hash itself already makes me nervous
> > about claiming the more generic name.
>
> Yup, sounds good :).
Which one, "read the MMU config registers" or "specify 4K and stick FSL in
the name"?
-Scott
next prev parent reply other threads:[~2011-02-14 21:17 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 20:33 [Qemu-devel] RFC: New API for PPC for vcpu mmu access Yoder Stuart-B08248
2011-02-02 21:33 ` [Qemu-devel] " Alexander Graf
2011-02-02 22:08 ` Scott Wood
2011-02-03 9:19 ` Alexander Graf
2011-02-04 22:33 ` Scott Wood
2011-02-07 15:43 ` Alexander Graf
2011-02-07 16:40 ` [Qemu-devel] " Yoder Stuart-B08248
2011-02-07 16:49 ` [Qemu-devel] " Alexander Graf
2011-02-07 18:52 ` Scott Wood
2011-02-07 19:56 ` [Qemu-devel] " Yoder Stuart-B08248
2011-02-09 17:03 ` [Qemu-devel] " Alexander Graf
2011-02-07 20:15 ` Scott Wood
2011-02-09 17:21 ` Alexander Graf
2011-02-09 23:09 ` Scott Wood
2011-02-10 11:45 ` Alexander Graf
2011-02-10 18:51 ` Scott Wood
2011-02-11 0:20 ` Alexander Graf
2011-02-11 0:22 ` Alexander Graf
2011-02-11 1:41 ` Alexander Graf
2011-02-11 20:53 ` Scott Wood
2011-02-11 21:07 ` Alexander Graf
2011-02-12 0:57 ` Scott Wood
2011-02-13 22:43 ` Alexander Graf
2011-02-14 17:11 ` Scott Wood
2011-02-14 20:19 ` Alexander Graf
2011-02-14 21:16 ` Scott Wood [this message]
2011-02-14 23:39 ` Alexander Graf
2011-02-14 23:49 ` Scott Wood
2011-02-15 0:00 ` Alexander Graf
2011-02-07 17:13 ` Avi Kivity
2011-02-07 17:30 ` [Qemu-devel] " Yoder Stuart-B08248
2011-02-08 9:10 ` [Qemu-devel] " Avi Kivity
2011-02-10 0:04 ` Scott Wood
2011-02-10 11:55 ` Alexander Graf
2011-02-10 12:31 ` Edgar E. Iglesias
2011-02-02 22:34 ` [Qemu-devel] " Yoder Stuart-B08248
2011-02-03 9:29 ` [Qemu-devel] " Alexander Graf
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=20110214151657.0ce8c4a4@schlenkerla.am.freescale.net \
--to=scottwood@freescale.com \
--cc=B08248@freescale.com \
--cc=agraf@suse.de \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@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).