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=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 4E02EC4332B for ; Mon, 23 Mar 2020 11:14:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17DDC20663 for ; Mon, 23 Mar 2020 11:14:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="o5lKo3i0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728143AbgCWLOO (ORCPT ); Mon, 23 Mar 2020 07:14:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56964 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727987AbgCWLON (ORCPT ); Mon, 23 Mar 2020 07:14:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=C87xnsNVhELeyQ/6uqphym88jFGzMbtyl2CNN0gORIA=; b=o5lKo3i0kb1illdXOiPPAzVhWL yFCU7ddszwkAVtvo1szMwDsQTaq9ThbZ7r8ecoVY8a10Lt6jrbKOOYXKdmX4UyqS5P+eR8V6x1DGB wxYkGuUq5trGA1mXs9LXWNI7eCOK3pGxLb2mZpufbvUyQt1mS7TKdpKKye/mkBFwiWiXr8yugQYMu gtLUk0B3c7HpqcLLgInwa32ayAp63bqTtYYzIfT1mMWYqF+Fg42iEqwiVCZmXuZrMvz0pFp56L0Mr E0l1gkqu4ZG2x65NyocAktwz/9caCKoEGKV7uX4O6bBNsrxIfdnwpbvte6QGiUUa6TyjKvMHMe38v +uBkQY2w==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGL1w-0001Zv-HQ; Mon, 23 Mar 2020 11:14:04 +0000 Date: Mon, 23 Mar 2020 04:14:04 -0700 From: Christoph Hellwig To: Yonghyun Hwang Cc: Kirti Wankhede , Alex Williamson , Cornelia Huck , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Havard Skinnemoen , Moritz Fischer Subject: Re: [PATCH] vfio-mdev: support mediated device creation in kernel Message-ID: <20200323111404.GA4554@infradead.org> References: <20200320175910.180266-1-yonghyun@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200320175910.180266-1-yonghyun@google.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 20, 2020 at 10:59:10AM -0700, Yonghyun Hwang wrote: > To enable a mediated device, a device driver registers its device to VFIO > MDev framework. Once the mediated device gets enabled, UUID gets fed onto > the sysfs attribute, "create", to create the mediated device. This > additional step happens after boot-up gets complete. If the driver knows > how many mediated devices need to be created during probing time, the > additional step becomes cumbersome. This commit implements a new function > to allow the driver to create a mediated device in kernel. Please send this along with your proposed user so that we can understand the use. Without that new exports have no chance of going in anyway.