Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp15373rdb; Wed, 14 Feb 2024 11:09:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUhMeS01slB4H6Czr1XZar0DfO0UdMlCDSFdPXK2YMr05Ah76iej1GchT4nrbPfm0xuUo8v9RT4jvHvYPg3qvaB4wTdNjff/g8vT6qZVg== X-Google-Smtp-Source: AGHT+IEhqED3LD67ccoIxe8W29gTplb/hEGj7opMmUhmwb6g23or70tQi6KgGMJY4NGDLlUYUBpf X-Received: by 2002:a05:6a21:8cc6:b0:19a:508a:7f70 with SMTP id ta6-20020a056a218cc600b0019a508a7f70mr3620378pzb.30.1707937758318; Wed, 14 Feb 2024 11:09:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707937758; cv=pass; d=google.com; s=arc-20160816; b=yaNNtbgoszLKq/gKvzyfzFBr237pFm5Y8AA+7DWcU8VSQAnVa2J8DczvpgE2DCNNDU STEeFxnKx6mJ3rB4G7pZq9dQ1S/6HRMHYaMwzRRGN7BdOyEakN2lj6gEcfBmu4gIdfL2 20t3W7VTJm3FkdCLHjFgRUplfnj3Y4qnBPTxWZvUYuIjOLxWuE7j2P1FYv22ztZROabL b/iRYdsuGRhy/Wix8J2xqdXi39NnYpkOHI/NRT2oSFbFNzF1bAUeb5bCzmnhmv00+lxt 5a23gTcUf8F37C4r779RHy6P0BNVJvIO/05Jq/h6Pb8trp4SW85WlKoFcsmI9YF+8e6A iwKA== 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=HteG6wI3EUm2H1LShgPJUXyy8lpsiiNykuq3fjbolTk=; fh=cLFCfvknBayZkruoeOniGoK+/uxFzJsNfjusBwlXE2k=; b=D1hjD+5INKB+fVgPaGBzf1J43hmY1n9/Ww3JWiNI7mNb+x9sz7WWlJ/GFVZ0oSdWu2 UgytbXPUU1ua05dseSKzODkjpkkVksE8YR0M6T8LtbWn7aHRpVBjOQwPZhrueBe0BtMi 8o6nDPaEv6q4H5oSk9zTeqewTP1HLSsJu425W83D1ivHvW14IEZV7R+svZcT03ga97x0 m1CP6NrUg6NnH+fzuJP+4/2G5PDcIGGfJFiHbpvuRKHsnLXcL00wCDPl/XH9TzcXFTJR FQo61IJEuO89fXjgeAciRh6J6AgpncUOHG+fe/6gIKtrvVFICj8Y6Ubaz7zYogR0Pn3g KZXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CG61ZVSB; 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-65819-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65819-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=2; AJvYcCUgyVgxKhWD9q9pPZMQtI/FZTCdC9NtajDVI3QiaqOM9x2+b7ercsjI5qORax1+gJLdiE9G+s4Gk4Rf5RxdbgAeyzd1lU9DbXdu/odBnA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ff11-20020a056a002f4b00b006e03db87d99si8751811pfb.353.2024.02.14.11.09.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 11:09:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65819-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CG61ZVSB; 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-65819-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65819-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 79B95B229D6 for ; Wed, 14 Feb 2024 18:40:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DA1E13A264; Wed, 14 Feb 2024 18:40:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="CG61ZVSB" Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (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 71E9C126F3E for ; Wed, 14 Feb 2024 18:40:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707936036; cv=none; b=kGhhJm6EBsda3geYAaN/vTqEqY15ZrJ1MsBFpIGmTZT7zA+HvlJJnysB9KsYZ7X5W7iSRMDZ+Rg8Jurgd3/MEGL1EF2OZ1HJfHQ9lbVp1EA+qJKvYY3boko7sM/m2U+iFBQxe7aWC1GHPA7QHnRvQNVXaSOnCZho7mTP8CXfSus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707936036; c=relaxed/simple; bh=QUSG3BjW4+NlVMe7Rm/SiimRN0MgjuaWYIne5NHr5SI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fvMHvdgl0KzeZ4CIBWQr7TBq/AbjmORwp7O4ujQdlGsGJNltTfch6Eq7eV5Gv8cSyXv59KbwI1CAqhzmJ6qXuZ082LLg9yGYt/fUMukY7UUPxC1gsNw42yAJgTgZzjXjMH9ge1mviC6bmA29gxUbaZe5M0kiMyDf4dNEMlhKZJ8= 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=CG61ZVSB; arc=none smtp.client-ip=91.218.175.175 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: Wed, 14 Feb 2024 10:40:27 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707936032; 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=HteG6wI3EUm2H1LShgPJUXyy8lpsiiNykuq3fjbolTk=; b=CG61ZVSBEE4WGfRWEOIp3h9wA3MZ2YPsnnaOpLGsZ8kAjbIAXomleuP4DeJUj9Rr7/uoSO TeW9FXRK2h8MO7fonOUHoeePgk+/aF1XJHbHot4r3nXY1QpxU4xPyM/2BS81yRm3/JJ6aT nZTs12ZOG2RjAJanbcCbZfvaUEPGAsw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, James Morse , Suzuki K Poulose , Zenghui Yu , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 00/23] KVM: arm64: Improvements to LPI injection Message-ID: References: <20240213093250.3960069-1-oliver.upton@linux.dev> <86y1bn3pse.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: <86y1bn3pse.wl-maz@kernel.org> X-Migadu-Flow: FLOW_OUT On Wed, Feb 14, 2024 at 05:43:13PM +0000, Marc Zyngier wrote: > On Tue, 13 Feb 2024 09:32:37 +0000, > Oliver Upton wrote: > > > > For full details on the what/why, please see the cover letter in v1. > > > > Apologies for the delay on v2, I wanted to spend some time to get a > > microbenchmark in place to slam the ITS code pretty hard, and based on > > the results I'm glad I did. > > [...] > > Buglets and potential improvements aside, I like the smell of this. At > least the first handful of patches could easily be taken as a separate > improvement series. > > Let me know how you'd like to play this. Yeah, I think there's 3 independent series here if we want to take the initial improvements: - Address contention around vgic_get_irq() / vgic_put_irq() with the first 10 patches. Appears there is violent agreement these are good to go. - Changing out the translation cache into a per-ITS xarray - A final series cleaning up a lot of the warts we have in LPI management, like vgic_copy_lpi_list(). I believe we can get rid of the lpi_list_lock as well, but this needs to be ordered after the first 2. I'd really like to de-risk the performance changes from the cleanups, as I'm convinced they're going to have their own respective piles of bugs. How does that sound? -- Thanks, Oliver