From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 DAA7343A7E3; Thu, 24 Sep 2026 08:23:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790238185; cv=none; b=ff0IEd6RHX694svwlpKTQV8e6IEhxC8ff9q73Ohdvelbi6flCIiJ10vCVSV01eSvt/RO4dd314f9NOE7bjzDZmGRTTBB4UXORtTIL65Agn8NkyefnC6iNpQHsakbAiyncFWaU17+aghV5aG2PO4gpjWqz1d/+DNPNMgp1cuDZo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790238185; c=relaxed/simple; bh=Kw+7uJwadmA3/+0VnGX3uBWEfazwrylhCy0o5tuUHNo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i7K94Ey4dp1pBJQE4fdWl8TUEHw2v3OM/NUO7cSK3NRJcCbD1wsAGw58JxWtNuKHgsMHO56Qz45Gy+IgfvUGEW2ZSM783VgzN1WZQsf93koTX+gmFzonFnIvmbEm08zahKoRWpVMnNtiapMgF2+u+ZT8IxFWHq7HKZpGW1lk2EI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LKRk7Yef; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LKRk7Yef" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09CC31F000FF; Thu, 24 Sep 2026 08:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790238179; bh=S/8lUKp9mIX5d6BKwHywb1J2XqYuMwPVrIBYkOuLxkI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=LKRk7Yef7xIRXywmYt9T9p8ZQrbVXd7n+swMMEKmBp2zOWJ7YgL2ycv5JC3WOiQE8 r75OCp43XzZPdNxIfpBLHg8Hyxi3VbuxfkXtmHo/dsPoPHl8sDvZWu5skYpaz/3h6B I8leYeJmIZKqLPggRWdGz6bna2VuECRUlAG++6RMWW3kP9Ou/obf8jtu4nbr1c6rOu p3GbpdB08d3+J+pskLku3PjKjTCWIia2EGwx7LWnwDYmTt+kSnV9PQR3jRSJV1zKOd xCU7kf9CeR9HBun9nMQR9UiRg5w6NUmieCFF/EbxzD2C2y9Km6mTqbnlX54j3TFiCv KozGf/TKQzglA== Date: Thu, 24 Sep 2026 09:22:47 +0100 From: "Lorenzo Stoakes (ARM)" To: Fuad Tabba Cc: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Paolo Bonzini , Jonathan Corbet , Mark Rutland , Randy Dunlap , Christian Borntraeger , Janosch Frank , David Hildenbrand , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Shuah Khan , Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Jack Thomson , Jack Thomson , Alexandru Elisei , Vincent Donnefort , "Aneesh Kumar K.V" , Sean Christopherson , Claudio Imbrenda , Leo Soares Passos , Wei-Lin Chang , linux-s390@vger.kernel.org Subject: Re: [PATCH v4 01/14] KVM: Allow architectures to disallow pre-fault Message-ID: References: <20260923-kvm-arm-prefault-v4-0-d4b0b4dfa8c3@kernel.org> <20260923-kvm-arm-prefault-v4-1-d4b0b4dfa8c3@kernel.org> 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: On Wed, Sep 23, 2026 at 07:52:27PM +0100, Fuad Tabba wrote: > Hi Lorenzo, > > On Wed, 23 Sep 2026 16:15:44 +0100, "Lorenzo Stoakes (ARM)" > wrote: > [...] > > diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c > [...] > > +int kvm_arch_pre_fault_allowed(struct kvm_vcpu *vcpu) > > +{ > > + if (!vcpu->kvm->arch.pre_fault_allowed) > > + return -EOPNOTSUPP; > > + > > + return 0; > > +} > > nit: the comment above the smp_rmb() in tdx_sept_map_leaf_spte() still > says pre_fault_allowed is read by kvm_arch_vcpu_pre_fault_memory(), > but after this patch it's read here. Ack can fix up I need to respin! > > Reviewed-by: Fuad Tabba Thanks! :) > > Cheers, > /fuad -- Cheers, Lorenzo