From: Avi Kivity <avi@redhat.com>
To: Yoder Stuart-B08248 <B08248@freescale.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Wood Scott-B07421 <B07421@freescale.com>,
Alexander Graf <agraf@suse.de>,
"kvm-ppc@vger.kernel.org" <kvm-ppc@vger.kernel.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: [Qemu-devel] Re: RFC: New API for PPC for vcpu mmu access
Date: Tue, 08 Feb 2011 11:10:20 +0200 [thread overview]
Message-ID: <4D51087C.7060108@redhat.com> (raw)
In-Reply-To: <9F6FE96B71CF29479FF1CDC8046E15030C15B0@039-SN1MPN1-002.039d.mgd.msft.net>
On 02/07/2011 07:30 PM, Yoder Stuart-B08248 wrote:
>
> > -----Original Message-----
> > From: kvm-ppc-owner@vger.kernel.org [mailto:kvm-ppc-owner@vger.kernel.org]
> > On Behalf Of Avi Kivity
> > Sent: Monday, February 07, 2011 11:14 AM
> > To: Alexander Graf
> > Cc: Wood Scott-B07421; Yoder Stuart-B08248; kvm-ppc@vger.kernel.org;
> > kvm@vger.kernel.org; qemu-devel@nongnu.org
> > Subject: Re: RFC: New API for PPC for vcpu mmu access
> >
> > On 02/03/2011 11:19 AM, Alexander Graf wrote:
> > > >
> > > > I have no idea what things will look like 10 years down the road,
> > > > but currently e500mc has 576 entries (512 TLB0, 64 TLB1).
> > >
> > > That sums up to 64 * 576 bytes, which is 36kb. Ouch. Certainly nothing we
> > want to transfer every time qemu feels like resolving an EA.
> >
> > You could have an ioctl to translate addresses (x86 had KVM_TRANSLATE or
> > similar), or have the TLB stored in user memory, so there is no need to
> > transfer it (on the other hand, you have to re-validate it every time you
> > peek at it).
>
> The most convenient and flexible thing for Power Book III-E I think
> will be something that operates like a TLB search instruction. Inputs
> are 'address space' and 'process id' and outputs are in which TLB the
> entry was found and all the components of a TLB entry:
> address space
> pid
> entry number
> ea
> rpn
> guest state
> permissions flags
> attributes (WIMGE)
>
> Since all of those fields are architected in MAS registers, in the previous
> proposal we just proposed to return several 32-bit fields (one per MAS)
> that use the architected layout instead of inventing a brand new
> structure defining these fields.
>
This looks reasonable assuming you can take the hit of a system call per
translation.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-02-08 9:11 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
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 ` Avi Kivity [this message]
2011-02-10 0:04 ` [Qemu-devel] " 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=4D51087C.7060108@redhat.com \
--to=avi@redhat.com \
--cc=B07421@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).