Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1252141ybl; Tue, 13 Aug 2019 09:36:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoPtl29DbFnikDs6/rawt9MdCwUIl/ryYnFLn3FqPSqqN4yqpuseEoysywph+j+7ggUVTB X-Received: by 2002:a63:ff0c:: with SMTP id k12mr33730095pgi.186.1565714160455; Tue, 13 Aug 2019 09:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565714160; cv=none; d=google.com; s=arc-20160816; b=uKc447poeVxT37I+p1CbxPiApBdEZjmI2H5ZUzjo9TV2lCrvRmMSljvgp8wDvOteUZ I0MH4cs/+3Ch1vz20Jt9Mpwo9DjBwnse217pkxfcrZcT0rjR1XIMOpaAGGn978MIeSnK a3WglChToV+pkHwBE2COK4g8RFOPc5+p+8kJ9IxlWZQmCfOL56ltQ3ocx5c96yuO49BH ri0NrJvGxeV+1x+0mpismUIqyXfzupEsRTXUIuc7OAqk+B8HmSLu1KuuB8Da3A35K6WU lvjGGhFQp48qLTeakvu32TKeCo92BiRQRC3jNJKJ6Mw9uOUEvNiFHc36M8fWwM/lIYT1 4yqQ== 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=nIJzF4tIudya0k6wphxTOW/N9r29VmJVP7T6Eassq18=; b=o0JwsztxHHDSaaYHdgOrWDpuyDo2ZG2VEDDR+mGjQJBm8nKwbLdXhy6d3KhaFnIo2e HsQCqBJ+DdjoHmPrlzLnIaxNGK8iK/UDQ8qb8zb3FrfL5tIOwDlLu3Wdmga3ZbjEWtl8 goss1Ixq40KBXxbkK2vKC5DicYZTdZe98ISBeHnSSBOg5H/iiZfX9qc5qX750Tvgg2hH t6ipmFjd1zFU6Tn07TzEBdji5Ehi328kCImvIYxRPydFkpN7AtxpdEkzsSL0cagf1QT3 fQlVLZGeGBWlpMGFjpTtdfyoQScR+2RE9E5U1bfNWCVseoMws/gkHWMLHVn2QUs/6nHR PZqA== 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 w6si1228225pjr.100.2019.08.13.09.35.44; Tue, 13 Aug 2019 09:36: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 S1727420AbfHMQe5 (ORCPT + 99 others); Tue, 13 Aug 2019 12:34:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44880 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726637AbfHMQe5 (ORCPT ); Tue, 13 Aug 2019 12:34:57 -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 CF48E300D21F; Tue, 13 Aug 2019 16:34:56 +0000 (UTC) Received: from gondolin (dhcp-192-232.str.redhat.com [10.33.192.232]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3D02A794BE; Tue, 13 Aug 2019 16:34:52 +0000 (UTC) Date: Tue, 13 Aug 2019 18:34:49 +0200 From: Cornelia Huck To: Parav Pandit Cc: Alex Williamson , Kirti Wankhede , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "cjia@nvidia.com" Subject: Re: [PATCH v2 0/2] Simplify mtty driver and mdev core Message-ID: <20190813183449.703b2bf2.cohuck@redhat.com> In-Reply-To: References: <20190802065905.45239-1-parav@mellanox.com> <20190808141255.45236-1-parav@mellanox.com> <20190808170247.1fc2c4c4@x1.home> <77ffb1f8-e050-fdf5-e306-0a81614f7a88@nvidia.com> <20190813085246.1d642ae5@x1.home> 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.40]); Tue, 13 Aug 2019 16:34:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 Aug 2019 16:28:53 +0000 Parav Pandit wrote: > In bigger objective, I wanted to discuss post this cleanup patch, is to expand mdev to have more user friendly device names. Uh, what is unfriendly about uuids? > > Before we reach there, I should include a patch that eliminates storing UUID itself in the mdev_device. I do not think that's a great idea. A uuid is, well, a unique identifier. What's so bad about it that it should be eliminated? > > > Also, let's not > > overstate what this particular API callback provides, it's simply access to the > > uuid of the device, which is a fundamental property of a mediated device. > This fundamental property is available in form of device name already. Let me reiterate that the device name is a string containing a formatted uuid, not a uuid. > > > API was added simply to provide data abstraction, allowing the struct > > mdev_device to be opaque to vendor drivers. Thanks, > > > I get that part. I prefer to remove the UUID itself from the structure and therefore removing this API makes lot more sense? What I don't get is why you want to eliminate the uuid in the first place? Again, what's so bad about it?