Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) (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 7493F15B0 for ; Wed, 16 Nov 2022 16:57:11 +0000 (UTC) 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=1668617829; 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=TdFPell1GyLBX2SIEk5RntQAA4Vog6nIAXIY95c98cY=; b=SOKzPo9L8c2aAODZKx24AXi3Um/xxFEqfqF+qClyOQk8l/W5JKOLZSoadwrDaURh9kKj7g R1EvOLI2gkz/G1vwxqkqABx1MOHaD9pxY1A3tpAVN93p2TWFicEUs7mPkhMdgKji4JOrCH of38SMfEsMvBHuPjfeI5HhspUIrtvwE= From: Oliver Upton To: Marc Zyngier , James Morse , Alexandru Elisei Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kvmarm@lists.linux.dev, Will Deacon , Oliver Upton Subject: [PATCH v3 0/2] KVM: arm64: Fixes for parallel faults series Date: Wed, 16 Nov 2022 16:56:53 +0000 Message-ID: <20221116165655.2649475-1-oliver.upton@linux.dev> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Message-ID: <20221116165653.bpVuoIQyVyZc66EXwCJBErEcMWCvvwGDY-v-sNMTBZc@z> Small set of fixes for the parallel faults series. Most importantly, stop taking the RCU read lock for walking hyp stage-1. For the sake of consistency, take a pointer to kvm_pgtable_walker in kvm_dereference_pteref() as well. Tested on an Ampere Altra system with kvm-arm.mode={nvhe,protected}. Applies to the parallel faults series picked up last week. v2: https://lore.kernel.org/kvmarm/20221115225502.2240227-1-oliver.upton@linux.dev/ v2 -> v3: - Pass a pointer to the walker instead of a bool (Marc) - Apply the aforementioned change to kvm_dereference_pteref() Oliver Upton (2): KVM: arm64: Take a pointer to walker data in kvm_dereference_pteref() KVM: arm64: Don't acquire RCU read lock for exclusive table walks arch/arm64/include/asm/kvm_pgtable.h | 154 +++++++++++++++------------ arch/arm64/kvm/hyp/pgtable.c | 10 +- 2 files changed, 88 insertions(+), 76 deletions(-) -- 2.38.1.431.g37b22c650d-goog