Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (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 28E94292B24 for ; Mon, 16 Jun 2025 13:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750080035; cv=none; b=NAzy9u5Q6/UteqWLKbjfvabPT5ytvj+0xEV1E5ib315FM4v2GCyYffaFBDciT57Ed1zIHBJBSa4uK50wtghagyZIR+jfKeZCcMpNTWa19uYPfiCqXsuskeZUWw8NvekWNUhDC40Qw7AUMQXk09cB8xux1Ehy7w+99O0lACA+BCY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750080035; c=relaxed/simple; bh=KsZELZeWpT03UnkqhlfBW9r1APWyBQkH9RXynD91+cs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OnACLZ1UR8/+0vQf7R1NJE1cfFXd2TqJaX2HEB0T4oWZDjINqVz08eZPBCY3f1EhEmBmR1US8FiJs33ujVNtj3A8JQ2M7sGUbAvQo2zQsRtivjfklv54Ba+COhoIGlCScqfCpdKluFKoXR7/54xTCveo1elwCf93Dg2C4J293XI= 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=InQhBDFO; arc=none smtp.client-ip=209.85.219.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="InQhBDFO" Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-6fae04a3795so47947726d6.3 for ; Mon, 16 Jun 2025 06:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1750080033; x=1750684833; 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=KsZELZeWpT03UnkqhlfBW9r1APWyBQkH9RXynD91+cs=; b=InQhBDFOUPFGiSZrpdHxGtQG4VaKBdkr+fPJaqwR90/CiqoYaCxVmSn7QxrXNoLn1F WBPef0OK0r+/TpY5qmsEnBqsb+iNAweOH++O1rQaBUo7lZqGOIWYyQ9FNr75CpyP7VGl mVG8fRbp/yBoCPW5lcTUhWmD1iehkQ7MjS5bL7nO0uOEiTeH3DPKOGSlRqxug8yqSYn5 Ve6ZNIF8ZqjZvhJSc+ESyBZRqzMP+yLVb0oef1VZwF6NxRm9kHLZnzxQHarmc+twT2KM J8QKvEsVOW0VkISB6x1WfonpZ6zurE8ezUKd7oWNnx8FXuMefw61z+pPmLyI3TbmbY5d eF7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750080033; x=1750684833; 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=KsZELZeWpT03UnkqhlfBW9r1APWyBQkH9RXynD91+cs=; b=qf9g5a1Ov48ms6wQsDfrFWX+KxQLV8DQ8WwI+9ZaknAfnsnwKSULU2Tqxj1fBZYCiN eb5TqK/a8tV0+zw5n54c7bmda4cfPOJJcHXMnexfI8UlM8bPeEAhmYXUBdbmB8S/AcC7 JBeiIB84xNS/ltbXVmfGL0khk7LnyfJOQ+j6RBkdfRqufrzd2xfTSCjDr/54Jtb8xrid BUV4epTIHrM3b8BQlBkd+xDLYq/YMPh7Z/C/S57hLhP/ZofSzgWRJQT8sDlCclCRx5TF HN6WIczZJ07ftl8KboKMBEHgIdI0e11eMWugdsyw76walb4jqx6LUJLCyBPdP10q87fD fciA== X-Forwarded-Encrypted: i=1; AJvYcCX/REbCBHVW9TDGlhi76KonpjP25HFfbdHokyvHwHmg48ZvoJbID5ypuzhm6SC5ai6LH6/SgFfvTcwu@vger.kernel.org X-Gm-Message-State: AOJu0YwUYRk6OrcUNq8y93AW4cKCjpEyhcobFnS01qdNyeTNOj4dhdWd h0upfSNzS2g2f1PE5m2WGPK1gPiUZtWIuDwzTrQ6fGlg1jEr4uzFYgal2OWkO8gON9A= X-Gm-Gg: ASbGncv6ZpKTwSfgITEi6w1c5AxvuEAc9kML7v9Z1omiKt1qeBjWNVCFaGHXFyaRJdr JWvVqNKMyQEL38a4yfBRdyrzPJvkDvOtPSchBjluX0xIuzZtyZcCMiYOOxBsB2Vu+uaCf6q8AH6 dqB6Dp2AGCKcQ1b9zudUQOm2UhWt4+/EelFApbuYIf5lxSQL4eD2WEDdf1sOnGN5I+42Xyv4rkp GZ6257uVEPTWAjGJNRjOg80lnnrpN2CzkIUFMsWteHX0tD8XJk04cPyxRpuY7Hm8+zImfaNbmXS Cy8lwkUo1xHbzZ8nZCdpMz49z8aZQf5RMYOGIk09/319OFEbtCqu3+BB3M7+RB1FV/a3KC7QMeu UZTHe7FjXc4rcPp92R8tG+4vsSvWKkuTR1OpLZQ== X-Google-Smtp-Source: AGHT+IE1qGI9XHVDxJuyvFi/df2zVObBdJYoDm6YGOjnmbu+H4OWYnM+uHkjohkUfAcq9uWzh1e/Fw== X-Received: by 2002:ad4:5c6b:0:b0:6fa:c99a:b5e1 with SMTP id 6a1803df08f44-6fb47725fb8mr166833186d6.17.1750080032894; Mon, 16 Jun 2025 06:20:32 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-167-56-70.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.167.56.70]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6fb35c84148sm50822446d6.109.2025.06.16.06.20.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jun 2025 06:20:32 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1uR9lH-00000005gVt-3sIA; Mon, 16 Jun 2025 10:20:31 -0300 Date: Mon, 16 Jun 2025 10:20:31 -0300 From: Jason Gunthorpe To: Demi Marie Obenour Cc: "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , Eugenio =?utf-8?B?UMOpcmV6?= , "Rafael J. Wysocki" , Len Brown , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Joerg Roedel , Will Deacon , Robin Murphy , Alyssa Ross , virtualization@lists.linux.dev, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, iommu@lists.linux.dev, x86@kernel.org, Spectrum OS Development Subject: Re: Virtio-IOMMU interrupt remapping design Message-ID: <20250616132031.GB1354058@ziepe.ca> References: <> Precedence: bulk X-Mailing-List: linux-acpi@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 Sun, Jun 15, 2025 at 02:47:15PM -0400, Demi Marie Obenour wrote: > Is a paravirtualized IOMMU with interrupt remapping something that makes > sense? IMHO linking interrupt remapping to the iommu is a poor design, interrupt routing belongs in the irq subsystem, not in the iommu. The fact AMD and Intel both coupled their interrupt routing to their iommu hardware is just a weird design decision. ARM didn't do this, for instance. So I would not try to do this at all, you should have a para-virtualized IRQ interface, not an extension to virtio-iommu adding interrupt handling. :\ AFAIK hyperv shows how to build something like this. Jason