vfio-mdev: Make mdev_parent private
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 30 Dec 2016 15:13:41 +0000 (08:13 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 30 Dec 2016 15:13:41 +0000 (08:13 -0700)
commit9372e6feaafb65d88f667ffb5b7b425f8568344f
tree2fa165cb84cc92d297d283f4fe171b045dcbeb61
parent42930553a7c11f06351bc08b889808d0f6020f08
vfio-mdev: Make mdev_parent private

Rather than hoping for good behavior by marking some elements
internal, enforce it by making the entire structure private and
creating an accessor function for the one useful external field.

Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Jike Song <jike.song@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed by: Kirti Wankhede <kwankhede@nvidia.com>
Documentation/vfio-mediated-device.txt
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/vfio/mdev/mdev_core.c
drivers/vfio/mdev/mdev_private.h
include/linux/mdev.h
samples/vfio-mdev/mtty.c