[PATCH 2/8] vfio/mdev: embedd struct mdev_parent in the parent data structure
Tian, Kevin
kevin.tian at intel.com
Thu Jun 9 06:52:20 UTC 2022
> From: Christoph Hellwig <hch at lst.de>
> Sent: Tuesday, June 7, 2022 1:49 PM
>
> >> - mdev_unregister_device(i915->drm.dev);
> >> + mdev_unregister_parent(&i915->vgpu.parent);
> >
> > Ideally, parent should be member of gvt. There could be multiple vgpus
> > created on one physical device. Intel folks would be better reviewer
> > though.
>
> i915->vgpu is not for a single VGPU, but all VGPU related core
> support.
>
Yes i915->gpu is per parent, but i915->gvt is a better fit. The former
is solely for mmio snapshot while the latter contains everything
actually related to vgpu core support.
apart from that,
Reviewed-by: Kevin Tian <kevin.tian at intel.com>
More information about the intel-gvt-dev
mailing list