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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE8DDC00A89 for ; Mon, 2 Nov 2020 19:26:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6F4602231B for ; Mon, 2 Nov 2020 19:26:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=intel-com.20150623.gappssmtp.com header.i=@intel-com.20150623.gappssmtp.com header.b="aMgw8zK7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbgKBT0Q (ORCPT ); Mon, 2 Nov 2020 14:26:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726630AbgKBT0Q (ORCPT ); Mon, 2 Nov 2020 14:26:16 -0500 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B872AC0617A6 for ; Mon, 2 Nov 2020 11:26:15 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id w1so14383717edv.11 for ; Mon, 02 Nov 2020 11:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dDQNhKPGqjVJkXRCCnTVmPBDzTBDoFvxQkjWFChUq7c=; b=aMgw8zK7rCA1KVq/MU6bOhsU0tEut11yFI1PHpIrmQ1GvsyRa9VonG09yyX73f6HFX HvILR0dwvJqrEQPwXRQSeL3U7QrGrbMngjrUVa87Dl0gNjHxwt63h/kA5UhJa4e9aPmx de83lguI6lttJSqM1C9UXADtdbhALyf3QFFwmqKS9RE4j7QL536YGCM34TLz9gabbXcL 27liIuYANcsTRoln+q4tcxnnRxBRpUhaWSv1/MfeMVEgTZTOkJty4FQZm9fXjZO/bwu3 H1y+cFvspb6VrYE5RXH/oJC61UtBIo3YJxKJAKjRE6RmwOm2fP/dgV4XRsHhfmh7lzNJ BD4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dDQNhKPGqjVJkXRCCnTVmPBDzTBDoFvxQkjWFChUq7c=; b=d0sWIQTGvX9pae536cyUSFDoI28lHNbFZzNl3VJEradzWwyiKTYhZ079ST2BlEfd2b l45GYjp0fUZQSFm4/Hd2jGuiv6wVQrD9LwK3fHUjnuiAiXVpVHSgbgAz5Jx4z7E2wPE1 4XsxvvsPKIjlO68KHFvDtIWWp+m2ywsHiFyss993iTq44XL7OvhfftAuyxgBoLw+NP1n j8vLQoz2P9M82ozNSqZ/MQsGg2oC4PQGltsimhbEy4dzv9UK4QKtup30A/ie2RXVbT8s FrX2LklySGeGzO5pF5m3OxI8hEXy/rydHMk1AuB5K9Gt84n6UqQWwlS0WZXaHfQS38x3 k8RA== X-Gm-Message-State: AOAM5325SKfOmLt9KanVvGrAGAZ3HGUmVxvRsBH/hQQvgQIX6VYkeO4Q kTQNNLjWCDBQsrRmH1/sdAvF5e991ff/fIwoSCKi+Q== X-Google-Smtp-Source: ABdhPJw7aq66qJvui6hJLPrXF7b2G+hIyn689UWesfAkpS5Y1kYqfJinaHs863DkeMqRZOD0NON5Ehn/1jAOw7ApiTY= X-Received: by 2002:aa7:cc84:: with SMTP id p4mr17722087edt.97.1604345174437; Mon, 02 Nov 2020 11:26:14 -0800 (PST) MIME-Version: 1.0 References: <20201030193045.GM2620339@nvidia.com> <20201030204307.GA683@otc-nc-03> <87h7qbkt18.fsf@nanos.tec.linutronix.de> <20201031235359.GA23878@araj-mobl1.jf.intel.com> <20201102132036.GX2620339@nvidia.com> <20201102162043.GB20783@otc-nc-03> <20201102171909.GF2620339@nvidia.com> <20d7c5fc-91b0-d673-d41a-335d91ca2dce@intel.com> <20201102182632.GH2620339@nvidia.com> <20201102185130.GB3600342@nvidia.com> In-Reply-To: <20201102185130.GB3600342@nvidia.com> From: Dan Williams Date: Mon, 2 Nov 2020 11:26:01 -0800 Message-ID: Subject: Re: [PATCH v4 00/17] Add VFIO mediated device support and DEV-MSI support for the idxd driver To: Jason Gunthorpe Cc: Dave Jiang , "Raj, Ashok" , Thomas Gleixner , Vinod Koul , "Dey, Megha" , maz@kernel.org, Bjorn Helgaas , Alex Williamson , Jacob jun Pan , Yi L Liu , Baolu Lu , "Tian, Kevin" , Sanjay K Kumar , "Luck, Tony" , Jing Lin , kwankhede@nvidia.com, eric.auger@redhat.com, Parav Pandit , "Rafael J. Wysocki" , netanelg@mellanox.com, shahafs@mellanox.com, yan.y.zhao@linux.intel.com, Paolo Bonzini , Samuel Ortiz , Mona Hossain , Megha Dey , dmaengine@vger.kernel.org, Linux Kernel Mailing List , Linux PCI , KVM list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Mon, Nov 2, 2020 at 10:52 AM Jason Gunthorpe wrote: > > On Mon, Nov 02, 2020 at 10:38:28AM -0800, Dan Williams wrote: > > > > I think you will be the first to use the namespace stuff for this, it > > > seems like a good idea and others should probably do so as well. > > > > I was thinking either EXPORT_SYMBOL_NS, or auxiliary bus, because you > > should be able to export an ops structure with all the necessary > > callbacks. > > 'or'? > > Auxiliary bus should not be used with huge arrays of function > pointers... The module providing the device should export a normal > linkable function interface. Putting that in a namespace makes a lot > of sense. True, probably needs to be a mixture of both.