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=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 C2767C433B4 for ; Mon, 26 Apr 2021 14:14:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 86DF16127A for ; Mon, 26 Apr 2021 14:14:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233674AbhDZOPN (ORCPT ); Mon, 26 Apr 2021 10:15:13 -0400 Received: from verein.lst.de ([213.95.11.211]:41447 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232575AbhDZOPM (ORCPT ); Mon, 26 Apr 2021 10:15:12 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id BD8EF68C4E; Mon, 26 Apr 2021 16:14:29 +0200 (CEST) Date: Mon, 26 Apr 2021 16:14:29 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Alex Williamson , Cornelia Huck , kvm@vger.kernel.org, Kirti Wankhede , "Raj, Ashok" , Dan Williams , Daniel Vetter , Christoph Hellwig , Leon Romanovsky , Max Gurtovoy , Tarun Gupta Subject: Re: [PATCH 09/12] vfio/mdev: Remove mdev_parent_ops dev_attr_groups Message-ID: <20210426141429.GG15209@lst.de> References: <0-v1-d88406ed308e+418-vfio3_jgg@nvidia.com> <9-v1-d88406ed308e+418-vfio3_jgg@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9-v1-d88406ed308e+418-vfio3_jgg@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Fri, Apr 23, 2021 at 08:03:06PM -0300, Jason Gunthorpe wrote: > This is only used by one sample to print a fixed string that is pointless. > > In general, having a device driver attach sysfs attributes to the parent > is horrific. This should never happen, and always leads to some kind of > liftime bug as it become very difficult for the sysfs attribute to go back > to any data owned by the device driver. > > Remove the general mechanism to create this abuse. Looks good, Reviewed-by: Christoph Hellwig