Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935250AbcLUXgT (ORCPT ); Wed, 21 Dec 2016 18:36:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50934 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934966AbcLUXgS (ORCPT ); Wed, 21 Dec 2016 18:36:18 -0500 Subject: [PATCH 0/4] vfio-mdev: Clean namespace and better define ABI From: Alex Williamson To: alex.williamson@redhat.com Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Date: Wed, 21 Dec 2016 16:27:15 -0700 Message-ID: <20161221232315.6091.30612.stgit@gimli.home> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 21 Dec 2016 23:27:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 25 Cleanup the namespace a bit by prefixing structures with mdev_ and also more concretely define the mdev interface. Structs with comments defining which fields are private vs public tempts poor behavior, especially for an interface where we expect out of tree vendor drivers. Thanks, Alex --- Alex Williamson (4): vfio-mdev: Remove an unused structure element vfio-mdev: de-polute the namespace, rename parent_device & parent_ops vfio-mdev: Make mdev_parent private vfio-mdev: Make mdev_device private and abstract interfaces drivers/gpu/drm/i915/gvt/kvmgt.c | 22 +++++++------ drivers/vfio/mdev/mdev_core.c | 64 ++++++++++++++++++++++++++++++-------- drivers/vfio/mdev/mdev_private.h | 28 +++++++++++++++-- drivers/vfio/mdev/mdev_sysfs.c | 8 ++--- drivers/vfio/mdev/vfio_mdev.c | 12 ++++--- include/linux/mdev.h | 54 +++++++------------------------- samples/vfio-mdev/mtty.c | 28 +++++++++-------- 7 files changed, 123 insertions(+), 93 deletions(-)