From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 597A2389E02 for ; Mon, 6 Jul 2026 10:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783333906; cv=none; b=YT6dQm13NnvoQ6gqwvfTrVT6axLednRXL+rYgwhZK+MpLIFuHXs1wMC8PDINyYFWHuDm68Os4cJmgq9TCrGzzN6uObhAZx8SkEeQX+4tTnaI8TC06dHF/GwU/fl3WsBMuVOvdyXu2jHxM+wgMEqB3er5UeNf0xZpJ71VlZZ9WGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783333906; c=relaxed/simple; bh=BzWmGmhDSX9H7Qwx2j4ifAMxfY7LvD8ZDgxYcBW2C8Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=MSDFqkELdVlP3JhWE6BzSV+J/ijF3aRCWsRqCNYVRdS1wPjKepambu1xvxV9QGcX4MVGJhK3mVDnZ1C/jYyny9jQkvygOPqglaO+KY9fw5KNGb3nH2/HgAbx3TIUMM63i4oFDIOut+qyUdGEblXbCOn1PFJfMnBIMHqeH1Zy0Bw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=tgfxylSg; arc=none smtp.client-ip=91.218.175.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="tgfxylSg" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783333893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=UUV8G5l+8y4VKTIs3LKjPdf1ZbZ+/55y0GSb0c64wC0=; b=tgfxylSgq1mxGv3YhjrLl+pFCjKU4T+ERAUdE5N5foYO9rMA/IF+gR8jvB+botICUQdrZv iwDtl5MxnL7jVUaa6CclQoSkJvJREbo3SVqxklz2sp4jtssn+7fd2Tkn27kBSBySbJfZNF KT7LG7pBns2aH92snAv91lW9r56Z0lM= From: Fuad Tabba To: Marc Zyngier , Oliver Upton , Catalin Marinas , Will Deacon Cc: Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Vincent Donnefort , Keir Fraser , Hyunwoo Kim , Fuad Tabba , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] KVM: arm64: Tidy up is_created Date: Mon, 6 Jul 2026 11:31:26 +0100 Message-Id: <20260706103129.706974-1-fuad.tabba@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Hi folks, Changes since v1 [1]: - Carried Keir's Reviewed-by. No code changes. 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. Cheers, /fuad [1] https://lore.kernel.org/all/20260618090128.3913688-1-tabba@google.com/ 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.39.5