Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5233133img; Wed, 27 Mar 2019 04:52:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxRWpjSg3BGt9n+o0M59vk9yCPNz190LmHvxVdHsK67Bzf2iymF6AHxjNEMOQEnhzYF0h8 X-Received: by 2002:a17:902:a511:: with SMTP id s17mr36039712plq.262.1553687527745; Wed, 27 Mar 2019 04:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553687527; cv=none; d=google.com; s=arc-20160816; b=dOzSPXGcRsp8dukoNSrKOsnoXLQXs0myqiGhME7LUpXGv4Hf7+EPv8O1LTfgli8gIk onJnGY56vXP7G60+Pu78gYSmjRCfZCx8tgLjYaWLi/mI69Zmn5iGwMF0vhdLGR0ROKEP 8xndE6ZACrRzgrB/SBvbKH+lGTxpIrmxPms/gc6GWU81X864u0++iQr5t2s976aZOrSw cI1h70Gy4egjXKEurg+LTMPrNS2tydE9lL+W7ADQ1/xl58UBh/YI+0ZdtlVjqoxbc9wt 1uVxEMeyAI0x734YIZ0NiJbPKqwYjMaJ3Q2C5B18R2JgBcXxFk/I+psnyHd+9Ko/U9wd A6qg== 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=vpkKOslW0ugYmjO5UOjtgVPOMHVDiICLzI+1x/wAnCM=; b=aVqTqU+QTpNhvkOlG0NYzwd10rpSW/5Zm/3VJ3/42Ip/+yc9b2pZt4rgjlCEJt4R2F PazRVfzY4cyoDC9vSFObEB803qOg9c2W/Ycji8M0Ux9f5HCWWVSy23kkCJBYhCz2hNSB asbpiGTwu240kgb/hMphOcERjczVQrJlfW9DDYppA/sngAJhpHBIFcMKvh4x5EvbV2z4 Wh+KZd60F7LaxYlpPynoNwC4NBYZLrMHRNrR3SkW7rLhvbaibh199e1YgB90cnpMx+ln WR6U5Gyxl70O5sUnCb4f1o5Q2XF7EKQ0EKBIeFCf6RX+wxrd11fK7MzEhDUofp2h+JIf NqLg== 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 k5si3184090plt.179.2019.03.27.04.51.52; Wed, 27 Mar 2019 04:52:07 -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 S1728583AbfC0Lte (ORCPT + 99 others); Wed, 27 Mar 2019 07:49:34 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53306 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728245AbfC0Lte (ORCPT ); Wed, 27 Mar 2019 07:49:34 -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 8B9CA374; Wed, 27 Mar 2019 04:49:33 -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 0307E3F557; Wed, 27 Mar 2019 04:49:30 -0700 (PDT) Subject: Re: [PATCH v7 9/10] KVM: arm64: docs: document KVM support of pointer authentication To: Dave Martin , Kristina Martsenko Cc: linux-arm-kernel@lists.infradead.org, Marc Zyngier , Catalin Marinas , Will Deacon , kvmarm@lists.cs.columbia.edu, Ramana Radhakrishnan , linux-kernel@vger.kernel.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> From: Amit Daniel Kachhap Message-ID: Date: Wed, 27 Mar 2019 17:19:28 +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: <20190327104428.GV3567@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, 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. Thanks, Amit D > > For SVE, I have > > config ARM64_SVE > depends on !KVM || ARM64_VHE > > to implement this. > > Cheers > ---Dave >