From: Paul Mackerras Date: Thu, 31 Aug 2017 03:43:30 +0000 Subject: Re: [PATCH] KVM: PPC: Book3S HV: Report storage key support to userspace Message-Id: <20170831034330.GF22549@fergus.ozlabs.ibm.com> List-Id: References: <20170825095339.GC14035@fergus.ozlabs.ibm.com> In-Reply-To: <20170825095339.GC14035@fergus.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Cc: David Gibson On Fri, Aug 25, 2017 at 07:53:39PM +1000, Paul Mackerras wrote: > This adds information about storage keys to the struct returned by > the KVM_PPC_GET_SMMU_INFO ioctl. The new fields replace a pad field, > which was zeroed by previous kernel versions. Thus userspace that > knows about the new fields will see zeroes when running on an older > kernel, indicating that storage keys are not supported. The size of > the structure has not changed. > > The number of keys is hard-coded for the CPUs supported by HV KVM, > which is just POWER7, POWER8 and POWER9. > > Signed-off-by: Paul Mackerras Patch applied to my kvm-ppc-next branch. Paul.