[Intel-gfx] [PATCH 11/34] drm/i915/gvt: merge struct kvmgt_guest_info into strut intel_vgpu
Jason Gunthorpe
jgg at nvidia.com
Mon Apr 11 16:13:55 UTC 2022
On Mon, Apr 11, 2022 at 04:13:40PM +0200, Christoph Hellwig wrote:
> Consolidate the per-VGPU structures into a single one.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> ---
> drivers/gpu/drm/i915/gvt/gvt.h | 8 +++
> drivers/gpu/drm/i915/gvt/kvmgt.c | 117 ++++++++++++-------------------
> 2 files changed, 52 insertions(+), 73 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
> @@ -236,6 +239,11 @@ struct intel_vgpu {
> atomic_t released;
> struct vfio_device *vfio_device;
> struct vfio_group *vfio_group;
> +
> + struct kvm_page_track_notifier_node track_node;
> +#define NR_BKT (1 << 18)
> + struct hlist_head ptable[NR_BKT];
> +#undef NR_BKT
It is what was there before, but it sure read oddly..
Jason
More information about the Intel-gfx
mailing list