RE: [PATCH 03/13] vfio/mdev: embedd struct mdev_parent in the parent data structure

Tian, Kevin
2022-06-28T09:44:52Z

> From: Christoph Hellwig
> Sent: Tuesday, June 28, 2022 1:14 PM
>
> Simplify mdev_{un}register_device by requiring the caller to pass in
> a structure allocate as part of the parent device structure. This
> removes the need for a list of parents and the separate mdev_parent
> refcount as we can simplify rely on the reference to the parent device.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>