Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93B11C04AB5 for ; Mon, 3 Jun 2019 11:14:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6906424E6B for ; Mon, 3 Jun 2019 11:14:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LDWlAX3v" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6906424E6B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1j9e1SeLxB8Y/bkLX8H4LkGrkXj4cDwfeqc0wrgvdR4=; b=LDWlAX3veyATa8 c4/OUieo6W1SwVb0uCbTyjRnlISZWuoTTkX2QlqMREOyZucA9V29R/ZlZINwRbyAVZs78LNSHXOlO fZ2UDNhyxJ5y1415rsD8meL/na9g7lP43jjrhNtNx8J7BmILYtrZlmadhaGickYs5lWgeqSE2qfik /egsDFq3TAoYJOz3HYepgwyOKJ9J1aLXC7c05QMIjZkEQDFln5jLr48zeSDKqi8ImkEjSDdyOUvD7 3QHPAgBD78sJoX4ilviwY2d2GhY32V7VXrMUqkVMu0FE6paT894I9VevBv8Ps2D+JGmUQYmXegAYY K3tiZQvmCAhoKjjNy4Eg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hXkv4-0002h0-0D; Mon, 03 Jun 2019 11:14:26 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hXkv1-0002gE-8j for linux-arm-kernel@lists.infradead.org; Mon, 03 Jun 2019 11:14:24 +0000 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 BE85B15AB; Mon, 3 Jun 2019 04:14:22 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1FB5E3F5AF; Mon, 3 Jun 2019 04:14:20 -0700 (PDT) Date: Mon, 3 Jun 2019 12:14:18 +0100 From: Dave Martin To: Andre Przywara Subject: Re: [PATCH kvmtool v3 7/9] arm64: Make ptrauth enable/disable diagnostics more user-friendly Message-ID: <20190603111418.GL28398@e103592.cambridge.arm.com> References: <1559229194-3036-1-git-send-email-Dave.Martin@arm.com> <1559229194-3036-8-git-send-email-Dave.Martin@arm.com> <20190531180501.51459aef@donnerap.cambridge.arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190531180501.51459aef@donnerap.cambridge.arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190603_041423_308839_2A54B365 X-CRM114-Status: GOOD ( 22.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christoffer Dall , Marc Zyngier , Will Deacon , Kristina Martsenko , Zhang Lei , Amit Daniel Kachhap , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, May 31, 2019 at 06:05:01PM +0100, Andre Przywara wrote: > On Thu, 30 May 2019 16:13:12 +0100 > Dave Martin wrote: > > > To help the user understand what is going on, amend ptrauth > > configuration diagnostic messages to refer to command line options > > by the exact name used on the command line. > > > > Also, provide a clean diagnostic when ptrauth is requested, but not > > availble. The generic "Unable to initialise vcpu" message is > > rather cryptic for this case. > > Again I don't see much value in having this as a separate patch, as it > basically just touches code introduced two patches earlier. I think it > should be merged into 5/9. Same as with the previous patch, I though it was better to keep it separate for review purposes for now, since it makes changes on top of Amit's existing patch. > > Since we now don't attempt to enable ptrauth at all unless KVM > > reports the relevant capabilities, remove the error message for > > that case too: in any case, we can't diagnose precisely why > > KVM_ARM_VCPU_INIT failed, so the message may be misleading. > > So this leaves the only point where we use .enable_ptrauth to that error > message about the host not supporting it. Not sure if that's worth this > separate option? There is indeed a question to be resolved here. See my response to the penultimate patch. Cheers ---Dave _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel