Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1894197rdb; Tue, 20 Feb 2024 10:02:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUa/beMg3GM5dKh69a4RHfyZI3UNNUhCQ90yeReTsLpEZD5q1ycT6CcD8rb9mA6eLDUH8AeXrE6f9KYRAeGxaKSBxTpVwKtxJSpk/LpFg== X-Google-Smtp-Source: AGHT+IEHGkEBQMOOSOe/Ou3mFANabrfW9GD1YCxPPjeOUhItxaHWJpaD0XXiCH/CU4XV4ceD8UdJ X-Received: by 2002:a05:6a20:939b:b0:19e:a9e6:bfa with SMTP id x27-20020a056a20939b00b0019ea9e60bfamr21949064pzh.0.1708452145430; Tue, 20 Feb 2024 10:02:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708452145; cv=pass; d=google.com; s=arc-20160816; b=in4EzQXp16bQx7j9i8Q3bJjotJ6gM0xcLbUOIcDHOOFxwjTbl2PUjZJUlgxODKZm+R fJTd3xBDjaZeiQsJ31sYpz0mAUYoM02ekGLpKmITP6Js0UHYPL2XTQTpLwY4TpV6/3JC 1xRJ9f5jFQgPNFLnSk4k+rzbmQsm7X/AktpIYkaFwXiclZ72uYhaIa4zbeeVYd3xD4dh PMY88esfQBeDOF8TlXh/Q1W0x94WO436Hc9RRPO17qAkd3RTfxqC+HWxqSgITvwAxyM+ Wfe9j2UG3ZwRQpRtxur1+CF/q5I0MvKmjjM4rmIvV7JhRCesi+ilSWyA58E5H/hCJG3y BBaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=W3c+aRtUD1dd66eZygChyjJvf2ILxG0fQE6zxgpa+Vs=; fh=CLKARMnA0MKy/ZMCtmCKuqmOAbfFkXxrGkrh63ojSE4=; b=V5aL1zNFGA1eVsQSsFmiJTzhP6IE1bZDa+/8GCQ7QjTTHv/3VFO0n4BDIIE2XHO3C9 hI3Xw7FWXUyABkfaQ6wla+i5/qBSutfIgGlHsovXixjnahfXVPeNSXgfKkjjoO7WZ9oh 9+EAnRmWTZWVEWJWSRzNa/aDLQqmL9d70q+Q5r2gNCNsylZUgvyys3PY49ANMW9T2Hgd liBP8sjV3RLD8ABb/mYqDxWokmhODpZf52WLCrOOHrSzqT6MviW/Ng8dFsikV7sLTKyd 2qhWHppkhLLzDQFQdJn6LWqfob8cdpWQMt0XWcwqMCg/IW9pLbHn2HSVjpPFL+g6U6uq fPhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="CJr/Pn8O"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-73478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i7-20020a639d07000000b005dc8510a4f0si6532162pgd.514.2024.02.20.10.02.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 10:02:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="CJr/Pn8O"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-73478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0AE65B25115 for ; Tue, 20 Feb 2024 17:57:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BD7677656; Tue, 20 Feb 2024 17:57:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="CJr/Pn8O" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 E64F676C98 for ; Tue, 20 Feb 2024 17:57:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708451861; cv=none; b=pV01YLSH11rsjqIcxJzjQteV9ukzzibyC2clLgrfI6oXVI5fa20JSlYFxHxI9W5COYWMoGCgp568fW78DmCsqsCiVQfcQi9YhXKiynd0u60SypgT0UyZbkQmy0+X3OZqP3x8ae/B8lyTKPJ72sWZVBn3mG1cUCaSmrO0fmcku04= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708451861; c=relaxed/simple; bh=JM53lWnvE6SqliDKSCYuchF19mgSxwrFWeot9zR3M7I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iuNB9nqXKd0644ldP4uNI4Sst4UjMWlm3cExZku95Fgof6bToKLXvGZ1nYa+iLJPX++o4Cfq5tRRB2VYyTonaBpJA44vv9TOptQrD1qnPOsH1ekDXZ+RFZ3A9/lo3XBY7JIKU9+Q0IkUUzQK5ttE0eZGqXTtnViYvh7ph2ga9O4= 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=CJr/Pn8O; arc=none smtp.client-ip=91.218.175.170 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 Date: Tue, 20 Feb 2024 09:57:31 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708451858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=W3c+aRtUD1dd66eZygChyjJvf2ILxG0fQE6zxgpa+Vs=; b=CJr/Pn8OsUzShpXOWyY9n1E8x3uhRIUVyFuj4PioBFQdigtbTVv8LZqg5dPoBjZT7oKM/Z L27+oV2rljPnloaZKVVIjDH1GZPUDkN+ZrHAwWO0umLSqGJ1VOO/T9d6XrjJAqCnMTDQTq JZVtv59QXm/iWpRtA63UlQ3OHYKJSY0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: Zenghui Yu , kvmarm@lists.linux.dev, kvm@vger.kernel.org, James Morse , Suzuki K Poulose , Zenghui Yu , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 01/10] KVM: arm64: vgic: Store LPIs in an xarray Message-ID: References: <20240216184153.2714504-1-oliver.upton@linux.dev> <20240216184153.2714504-2-oliver.upton@linux.dev> <86wmqz2gm5.wl-maz@kernel.org> <86v86j2f9o.wl-maz@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: <86v86j2f9o.wl-maz@kernel.org> X-Migadu-Flow: FLOW_OUT On Tue, Feb 20, 2024 at 05:53:55PM +0000, Marc Zyngier wrote: > On Tue, 20 Feb 2024 17:43:03 +0000, Oliver Upton wrote: > > I think we can get into here both from contexts w/ interrupts disabled > > or enabled. irqfd_wakeup() expects to be called w/ interrupts disabled. > > > > All the more reason to use irqsave() / irqrestore() flavors of all of > > this, and a reminder to go check all callsites that implicitly take the > > xa_lock. > > Sounds good. Maybe you can also update the locking order > "documentation" to include the xa_lock? I expect that it will > ultimately replace lpi_list_lock. Yep, I got to the point of deleting the lpi_list_lock on the full series, which is where I update the documentation. I really didn't want people to know I'm adding yet another layer of locking in the interim... Anyways, I think there's sufficient feedback to justify a respin. I'll make sure the documentation is updated w/ the xa_lock for the stuff I'm trying to land in 6.9. -- Thanks, Oliver