From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1D64C433F5 for ; Tue, 11 Jan 2022 14:18:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 0F4CA4B208; Tue, 11 Jan 2022 09:18:52 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@kernel.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5GVV6bQ7YDjj; Tue, 11 Jan 2022 09:18:50 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id E09A94B1F2; Tue, 11 Jan 2022 09:18:50 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 305E24B1F2 for ; Tue, 11 Jan 2022 09:18:49 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LUBBxmJzLwvs for ; Tue, 11 Jan 2022 09:18:48 -0500 (EST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id DDEC74B160 for ; Tue, 11 Jan 2022 09:18:47 -0500 (EST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7199DB81ACE; Tue, 11 Jan 2022 14:18:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 291DCC36AEB; Tue, 11 Jan 2022 14:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641910725; bh=zJ1/eiV6n61IaOYz5GcKJ/BzFdPcMZQiPxj1RRI1D0U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DR3OyCoSMVR4IjpUSbBdm0ZEi8PFPavi+GATwK2x82EUmq26AXrF7ippC6FjbcZta e9sWEuk8U/hDShkUNhWuXqmzNTYdF5wYl12mOMDOJ+BuW9obpwH1Zv5pHpsKTtnT4n +Y/BU7UM+cga+MNW2dwhEc4O13bHwhhv7LnZp4+olSA3P5NZCji4YbrQ0EZF/xaQbj +4CmXDJMz3Gc/agh4YdYegfuBFo3R9H/mi2lxCSSuVu2KTkaoqob4Mib0xz9/fLMEN 3GFDEat/+5VkBqLd2iycocAIHs3WzJaFyMuk8GgU8tFw+ijF90E7nA5cMdyLroKflp Pdb+u1ZXebJOQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n7Hz1-00HOuY-87; Tue, 11 Jan 2022 14:18:43 +0000 Date: Tue, 11 Jan 2022 14:18:42 +0000 Message-ID: <871r1etkxp.wl-maz@kernel.org> From: Marc Zyngier To: Peter Maydell Subject: Re: [PATCH v3] hw/arm/virt: KVM: Enable PAuth when supported by the host In-Reply-To: References: <20220107150154.2490308-1-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: peter.maydell@linaro.org, richard.henderson@linaro.org, qemu-devel@nongnu.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kernel-team@android.com, eric.auger@redhat.com, drjones@redhat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Cc: kvm@vger.kernel.org, Richard Henderson , qemu-devel@nongnu.org, kernel-team@android.com, kvmarm@lists.cs.columbia.edu X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On Tue, 11 Jan 2022 13:58:49 +0000, Peter Maydell wrote: > > On Sat, 8 Jan 2022 at 13:42, Marc Zyngier wrote: > > > > On 2022-01-07 20:23, Richard Henderson wrote: > > > On 1/7/22 7:01 AM, Marc Zyngier wrote: > > >> @@ -1380,17 +1380,10 @@ void arm_cpu_finalize_features(ARMCPU *cpu, > > >> Error **errp) > > >> return; > > >> } > > >> - /* > > >> - * KVM does not support modifications to this feature. > > >> - * We have not registered the cpu properties when KVM > > >> - * is in use, so the user will not be able to set them. > > >> - */ > > >> - if (!kvm_enabled()) { > > >> - arm_cpu_pauth_finalize(cpu, &local_err); > > >> - if (local_err != NULL) { > > >> + arm_cpu_pauth_finalize(cpu, &local_err); > > >> + if (local_err != NULL) { > > >> error_propagate(errp, local_err); > > >> return; > > >> - } > > >> } > > > > > > Indentation is still off -- error + return should be out-dented one > > > level. > > > > > > > Duh. Clearly, my brain can't spot these. Apologies for the extra noise. > > > > > Otherwise, > > > Reviewed-by: Richard Henderson > > > > Thanks. I'll repost a version shortly, unless someone shouts. > > Don't worry about it -- I've applied this to target-arm.next and > fixed the indent there. Awesome, thanks Peter. M. -- Without deviation from the norm, progress is not possible. _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 819A8C433F5 for ; Tue, 11 Jan 2022 14:18:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241371AbiAKOSr (ORCPT ); Tue, 11 Jan 2022 09:18:47 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:58510 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241089AbiAKOSq (ORCPT ); Tue, 11 Jan 2022 09:18:46 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C1409615FC for ; Tue, 11 Jan 2022 14:18:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 291DCC36AEB; Tue, 11 Jan 2022 14:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641910725; bh=zJ1/eiV6n61IaOYz5GcKJ/BzFdPcMZQiPxj1RRI1D0U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DR3OyCoSMVR4IjpUSbBdm0ZEi8PFPavi+GATwK2x82EUmq26AXrF7ippC6FjbcZta e9sWEuk8U/hDShkUNhWuXqmzNTYdF5wYl12mOMDOJ+BuW9obpwH1Zv5pHpsKTtnT4n +Y/BU7UM+cga+MNW2dwhEc4O13bHwhhv7LnZp4+olSA3P5NZCji4YbrQ0EZF/xaQbj +4CmXDJMz3Gc/agh4YdYegfuBFo3R9H/mi2lxCSSuVu2KTkaoqob4Mib0xz9/fLMEN 3GFDEat/+5VkBqLd2iycocAIHs3WzJaFyMuk8GgU8tFw+ijF90E7nA5cMdyLroKflp Pdb+u1ZXebJOQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n7Hz1-00HOuY-87; Tue, 11 Jan 2022 14:18:43 +0000 Date: Tue, 11 Jan 2022 14:18:42 +0000 Message-ID: <871r1etkxp.wl-maz@kernel.org> From: Marc Zyngier To: Peter Maydell Cc: Richard Henderson , qemu-devel@nongnu.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kernel-team@android.com, Eric Auger , Andrew Jones Subject: Re: [PATCH v3] hw/arm/virt: KVM: Enable PAuth when supported by the host In-Reply-To: References: <20220107150154.2490308-1-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: peter.maydell@linaro.org, richard.henderson@linaro.org, qemu-devel@nongnu.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kernel-team@android.com, eric.auger@redhat.com, drjones@redhat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Tue, 11 Jan 2022 13:58:49 +0000, Peter Maydell wrote: > > On Sat, 8 Jan 2022 at 13:42, Marc Zyngier wrote: > > > > On 2022-01-07 20:23, Richard Henderson wrote: > > > On 1/7/22 7:01 AM, Marc Zyngier wrote: > > >> @@ -1380,17 +1380,10 @@ void arm_cpu_finalize_features(ARMCPU *cpu, > > >> Error **errp) > > >> return; > > >> } > > >> - /* > > >> - * KVM does not support modifications to this feature. > > >> - * We have not registered the cpu properties when KVM > > >> - * is in use, so the user will not be able to set them. > > >> - */ > > >> - if (!kvm_enabled()) { > > >> - arm_cpu_pauth_finalize(cpu, &local_err); > > >> - if (local_err != NULL) { > > >> + arm_cpu_pauth_finalize(cpu, &local_err); > > >> + if (local_err != NULL) { > > >> error_propagate(errp, local_err); > > >> return; > > >> - } > > >> } > > > > > > Indentation is still off -- error + return should be out-dented one > > > level. > > > > > > > Duh. Clearly, my brain can't spot these. Apologies for the extra noise. > > > > > Otherwise, > > > Reviewed-by: Richard Henderson > > > > Thanks. I'll repost a version shortly, unless someone shouts. > > Don't worry about it -- I've applied this to target-arm.next and > fixed the indent there. Awesome, thanks Peter. M. -- Without deviation from the norm, progress is not possible. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52E6FC433EF for ; Tue, 11 Jan 2022 14:48:32 +0000 (UTC) Received: from localhost ([::1]:48334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7IRr-00048w-EP for qemu-devel@archiver.kernel.org; Tue, 11 Jan 2022 09:48:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7HzG-0005gn-BE for qemu-devel@nongnu.org; Tue, 11 Jan 2022 09:18:58 -0500 Received: from [2604:1380:4601:e00::1] (port=46336 helo=ams.source.kernel.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7HzB-0003DC-A9 for qemu-devel@nongnu.org; Tue, 11 Jan 2022 09:18:56 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7199DB81ACE; Tue, 11 Jan 2022 14:18:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 291DCC36AEB; Tue, 11 Jan 2022 14:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641910725; bh=zJ1/eiV6n61IaOYz5GcKJ/BzFdPcMZQiPxj1RRI1D0U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DR3OyCoSMVR4IjpUSbBdm0ZEi8PFPavi+GATwK2x82EUmq26AXrF7ippC6FjbcZta e9sWEuk8U/hDShkUNhWuXqmzNTYdF5wYl12mOMDOJ+BuW9obpwH1Zv5pHpsKTtnT4n +Y/BU7UM+cga+MNW2dwhEc4O13bHwhhv7LnZp4+olSA3P5NZCji4YbrQ0EZF/xaQbj +4CmXDJMz3Gc/agh4YdYegfuBFo3R9H/mi2lxCSSuVu2KTkaoqob4Mib0xz9/fLMEN 3GFDEat/+5VkBqLd2iycocAIHs3WzJaFyMuk8GgU8tFw+ijF90E7nA5cMdyLroKflp Pdb+u1ZXebJOQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1n7Hz1-00HOuY-87; Tue, 11 Jan 2022 14:18:43 +0000 Date: Tue, 11 Jan 2022 14:18:42 +0000 Message-ID: <871r1etkxp.wl-maz@kernel.org> From: Marc Zyngier To: Peter Maydell Subject: Re: [PATCH v3] hw/arm/virt: KVM: Enable PAuth when supported by the host In-Reply-To: References: <20220107150154.2490308-1-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: peter.maydell@linaro.org, richard.henderson@linaro.org, qemu-devel@nongnu.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kernel-team@android.com, eric.auger@redhat.com, drjones@redhat.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Host-Lookup-Failed: Reverse DNS lookup failed for 2604:1380:4601:e00::1 (failed) Received-SPF: pass client-ip=2604:1380:4601:e00::1; envelope-from=maz@kernel.org; helo=ams.source.kernel.org X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.595, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jones , kvm@vger.kernel.org, Richard Henderson , qemu-devel@nongnu.org, Eric Auger , kernel-team@android.com, kvmarm@lists.cs.columbia.edu Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Tue, 11 Jan 2022 13:58:49 +0000, Peter Maydell wrote: > > On Sat, 8 Jan 2022 at 13:42, Marc Zyngier wrote: > > > > On 2022-01-07 20:23, Richard Henderson wrote: > > > On 1/7/22 7:01 AM, Marc Zyngier wrote: > > >> @@ -1380,17 +1380,10 @@ void arm_cpu_finalize_features(ARMCPU *cpu, > > >> Error **errp) > > >> return; > > >> } > > >> - /* > > >> - * KVM does not support modifications to this feature. > > >> - * We have not registered the cpu properties when KVM > > >> - * is in use, so the user will not be able to set them. > > >> - */ > > >> - if (!kvm_enabled()) { > > >> - arm_cpu_pauth_finalize(cpu, &local_err); > > >> - if (local_err != NULL) { > > >> + arm_cpu_pauth_finalize(cpu, &local_err); > > >> + if (local_err != NULL) { > > >> error_propagate(errp, local_err); > > >> return; > > >> - } > > >> } > > > > > > Indentation is still off -- error + return should be out-dented one > > > level. > > > > > > > Duh. Clearly, my brain can't spot these. Apologies for the extra noise. > > > > > Otherwise, > > > Reviewed-by: Richard Henderson > > > > Thanks. I'll repost a version shortly, unless someone shouts. > > Don't worry about it -- I've applied this to target-arm.next and > fixed the indent there. Awesome, thanks Peter. M. -- Without deviation from the norm, progress is not possible.