Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7121897rwb; Tue, 6 Dec 2022 01:12:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UHeq7zMeHPFnk3sYjN+XFX/rCxBTP9fRiFFa7202EEhWG5R7hi6INWwcTevEfnA59CLX+ X-Received: by 2002:aa7:de08:0:b0:46a:e4e0:8407 with SMTP id h8-20020aa7de08000000b0046ae4e08407mr40843375edv.36.1670317952527; Tue, 06 Dec 2022 01:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670317952; cv=none; d=google.com; s=arc-20160816; b=s+2VrIJSDelmEzis2oeuClX15nKZTm6OC+bijKnZ86+Vqu6jmbJwlOVzN4QabD2dZD OLXrA6ngHtbqslpin/agiMhNx637+NbPfCX0yTbZKcbOb+AuPuA+0weHDqZDeXZaNpJA 5aDauVeuLRrOY4w2Yc55YkT8K+ifqM91rcP7wv1a07aswhJCJnXDkTe+DYwM3LBIZxzF fwy0Lt0e4Y5qLIopaiHhliL/cLR41apUxQjbR4LYjjv67PCDEFtNITkvpatAexvetVvi SJd4pZaaV9+9rnubmFz7eKt07QnU+PgRj6runaOXjS1Kdd/zNec4sGMPqXfPFKFQ8Hkk 1Jug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=0+AxA59IuuUHNOb0yjR36Q0SfF4N7oefSgwD6+nRBvM=; b=XBJYwvH5s6WiuJe1KfpaD95UE6n2YJm4Ui18yp+jH+EDrxJWdsaq2yPoulm8OslQdk AV2/efyYNwjsi8OYEJAC+crbEDojJxIdstLugb6pPJAtiO3oo8LhJfN6gEaeA30HsuAp Qtpgl15iN47/tKLKiCzoc5BPsWloLDXU5cE3HRIMckv3Az8O3efiEqalkFk6jJ5pbdUT T9WxxWlNXXZGWcE0C3Hj8nnZkT/CXmr+P7Xh+w6I6lqq6AfrBb7QZv9wuNTLYdXQlhTz WFSaFcBtg5WJBgdUq3hqV0ZcVodJbF46OkcbhcOuYFHOZ4w3eRIxY3yXG1BJgKsaMYAS TzLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a056402254c00b00459c1e64776si1840595edb.412.2022.12.06.01.12.12; Tue, 06 Dec 2022 01:12:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231409AbiLFIro (ORCPT + 79 others); 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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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.