From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 97592277C81 for ; Thu, 18 Jun 2026 09:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781773293; cv=none; b=kcawna2qkjwTF0MJvKWxf1CirMwSDq0MW/+6pfJb8Z0BhaVO8Jh6QSKsscKU5lP7ZJw3UkIEZhgSMNpav4T8ZiYEyuCAfvUPM7Ouv3KOLnj7wa9GxgOrftMaZiWUN/XlLyPzVVPPZkQJM5YLKCLhhIDt4RYrnlKjF+zZHULxvZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781773293; c=relaxed/simple; bh=JF8xaUxAEefrhGeYdLmqjBr/6MU50meqkgMYwRq5apI=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=cxMzU1NqC1ZnRxAWiu+wROOrB03CPYyFrp+r0XLLBX2GWClK7ZoMV/z0+y2VDy8bQTR4qBefqe/r7weSFovjPsbHQWGP+5p6yEjecMHtUPLS8/kBSkLYiRw++IW9CBYVPRJLY49+1W4HlBsRSvD9qhNoQZlu0BPAeDyPU0gpwNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--tabba.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=GVzy05Fg; arc=none smtp.client-ip=209.85.128.74 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=flex--tabba.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GVzy05Fg" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-490ace40f13so2655415e9.3 for ; Thu, 18 Jun 2026 02:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781773290; x=1782378090; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=jYtovqB7kdiINejrOv1fG0IAw5VWPSFbwH/MJT2FPq0=; b=GVzy05FgycbU6yobsnOizIBsxXyS+TWXjR1/uYfV6LFbfjwTUN4etlBk9j34ZHzS7U QZ65mpIbsPd3Y/U1yaFSQ8oSUwAmIv8mdWELp4MP75GKHjG7MAOw1ABydnjxubDgVsGy G+ckRZNQtcdf65tUbmqoFYMSyrsoeSCWSlPEXMnkU/3lVheIVnyOiwFlqtxZ2Rt28W/P l8dI9XvmyZ/ClazmFXa0lUderxDu46H159eMbvNnvjAraMHZVtwO+79ZAtzBfzsSRAbs MEtP8BQzclji/ktzPjm27P9tceifIPbVrV1urXsT2VnQvEMsaVKyTFCPacouGBTh1wR8 en+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781773290; x=1782378090; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jYtovqB7kdiINejrOv1fG0IAw5VWPSFbwH/MJT2FPq0=; b=nqPnP2hLLe3ef9tMT5AsDb/s7kAJi67/VkVKdhbRwbTOcDGahrdQ9JbUebHmuorOJ7 NGdUlauHzXyGXCHB6zh9aAeBvWhSql87GvXqHmvzmBTYuMQLxO72fTZhWmlADStwJ2+q efFsVTP3vxFlKuaiZay6ndQARZTaN68UHi8cZxak4/AgD9Bfxn6TDsTqoNMbqRwW98qD 36kUGmHc3tGd4CjxAvMer0R9RcIMpZkhGWlote8PuCNbkSrTVy1CKK9Dwbk+DmE3QXD+ EGsYku5vmJXyNJ37Ioxl/aD8QC8wNpUSD45IhJv8GW6+ABxsYZGn/xDeiCUwvy+euPWt 4VMA== X-Forwarded-Encrypted: i=1; AFNElJ8mZJRHv77kPgbCOEUfpVFFXte6L5821fxKZVs+GxYOstKq8wMGdRWSm01vPmPsRAfXkda7ydWWedT0kCQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yy+K6n7OQU5kKViG5TBOEJThoAm8sQdLr06otrFemuUGW+dUvMN +PdIdHQotU2f57Wjxuv3ayt+E8Hhuk5ytGOObJzJYmgNvfdGvbK+3yUe1yJC0mGJWV9fAV50vvC fTA== X-Received: from wmrk26.prod.google.com ([2002:a05:600c:b5a:b0:492:2566:3b6e]) (user=tabba job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4fcf:b0:490:c024:2ec8 with SMTP id 5b1f17b1804b1-4923819e3f0mr44387665e9.0.1781773289396; Thu, 18 Jun 2026 02:01:29 -0700 (PDT) Date: Thu, 18 Jun 2026 10:01:25 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.54.0.1189.g8c84645362-goog Message-ID: <20260618090128.3913688-1-tabba@google.com> Subject: [PATCH 0/3] KVM: arm64: pKVM is_created cleanup 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 Content-Type: text/plain; charset="UTF-8" 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 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