From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DEF73A6EF0 for ; Thu, 18 Jun 2026 10:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781777202; cv=none; b=ZnnT7an90ne6GUc65x49TF9jqQqAyIKO09Gt3rx6duZPh5F8xjAiGoRS2cIdEsFjfeod3fY4FxXS+f0D20ANv8Gz9doLk0jLvKS41CKZ2GjS2Uh+tD7NWfELhAClLegB6kHSRlVcFPHugnD5HnbGFNydG7LEj43HIEu0TwY6LYg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781777202; c=relaxed/simple; bh=gPL4eZcKb04rzqdXsrloz4icZUFrxqzZOdNO6LTORGo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Qe3vDLO7p1j37y4cpkb6u12rbrUFZGyVB3qmm7z2sgthrwkO07W0PMNJv3NAWmcaG2JgCycY8Dm1Nzli5cRilkc2pQp+iQwdfeHC1VhsbuARBvckkp4eChijEJiaxAZSxgcdQcxJdYrIy4hZ7KqnyTaac2d+DEySc6IFWi8qoEs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=eakf9LAl; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="eakf9LAl" Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-68bac6e24fdso918844a12.1 for ; Thu, 18 Jun 2026 03:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781777200; x=1782382000; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=1cRgp7Kc3/ev10BqeC/Hyj5uuQ9SERtntEd44mPwyR0=; b=eakf9LAlLihMglYYDkSXsya1BfTieximmJgFIeckyXBUY7bgu8AglIGZedm79vhYls 7SJvEit3EqI3Qor2KHp+bEzAFb2zdxp0ctvOJ9icemlvCoza8bu+CIRmssIbUPQ8I09c hrymTNVaIMkciObooLwd6t7RetYdJ14L/qSDDg0L7RBMi4l5wz769GJxV/Gg7cYRCtn8 uQGibPhs+taYzPC/l2ldzz/fBXkiS+4jxpicKmUEWJ6U2t92JQbWOjDgIQ5FRlDoTxYZ Dl5igorwbHUL++ClqxMNe5u+8Uy4n92S3Qttz7MRa+RAhUJhPvoDOgC54rtXF05sljYO lpuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781777200; x=1782382000; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1cRgp7Kc3/ev10BqeC/Hyj5uuQ9SERtntEd44mPwyR0=; b=dGyoqXOcYFIlIJ9pgZG9CSQWgd0cmrDnxOqPtr0zC9lmcrDJtXpea7mjxAZm/DNc7z FQcXwH3w93qv30tI38BLzlsmW9Rx1AocoHJYK0h399yXpovc4WobqSDmdOZzywXKb9ql LYKABZBdrZjEZ0DW6fhi63tgxAPu6yOhNmjK7DVNIu+zgHwv3jvjF3Fa3gWGtceNJBx4 0UOdubGbcNhyjh0si3FsFhcwEhiu5j3Zb4syWEe1rweg77VJz2DUqGLodF0DRWhalTGS eFP0mhq0z0HAFZKQY9r3nQntnbdR+OryfSGi5rJflL13Df+QHn+FrbldJ5dx2zbrhPb+ 6ZBQ== X-Forwarded-Encrypted: i=1; AFNElJ+FNcZ6Lj7iWCaLPqVfvOxOLYKL4NGj5g5w5zt4qyNBlfyLRTSjKsz74n2jIULvvu7q9HQ6MvIStokzfM0=@vger.kernel.org X-Gm-Message-State: AOJu0YwSrtFFiIB5qty3YAvBgMLcknXFgr9O07wFGPU5OUj9B//yVxW+ CMgXrfArPgJTP3t0DU2W0/eZL8spNRFGQ2GguYdh6QD2MZL9PLIBHUp+swjKsITQ6A== X-Gm-Gg: AfdE7cmQhxpDq6LpmuLGpRohHNC9wJqsdfCFCw6WoHiGEReHNQur/QsaMlYq+ov3l2y has6xrI3iaB/RP4KOTZuG/l/OQKtJu/Gz9aVQ6SAF3e9JSnkZ3fTNHkIOoujDsnAFLKeuh7/bMJ 3wC4UXHKkreZrUXmDX4BOTZJ8IyjOpY3zbQU7ZCFoRMhom2/4RxyURIpJvCT4PksjS/+slNMfg1 GCZHotYMd4KDbEJxnURc445B/OCwBc5ZXBe8yhozS4Jcd8EpRzVVdohNWnMeEldij2lhJuPo1L+ UZj+qMTLAtGMaU1oSMDqimWEqGXrpFZzMPyCuOsjwJeqtN9U4GGy5bilqwedlIGnz0LTcFyvy8u oZusBzN7LgHYexDz2HFpWKYbolJeIC3sKiG9e0iBfyPR0JeUMGlw6rxjgq7hFsmkwNbRbIKYOJl aikt1CXR5nIZfiyQ36AZvcF5bUQNzlr6sqi2Lym5UV3cUm X-Received: by 2002:a05:6402:348b:b0:68e:4c0:f5b1 with SMTP id 4fb4d7f45d1cf-695bb1abd61mr1501371a12.2.1781777199202; Thu, 18 Jun 2026 03:06:39 -0700 (PDT) Received: from google.com (213.53.77.34.bc.googleusercontent.com. [34.77.53.213]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6937949bcbfsm7548192a12.24.2026.06.18.03.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2026 03:06:38 -0700 (PDT) Date: Thu, 18 Jun 2026 10:06:33 +0000 From: Keir Fraser To: Fuad Tabba Cc: Marc Zyngier , Oliver Upton , Catalin Marinas , Will Deacon , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Vincent Donnefort , Hyunwoo Kim , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] KVM: arm64: pKVM is_created cleanup Message-ID: References: <20260618090128.3913688-1-tabba@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260618090128.3913688-1-tabba@google.com> On Thu, Jun 18, 2026 at 10:01:25AM +0100, Fuad Tabba wrote: > This small series tidies up the host-side kvm->arch.pkvm.is_created flag, > which tracks whether the hypervisor-side (EL2) VM has been instantiated. > > It comes out of the ongoing pKVM (protected KVM) upstreaming work and runs > in parallel with it. The changes only remove dead or redundant code around > the flag, not any of the functional paths that work touches, so there is no > dependency in either direction and the two can be applied in any order. > > is_created stays: the pKVM handle is reserved early (so host MMU-notifier > TLB invalidations have a valid handle before the first vCPU run), so a > non-zero handle no longer implies the EL2 VM exists. is_created is what > distinguishes "reserved" from "created", and the teardown path relies on it. > Only the cruft around it goes. For the whole series: Reviewed-by: Keir Fraser > Cheers, > /fuad > > Fuad Tabba (3): > KVM: arm64: Drop the unused EL2-side is_created write > KVM: arm64: Remove unreachable early checks in pkvm_init_host_vm() > KVM: arm64: Drop redundant READ_ONCE() in pkvm_hyp_vm_is_created() > > arch/arm64/kvm/hyp/nvhe/pkvm.c | 1 - > arch/arm64/kvm/pkvm.c | 13 +++++-------- > 2 files changed, 5 insertions(+), 9 deletions(-) > > -- > 2.54.0.1189.g8c84645362-goog >