From: Alexander Graf <agraf@suse.de>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: paulus@samba.org, linuxppc-dev@lists.ozlabs.org,
kvm-ppc@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH V2] KVM: PPC: BOOK3S: HV: Add mixed page-size support for guest
Date: Thu, 08 May 2014 12:12:32 +0200 [thread overview]
Message-ID: <536B5890.1090806@suse.de> (raw)
In-Reply-To: <1399399296-17711-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
On 05/06/2014 08:01 PM, Aneesh Kumar K.V wrote:
> On recent IBM Power CPUs, while the hashed page table is looked up using
> the page size from the segmentation hardware (i.e. the SLB), it is
> possible to have the HPT entry indicate a larger page size. Thus for
> example it is possible to put a 16MB page in a 64kB segment, but since
> the hash lookup is done using a 64kB page size, it may be necessary to
> put multiple entries in the HPT for a single 16MB page. This
> capability is called mixed page-size segment (MPSS). With MPSS,
> there are two relevant page sizes: the base page size, which is the
> size used in searching the HPT, and the actual page size, which is the
> size indicated in the HPT entry. [ Note that the actual page size is
> always >= base page size ].
>
> We use "ibm,segment-page-sizes" device tree node to advertise
> the MPSS support to PAPR guest. The penc encoding indicates whether
> we support a specific combination of base page size and actual
> page size in the same segment. We also use the penc value in the
> LP encoding of HPTE entry.
>
> This patch exposes MPSS support to KVM guest by advertising the
> feature via "ibm,segment-page-sizes". It also adds the necessary changes
> to decode the base page size and the actual page size correctly from the
> HPTE entry.
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thanks, applied to kvm-ppc-queue.
Alex
prev parent reply other threads:[~2014-05-08 10:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 18:01 [PATCH V2] KVM: PPC: BOOK3S: HV: Add mixed page-size support for guest Aneesh Kumar K.V
2014-05-08 10:12 ` Alexander Graf [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=536B5890.1090806@suse.de \
--to=agraf@suse.de \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.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).