Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6527911ybh; Thu, 8 Aug 2019 01:32:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVpwyq+4WVOSXTKWUP24kjNHtMWRxdfbmaopnvdYJBh62hPY6afYuiU5koqmRgGkOoy+bB X-Received: by 2002:a17:902:ff10:: with SMTP id f16mr12130046plj.141.1565253120461; Thu, 08 Aug 2019 01:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565253120; cv=none; d=google.com; s=arc-20160816; b=pmsWqjnUAXMrHfzOjvxuLFJwVwCUpcVLFuv8oXYM9T+r3wXvtGhEa1Gvkhepz7OHzs wWYFbuWjVpsDoOSZ4iOvIW1XXCEWC1f5Nqln4+j7E5dAflJDkR6n4CxZYs68DJAogfjp p5YNp92FHlqxl+3K/LEHY7DCttYvvN9tB874nik6JmbwsfaJxV2gH8jY04duvo4/YRcK JNS10OWZM01pvcW4CcMpltPBhzlUmorq7GCtgCHgq0KWoSOSsAA1I8Meo8KWkWIUIj9y FeQaM0jEJKApxIV2GFTlJqorg5Uby64+KA5ePdxBiCW855FnBCu6YZXjz/hBW57jr5uV DdfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=j9n6+/P/5VVs126WwvSyuaJK5UmBW1uZ0PdTfk8r/Po=; b=rm9g6xqN28dvGx33mBNOdZQLg161yYoqju3JF+egzjL14pE0DlSFSXIpez8SyrgW6M PDAMVsC1/MFHek2Tev3Q61VPJ6GklGaV87ZT9100ZwzwExULSus3AkxIjrqRERta3+kp iCI8/IZnUlbt+F1a204RbPc8Qje8GTNF2rNpjyz6OS33AgUuLokCc2lOLmqnaEo7gOJC e/++C+RXolU0PF2YBc0ky1N4d/0dW0kTKCTStOdK2itv47CHXUS2TwA8xATAEkY8uAaE drwvm7+Lhf4maNzuwb2qV+33sJb2ZwJ9mfDZ1L76HlinrNpvdUOWyi9ofiddgK3A0yjT VR1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14si46258880pga.452.2019.08.08.01.31.43; Thu, 08 Aug 2019 01:32:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732081AbfHHI3h (ORCPT + 99 others); Thu, 8 Aug 2019 04:29:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60810 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731677AbfHHI3h (ORCPT ); Thu, 8 Aug 2019 04:29:37 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 29FD030A00AB; Thu, 8 Aug 2019 08:29:37 +0000 (UTC) Received: from gondolin (dhcp-192-181.str.redhat.com [10.33.192.181]) by smtp.corp.redhat.com (Postfix) with ESMTP id A02C75C219; Thu, 8 Aug 2019 08:29:33 +0000 (UTC) Date: Thu, 8 Aug 2019 10:29:31 +0200 From: Cornelia Huck To: Parav Pandit Cc: "kvm@vger.kernel.org" , "wankhede@nvidia.com" , "linux-kernel@vger.kernel.org" , "alex.williamson@redhat.com" , "cjia@nvidia.com" Subject: Re: [PATCH v1 2/2] vfio/mdev: Removed unused and redundant API for mdev UUID Message-ID: <20190808102931.40c6b4ae.cohuck@redhat.com> In-Reply-To: References: <20190802065905.45239-1-parav@mellanox.com> <20190806141826.52712-1-parav@mellanox.com> <20190806141826.52712-3-parav@mellanox.com> <20190807112801.6b2ceb36.cohuck@redhat.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Thu, 08 Aug 2019 08:29:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Aug 2019 16:33:11 +0000 Parav Pandit wrote: > > -----Original Message----- > > From: Cornelia Huck > > Sent: Wednesday, August 7, 2019 2:58 PM > > To: Parav Pandit > > Cc: kvm@vger.kernel.org; wankhede@nvidia.com; linux- > > kernel@vger.kernel.org; alex.williamson@redhat.com; cjia@nvidia.com > > Subject: Re: [PATCH v1 2/2] vfio/mdev: Removed unused and redundant API for > > mdev UUID > > > > On Tue, 6 Aug 2019 09:18:26 -0500 > > Parav Pandit wrote: > > > > > There is no single production driver who is interested in mdev device > > > uuid. Currently UUID is mainly used to derive a device name. > > > Additionally mdev device name is already available using core kernel > > > API dev_name(). > > > > Well, the mdev code actually uses the uuid to check for duplicates before > > registration with the driver core would fail... I'd just drop the two sentences > Yes, it does the check. But its mainly used to derive a device name. > And to ensure that there are no two devices with duplicate name, it compares with the uuid. > > Even this 16 bytes storage is redundant. > Subsequently, I will submit a patch to get rid of storing this 16 bytes of UUID too. > Because for duplicate name check, device name itself is pretty good enough. > > Since I ran out of time and rc-4 is going on, I differed the 3rd simplification patch. I'm not sure why we'd want to ditch the uuid; it's not like it is taking up huge amounts of space... and I see the device name being derived from the unique identifier that is the uuid, and not as the unique identifier itself. > > Commit message actually came from the thoughts of 3rd patch, but I see that without it, its not so intuitive. > > > talking about the device name, IMHO they don't really add useful information; > > but I'll leave that decision to the maintainers. > > > > > > > > Hence removed unused exported symbol. > > > > > > Signed-off-by: Parav Pandit > > > --- > > > Changelog: > > > v0->v1: > > > - Updated commit log to address comments from Cornelia > > > --- > > > drivers/vfio/mdev/mdev_core.c | 6 ------ > > > include/linux/mdev.h | 1 - > > > 2 files changed, 7 deletions(-) > > > > Reviewed-by: Cornelia Huck > Thanks for the review.