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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id DEE2DCA5FDD for ; Sat, 3 Oct 2026 08:38:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=H5rQCXZ1gWzInXM1iaG1BbgIiBJJUiKoxe2QRaI+VTU=; b=2OFJHnT3SiSA0C82e1SmUQmRpO AtbiLiaSJQru1+d5vChfeSXty6pV+uotmFGbMach8xsUokH+AoQa1KqZs4565aSD+0IFeBRpEVD2U Kjx74Jbcw6lQq8RB5tcob/xfuowEpG2R1m8GpHYfsezdrLQQMn5RjUvQ24A1UMu01Vr5pnRfqynml L4x7RlyJJIGgQVFgaWWyEF+VBXin4mMaiwUUARiGxVSPgJoAea7Me+HJgPMpV3c47aZd5Orz19OT8 3Jr4hJCuERba8F1FkdwmBseL/wjV6olvHw3Xjk8iyHwoaQcqTIQ7Z0GLtsc4VllHnLcS+7kordvoL TP4TBIvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCvGU-0000000DCPE-1C0V; Sat, 03 Oct 2026 08:38:42 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCvGT-0000000DCOp-37kY for linux-arm-kernel@lists.infradead.org; Sat, 03 Oct 2026 08:38:41 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 9256F60514; Sat, 3 Oct 2026 08:38:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44E521F0089B; Sat, 3 Oct 2026 08:38:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791016719; bh=H5rQCXZ1gWzInXM1iaG1BbgIiBJJUiKoxe2QRaI+VTU=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=gyxFQhDiIye3MnJrmNpZ2DNYijsqPdiuff1+lUxTweMxeKyOIMT4BX/1ZnCHmKUXJ HY7QZB6EiJ1aJjh0GU16c0uZ/+vdCpmcZ0AI8pki98puQ1v0Gry0DU1VVuOxKb8PPJ mfst+2NpNxiRiVg3SAHL5eACHlTgw5sWWxq8TejmCrfWeMydIzjOUyUEhtdq6t58ZI PFEqk/NMd5bDJlbGJW0jBv7TZfsfGelS7kCnaEbWDprAqr1km78jbAadTkB6SQraMs kqG46lNPijho4EwohJYNa7OB/jnn7+X7vspFFSlK2Jrcme/gmXgt91IhdfQc7gSejG KHVnpIlw9lHOA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xCvGO-0000000GUPh-2RdD; Sat, 03 Oct 2026 08:38:36 +0000 Date: Sat, 03 Oct 2026 09:38:36 +0100 Message-ID: <86ld8f2n77.wl-maz@kernel.org> From: Marc Zyngier To: Fuad Tabba Cc: oupton@kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, mark.rutland@arm.com, steven.price@arm.com, vdonnefort@google.com, qperret@google.com, Fuad Tabba Subject: Re: [PATCH v4 00/18] KVM: arm64: Confine protected VM vCPU state to EL2 In-Reply-To: <20261003065713.3872839-1-fuad.tabba@linux.dev> References: <20261001135711.1640520-1-fuad.tabba@linux.dev> <179095643711.351883.2924159912626438826.b4-ty@b4> <20261003065713.3872839-1-fuad.tabba@linux.dev> 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/30.1 (aarch64-unknown-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: fuad.tabba@linux.dev, oupton@kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, mark.rutland@arm.com, steven.price@arm.com, vdonnefort@google.com, qperret@google.com, tabba@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, 03 Oct 2026 07:57:13 +0100, Fuad Tabba wrote: > > Hi Marc, > > On Fri, 02 Oct 2026 16:55:26 +0100, Marc Zyngier wrote: > > [...] > > > Given how busy this merge window is, there were plenty of conflicts, most > > of them with your own patches. Please have a look at the way I resolved > > them and let me know if anything is on the bogus side of wrong... > > Thanks for taking these, and for sorting out the conflicts. Most of the > resolution matches mine, but two things in the pkvm-state merge are off: > > - In __kvm_vcpu_run(), the !host_vcpu and SVCR bail-outs still return > -EINVAL. Patch 10 changed them to ARM_EXCEPTION_IL, since the host > reads bit 31 of -EINVAL as a pending SError. > > - In __kvm_adjust_pc(), the pin path uses kern_hyp_va() on the __kern > pointer, which sparse flags. It needs kern_hyp_va_host(). > > The diff below fixes both. It also drops the set_bit()s in > pkvm_init_features_from_host() that kvm_pkvm_vcpu_allowed_features() > already does, and realigns the esr_dabt_is_cm() line. Could you fold it > into the merge resolution? > > With it applied on next, I booted protected and non-protected guests, > ran CPU hotplug in both, and ran the pKVM selftest (from my tree), all > passing. Thanks for having a look at it. I've now applied the new resolution and pushed out the updated branch, Cheers, M. -- Without deviation from the norm, progress is not possible.