Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp318941ybb; Thu, 28 Mar 2019 03:14:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGoR92HsTW2KKCt10WQjEdj2TVFFZH65in5vCxce5Op6Mcm8YVskx2UQiFl8JA0UHn8JF0 X-Received: by 2002:a17:902:24:: with SMTP id 33mr42823257pla.259.1553768053693; Thu, 28 Mar 2019 03:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553768053; cv=none; d=google.com; s=arc-20160816; b=zGXZ5QOZ63oVLJb9KwNUnFeLben9IhJAnMTpaKfBoBptbYM247cM4yr2s6SoKWlpYY RyDa/XVp30jkFb+F/hDnBzWP4oQ3UCHEM0k34K6UQSi09fCVcP6y5lusBf7c0vNw4mOI XZKUqqFgZ2leaX1z+bMHz18gMndch50l6p1rIw66lXrxqaB2n5BM/jyqwz8B4sN6ZAFl gAjMeC9X1GvM1JwK991LDbt+EL8IaMVHThUqC6vzO0+TWlaO79do62ndBY3Rqah7WQ3D zESipJZYRWWBL9/pw1y2Ya1Os0+qQQbrxGC83KJR+HmnyK/tVokUfwa0V0VWv8iW+9rV UmzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=/fkNu1aA0oIal37f4XIh7DsKcePJuP4GSFxAwD2hVKI=; b=N8/X9Nx8KxCLxDmHAT30sm/HIvAry2JcTUg4Wm0R1FpAPNG0GoTECx7G3Pg3zMoCnh fHbEVF7RZ0zaY7TjFewy451DHYBX2diTyJFs0DOQgj2gAPpLjelLG8vDXBqnq3VmjfN5 XfVZj+tdUMqa4DkrDShj0UeCwZkaUwPn7EdXLJuKTIsBnsevDa3OZc9VXx/1byE7IWZe mFEcfTMvtZC6oztSxw+6jzsuAmxr5UeGj7nTxDMjzWQ6a8kzeNcHMRSdwSbWRtqN05UY CVWLE6dZh6OiXwMFmgVMqXdh8zOIw7Zj2FtdyYxzFCyouQIjgBjZFBBgWAiQ2GlhzGsF Mz8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si4517896pgq.4.2019.03.28.03.13.58; Thu, 28 Mar 2019 03:14:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726182AbfC1KNN (ORCPT + 99 others); Thu, 28 Mar 2019 06:13:13 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:41738 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbfC1KNN (ORCPT ); Thu, 28 Mar 2019 06:13:13 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7AFDC15AB; Thu, 28 Mar 2019 03:13:12 -0700 (PDT) Received: from [10.162.0.144] (a075553-lin.blr.arm.com [10.162.0.144]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F01F33F59C; Thu, 28 Mar 2019 03:13:09 -0700 (PDT) Subject: Re: [PATCH v7 9/10] KVM: arm64: docs: document KVM support of pointer authentication To: Dave Martin Cc: Kristina Martsenko , Marc Zyngier , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, Ramana Radhakrishnan , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org References: <1552984243-7689-1-git-send-email-amit.kachhap@arm.com> <1552984243-7689-10-git-send-email-amit.kachhap@arm.com> <23e4a9d4-e9e1-2c1f-32ce-e7fd96080437@arm.com> <20190327104428.GV3567@e103592.cambridge.arm.com> <20190327135058.GW3567@e103592.cambridge.arm.com> From: Amit Daniel Kachhap Message-ID: <82d60b1e-d08b-a8f8-457a-c9ead0378e0e@arm.com> Date: Thu, 28 Mar 2019 15:43:07 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190327135058.GW3567@e103592.cambridge.arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On 3/27/19 7:20 PM, Dave Martin wrote: > On Wed, Mar 27, 2019 at 05:19:28PM +0530, Amit Daniel Kachhap wrote: >> Hi, >> >> On 3/27/19 4:14 PM, Dave Martin wrote: >>> On Mon, Mar 25, 2019 at 08:05:49PM +0000, Kristina Martsenko wrote: >>>> On 19/03/2019 08:30, Amit Daniel Kachhap wrote: >>>>> This adds sections for KVM API extension for pointer authentication. >>>>> A brief description about usage of pointer authentication for KVM guests >>>>> is added in the arm64 documentations. >>>>> >>>>> Signed-off-by: Amit Daniel Kachhap >>>>> Cc: Mark Rutland >>>>> Cc: Christoffer Dall >>>>> Cc: Marc Zyngier >>>>> Cc: kvmarm@lists.cs.columbia.edu >>>> >>>> I think it makes sense to also update the Kconfig symbol description for >>>> CONFIG_ARM64_PTR_AUTH, since it currently only mentions userspace >>>> support, but now the option also enables KVM guest support. >>>> >>>> It's also worth mentioning that CONFIG_ARM64_VHE=y is required for guest >>>> support. >>> >>> Is it worth making this dependency explicit in Kconfig? >> Currently there is discrepancy that userspace supports ptrauth in both >> nVHE/VHE mode and KVM guest only in VHE mode. I suppose adding explicit >> dependency flag here makes both of them similar. > > Looking at the history, for SVE this Kconfig restriction has always been > present. Since ptrauth initially upstreamed without an equivalent > restriction in Kconfig, adding it now could be seen as a regression. ok it makes sense to keep it this way. > > So, maybe it's not worth it here. > > You could add a separate option, say > > config ARM64_PTR_AUTH_KVM > bool "Pointer authentication support for KVM guests" > default y > depends on ARM64_PTR_AUTH && ARM64_VHE && KVM > > ...but that may be overkill. I was thinking for adding some details for this in virtualization section in Documentation/arm64/pointer-authentication.txt along with brief comment in arch/arm64/Kconfig. Thanks, Amit D > > Cheers, > ---Dave >