Thread (33 messages) 33 messages, 6 authors, 2021-06-16

Re: [PATCH 10/10] vfio/mbochs: Convert to use vfio_register_group_dev()

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2021-06-15 14:13:08
Also in: dri-devel, intel-gfx, kvm, linux-s390

On Tue, Jun 15, 2021 at 03:35:19PM +0200, Christoph Hellwig wrote:
From: Jason Gunthorpe <jgg@nvidia.com>

This is straightforward conversion, the mdev_state is actually serving as
the vfio_device and we can replace all the mdev_get_drvdata()'s and the
wonky dead code with a simple container_of().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 samples/vfio-mdev/mbochs.c | 163 +++++++++++++++++++++----------------
 1 file changed, 91 insertions(+), 72 deletions(-)
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help