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 24C56CA5FDD for ; Fri, 2 Oct 2026 15:29:38 +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=w2qbnlCfWtpMJpTInUhAzDoS27bFsbxCID6JcqdfH9o=; b=OCzZYAjhXFDddiVL8RnbSW5l0k YTxt1QtOK78fO0jD2wRT5TM1Uj2WPZVCYhwbtFSNlwJud7rueIzu063R81XaIlC3/rDu4FjIAfLte YNaywMzLECsib3fhJTXaON/+5UPht7ElqdqGSVJChI4NZXuNHbwWwEIW5bdbHfU9ONOuzwXI8rXsf WH8D8MnxYNNFoalzJHAHN8WK5EbU0XzNnKe024zDRzGzUKOY0qMJJYxr1aEbWenP/NZlccpLaAsuv rsyWbwhggtxmIwYlxu7lLmDB1pv8TW2yZYfghUREYLxst8TJVPOJ8n2PbIKYRYrm9bn9KXg96o6H8 +xJk/nNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCfCV-0000000BvLm-1Lm9; Fri, 02 Oct 2026 15:29:31 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCfCU-0000000BvKx-1AS9 for linux-arm-kernel@lists.infradead.org; Fri, 02 Oct 2026 15:29:30 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 4823E60A70; Fri, 2 Oct 2026 15:29:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE6371F000FF; Fri, 2 Oct 2026 15:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790954969; bh=w2qbnlCfWtpMJpTInUhAzDoS27bFsbxCID6JcqdfH9o=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=MsvbBDriLGUBuPkGG+TXOygYtreoDOfk5yRbhxaHuznlHbq81x4XHJ0sVS+UcJfp7 WLFCTfvNzAMIvgU5jdnaM1XfSRKf4Bgr320idBQLXxYjErS/nnik2TpwvqQFb5guin fyKzfDkG9wI7FblnrQzKraetRR4WiINQMf3e7hHZhOIC1uklkIFdPe4IRixnUgyCrH AFmjieMklHpJ/pLLWLAhBijwJWbPSniaQQzoVIIPHzzX71JbiUgZAcc8q3BkXDPHWn dZt5G8A4SPW0YIU4YrIcfA1Br27tIbE4k8RkoOj1m+tfFRoMURs5q/c7xESNJbmR/J uYUezl/z+iNmg== 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 1xCfCQ-0000000GHfm-2FHs; Fri, 02 Oct 2026 15:29:26 +0000 Date: Fri, 02 Oct 2026 16:29:26 +0100 Message-ID: <86o6dc2ka1.wl-maz@kernel.org> From: Marc Zyngier To: Fuad Tabba Cc: Suzuki K Poulose , kvm@vger.kernel.org, kvmarm@lists.linux.dev, will@kernel.org, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, steven.price@arm.com, aneesh.kumar@kernel.org, oupton@kernel.org, gshan@redhat.com, joey.gouly@arm.com, yuzenghui@huawei.com, linux-coco@lists.linux.dev, gankulkarni@os.amperecomputing.com, sdonthineni@nvidia.com, alpergun@google.com, fj0570is@fujitsu.com, WeiLin.Chang@arm.com, lpieralisi@kernel.org, enju.kohei@fujitsu.com, sudeep.holla@arm.com, jonathan.cameron@oss.qualcomm.com Subject: Re: [PATCH v21 05/23] KVM: arm64: Track the type of VM in kvm_arch In-Reply-To: References: <20261001210703.1597150-1-suzuki.poulose@arm.com> <20261001210703.1597150-6-suzuki.poulose@arm.com> <86se2o2rbs.wl-maz@kernel.org> <86pkxs2npx.wl-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/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: tabba@google.com, suzuki.poulose@arm.com, kvm@vger.kernel.org, kvmarm@lists.linux.dev, will@kernel.org, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, steven.price@arm.com, aneesh.kumar@kernel.org, oupton@kernel.org, gshan@redhat.com, joey.gouly@arm.com, yuzenghui@huawei.com, linux-coco@lists.linux.dev, gankulkarni@os.amperecomputing.com, sdonthineni@nvidia.com, alpergun@google.com, fj0570is@fujitsu.com, WeiLin.Chang@arm.com, lpieralisi@kernel.org, enju.kohei@fujitsu.com, sudeep.holla@arm.com, jonathan.cameron@oss.qualcomm.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 Fri, 02 Oct 2026 15:37:00 +0100, Fuad Tabba wrote: > > Hi Marc, > > On Fri, 02 Oct 2026 15:15:06 +0100, Marc Zyngier wrote: > [...] > > Honestly, we introduce the flavor stuff to make it easy to match > > things on a particular VM type in a readable way. So why isn't this > > reading: > > > > if (vcpu->kvm->arch.vm_flavor != VM_PROTECTED_PKVM) > > return; > > I know this is a sketch, but just in case: that's inverted. The sync > only applies to non-protected pKVM VMs (EL2 ignores it for protected > ones), so it would be != VM_PKVM. See what I meant about this stuff being completely intractable? I still have no idea what it means! ;-) M. -- Without deviation from the norm, progress is not possible.