From: Greg KH <greg@kroah.com>
To: Paul Mackerras <paulus@ozlabs.org>
Cc: stable@vger.kernel.org
Subject: Re: [PATCH v4.14 3/4] KVM: PPC: Book3S HV: Fix VRMA initialization with 2MB or 1GB memory backing
Date: Fri, 11 May 2018 08:59:49 +0200 [thread overview]
Message-ID: <20180511065949.GE13558@kroah.com> (raw)
In-Reply-To: <20180511062058.GC30116@fergus.ozlabs.ibm.com>
On Fri, May 11, 2018 at 04:20:58PM +1000, Paul Mackerras wrote:
> commit debd574f4195e205ba505b25e19b2b797f4bcd94 upstream.
>
> The current code for initializing the VRMA (virtual real memory area)
> for HPT guests requires the page size of the backing memory to be one
> of 4kB, 64kB or 16MB. With a radix host we have the possibility that
> the backing memory page size can be 2MB or 1GB. In these cases, if the
> guest switches to HPT mode, KVM will not initialize the VRMA and the
> guest will fail to run.
>
> In fact it is not necessary that the VRMA page size is the same as the
> backing memory page size; any VRMA page size less than or equal to the
> backing memory page size is acceptable. Therefore we now choose the
> largest page size out of the set {4k, 64k, 16M} which is not larger
> than the backing memory page size.
>
> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
> ---
> arch/powerpc/kvm/book3s_hv.c | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
Applied, thanks.
greg k-h
next prev parent reply other threads:[~2018-05-11 7:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-11 6:19 [PATCH v4.14 1/4] KVM: PPC: Book3S HV: Fix trap number return from __kvmppc_vcore_entry Paul Mackerras
2018-05-11 6:20 ` [PATCH v4.14 2/4] KVM: PPC: Book3S HV: Fix handling of large pages in radix page fault handler Paul Mackerras
2018-05-11 6:58 ` Greg KH
2018-05-13 23:41 ` Paul Mackerras
2018-05-11 6:20 ` [PATCH v4.14 3/4] KVM: PPC: Book3S HV: Fix VRMA initialization with 2MB or 1GB memory backing Paul Mackerras
2018-05-11 6:59 ` Greg KH [this message]
2018-05-11 6:21 ` [PATCH v4.14 4/4] KVM: PPC: Book3S HV: Fix guest time accounting with VIRT_CPU_ACCOUNTING_GEN Paul Mackerras
2018-05-11 6:59 ` Greg KH
2018-05-11 6:58 ` [PATCH v4.14 1/4] KVM: PPC: Book3S HV: Fix trap number return from __kvmppc_vcore_entry Greg KH
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=20180511065949.GE13558@kroah.com \
--to=greg@kroah.com \
--cc=paulus@ozlabs.org \
--cc=stable@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.