Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp410008lqr; Wed, 5 Jun 2024 09:23:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9e3mmFC4RBfo+j4Cncfth4/7eE+xZRp4TKu0fIk+Y6ZUGCWBenJ1ENY37kwx+VDjr+tFGiRXOqGU2si6MGVBenMB7hltvvywVVCezkQ== X-Google-Smtp-Source: AGHT+IEUMqDsLsV+wL5v48bFDw1PC3qnwRp18NzOwG61W5p8mAu0BVsQEM468QEUkG5cHx6Xn9eq X-Received: by 2002:a50:c04a:0:b0:579:f1a3:664e with SMTP id 4fb4d7f45d1cf-57a8b69d6a3mr1801520a12.2.1717604635207; Wed, 05 Jun 2024 09:23:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717604635; cv=pass; d=google.com; s=arc-20160816; b=mVTBgOeCLFR6dJkJvmLASuJxFLJG7yIFDwgDf1v2szL031z1R5FX+BsYfcNFWb5svT /R1l8lu1fb3hCDKdIO4sHuR5dHK4dH1bOXHoL4o2sHWtwW6HKWi3yIrz7HmPzQkGU8jI U8eXKAKJQFmSZuiSwnajqlvY65ozBb/eqKmdngkilTzljLd0VOYVcaRXr00r6mXkOxVH 6XqbtP1npiMzKo5BF1Tr0GdnVroZvqch52JmQTaOnKwZFlIFH5U31TkG/hD1ceO6aES/ p6l0mt9rUdNCalw9Kf5D+Lt7gAmh0OAPiCIdu6jbi3qbyXIxptlrlayU0/Z5dt9P2f5T zvZA== 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:date:dkim-signature; bh=UNK6lxbGj/I4OE8GnjlKxvJzAlzQa9SOSY7DOmujm8k=; fh=qrMvIWFEzBwUh9EnCnmPWkSQAU0TDyNKN6Dv4Y9jZXI=; b=v7myl30xNYnq+wtHDbPb251iBzYWhzTalWCwj5LEsV0xocXf/Z/ZG9zVT3p6WmV7D7 ELtgp2Bgi3mHbUbtLlT+AU4YEUVwKWDlwzxwdhI6/l+kB3s3jdV8d6p8pGQY8RY+RCK1 CBid+6pMyX0wT/aJv7cO4hd0UpkLDAR3w9fDywySVTpqEy/Cz178ovKvmcUYVybS7wNU 7jnoUNSpFiOMtyZfJ7onbaxBxlUUraIqtNKxM0P3CxKI+qSjhiRZQLQ6IfZjfarzOswX Dx0OxCf7PjWJaR+WfiN6AZdELrmek97VZixQnI7QvsqjddtiBtAdUkzRquU1iKSTla96 DolA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=gUDJJQEm; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-202909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202909-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a95d3d839si881386a12.77.2024.06.05.09.23.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 09:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=gUDJJQEm; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-202909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202909-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 33C8D1F22AEA for ; Wed, 5 Jun 2024 16:23:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 606A715EFDC; Wed, 5 Jun 2024 16:22:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="gUDJJQEm" Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (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 2CEEE152DEB for ; Wed, 5 Jun 2024 16:22:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717604573; cv=none; b=QDXa6Xi5aW/bnre/t1znD5HnfyY6eiAlQt1WbqmqTRfvyrQedWITIFDNbtXD1AGay+tstGFro7V+WwwOTLXo9nRXpFJTRPsQ5Lo+b3f404jYWX0wOpZMKY8/dOrz3jUdmmPMHueo9sQU+7AmZ84Mdy20qwr69E99ADH5eFrz8Uc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717604573; c=relaxed/simple; bh=UNK6lxbGj/I4OE8GnjlKxvJzAlzQa9SOSY7DOmujm8k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SEnbKeR5IT2zDeygN5arQSdcmzSOah35MZDOx9ZTplFnuVfhmBA+OmJYzsOaDUCMGJqhCmneXxmgAL6dBTnkyyZZ2UwNQm/LUaOQxK7SuRaZ56igLZWrCARJUYzWgBiGop2EAaf1K6KQOwjVpcy6VlNCvM3jpQsmL7B1vEGyh38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=gUDJJQEm; arc=none smtp.client-ip=209.85.160.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-250c0555a63so1872073fac.1 for ; Wed, 05 Jun 2024 09:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1717604571; x=1718209371; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UNK6lxbGj/I4OE8GnjlKxvJzAlzQa9SOSY7DOmujm8k=; b=gUDJJQEm7EQHxD0PM2KqpZnAKRMn5bh9byp70cgMSrDblAlLPrGkrUFZ1b06OVmSnU GkBnlg3rGm5ZWAPRsL0ebPIm0MzsMGVRziGzdKs/lY4eGxXcd1iSaFtelRUB+0jZq77F AoF9K8FOKfaq9M+wdtOgK9RrqYSeUoSjKxlXoLJw+RvPLHAZhN6G/5zOEQI6l1VS2oIe N5JygUiHdPvbyRWJMcrmV+xHTDue0E8S3IaawbTwQCVr4rrRT5Yi0CndhLlX9hSKZ56S 4BOIsJCi+9JPndEMMyJNjhqFkZs36ojmSffcpDblrR4JzVpo7Q2pUYz/hZMDVV0VMPrF sg/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717604571; x=1718209371; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UNK6lxbGj/I4OE8GnjlKxvJzAlzQa9SOSY7DOmujm8k=; b=RPLusATofGYhU4WrfIA6/QwPYnwh5NMGoPOjgtJyK65LYk6QplYqgpvzSQT0kzH4aW 0gflsNV8eAiyYFiB+MkuSi5Lt2SVKHPOOIfCIXqbBdt5+7CfEWM2wN0XOpvxbaMbLqbr O7xT6Bo/Yskfp6PHwB1SJxiAbfNIs/QmTuqvIAJ2qRzXxRy6EfbAxBe9MtZMsb9rJL1u HxrV4uleE0NiRzwbModyFFb3g1DkHnAJj9jIeNeQGZ0pieaRgZOMFZXdu6uGgcn9PO1Y +dVcInLnmpLeD/PZzxgve8O+AY9UgokVAszC1/BrP2T5BR2VJlj+nze8ZBilGxLlefRV Bi3w== X-Forwarded-Encrypted: i=1; AJvYcCUuDPc3/XUcjZY/zDfxYiBrfkLjdkHYNrJXScuqOOserumEBxWETOpM3QVcCAiXEUpY//p5m7t1pJiiGokwRkeBpHAcnZMbMFycEXhs X-Gm-Message-State: AOJu0YxQpgAgccDDlb8//XeQUUFha7SYpCpgrvHl/w24R4tl+BG/eEpI Z2WPjT8BW0pj1QUMB1ngYS1juxLzXn/tq/3zO0MOnXE8OvEu74Boo6ctyCqVhRc= X-Received: by 2002:a05:6870:45a4:b0:250:7353:c8f2 with SMTP id 586e51a60fabf-25121ffe4c4mr3403554fac.43.1717604570789; Wed, 05 Jun 2024 09:22:50 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id af79cd13be357-795015bed64sm346687985a.8.2024.06.05.09.22.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 09:22:50 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sEtPV-007TNB-Pb; Wed, 05 Jun 2024 13:22:49 -0300 Date: Wed, 5 Jun 2024 13:22:49 -0300 From: Jason Gunthorpe To: Fred Griffoul Cc: griffoul@gmail.com, Alex Williamson , Yi Liu , Kevin Tian , Eric Auger , Stefan Hajnoczi , Christian Brauner , Ankit Agrawal , Reinette Chatre , Ye Bin , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] vfio/pci: add msi interrupt affinity support Message-ID: <20240605162249.GE791043@ziepe.ca> References: <20240605155509.53536-1-fgriffo@amazon.co.uk> 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: <20240605155509.53536-1-fgriffo@amazon.co.uk> On Wed, Jun 05, 2024 at 03:55:05PM +0000, Fred Griffoul wrote: > The usual way to configure a device interrupt from userland is to write > the /proc/irq//smp_affinity or smp_affinity_list files. When using > vfio to implement a device driver or a virtual machine monitor, this may > not be ideal: the process managing the vfio device interrupts may not be > granted root privilege, for security reasons. Thus it cannot directly > control the interrupt affinity and has to rely on an external command. For a long time I've been beating a drum that people need to stop using /proc/irq/../smp_affinity, so I like this idea :) Jason