From: Paul Mackerras Date: Thu, 31 Aug 2017 03:41:39 +0000 Subject: Re: [PATCH v2 1/9] KVM: PPC: Book3S HV: Fix H_REGISTER_VPA VPA size validation Message-Id: <20170831034139.GC22549@fergus.ozlabs.ibm.com> List-Id: References: <20170812113416.15978-1-npiggin@gmail.com> <20170813013346.14002-1-npiggin@gmail.com> In-Reply-To: <20170813013346.14002-1-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org On Sun, Aug 13, 2017 at 11:33:38AM +1000, Nicholas Piggin wrote: > KVM currently validates the size of the VPA registered by the client > against sizeof(struct lppaca), however we align (and therefore size) > that struct to 1kB to avoid crossing a 4kB boundary in the client. > > PAPR calls for sizes >= 640 bytes to be accepted. Hard code this with > a comment. > > Signed-off-by: Nicholas Piggin Thanks, patch applied to my kvm-ppc-next branch. Paul.