From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82B4EC352A1 for ; Tue, 6 Dec 2022 08:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234033AbiLFIro (ORCPT ); Tue, 6 Dec 2022 03:47:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232748AbiLFIrk (ORCPT ); Tue, 6 Dec 2022 03:47:40 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92A66271D for ; Tue, 6 Dec 2022 00:47:39 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 0258B68B05; Tue, 6 Dec 2022 09:47:37 +0100 (CET) Date: Tue, 6 Dec 2022 09:47:36 +0100 From: Christoph Hellwig To: Yongji Xie Cc: Christoph Hellwig , "Michael S. Tsirkin" , Jason Wang , Thomas Gleixner , virtualization , linux-kernel Subject: Re: [PATCH v2 01/11] genirq/affinity:: Export irq_create_affinity_masks() Message-ID: <20221206084736.GA9507@lst.de> References: <20221205084127.535-1-xieyongji@bytedance.com> <20221205084127.535-2-xieyongji@bytedance.com> <20221206081847.GA8771@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 06, 2022 at 04:40:37PM +0800, Yongji Xie wrote: > With the vDPA framework, some drivers (vduse, vdpa-sim) can create > software-defined virtio devices and attach them to the virtio bus. > This kind of virtio device is not a pci device or a platform device. > So it would be needed to export this function if we want to implement > the automatic affinity management for the virtio device driver which > is binded to this device. Why are these devices even using interrupts? The whjole vdpa thing is a mess, I also still need to fix up the horrible abuse of the DMA API for something that isn't even DMA, and this just seems to spread that same mistake even further.