Fix guest vGPU hang

Submitted by changbin.du@intel.com on March 1, 2018, 2:04 a.m.

Details

Reviewer None
Submitted March 1, 2018, 2:04 a.m.
Last Updated March 5, 2018, 7:39 a.m.
Revision 3

Cover Letter(s)

Revision 1
      From: Changbin Du <changbin.du@intel.com>

This fixed guest vGPU hang caused by very high dma setup overhead.

v3: follow the old logic for VFIO_IOMMU_NOTIFY_DMA_UNMAP at this point.
v2: Move mdev attr to debugfs. (zhenyu)

Changbin Du (2):
  drm/i915/gvt: Fix guest vGPU hang caused by very high dma setup
    overhead
  drm/i915/kvmgt: Add kvmgt debugfs entry nr_cache_entries under vgpu

 drivers/gpu/drm/i915/gvt/gtt.c       |  50 ++++--
 drivers/gpu/drm/i915/gvt/gvt.h       |  10 +-
 drivers/gpu/drm/i915/gvt/hypercall.h |   5 +
 drivers/gpu/drm/i915/gvt/kvmgt.c     | 310 +++++++++++++++++++++--------------
 drivers/gpu/drm/i915/gvt/mpt.h       |  28 ++++
 5 files changed, 269 insertions(+), 134 deletions(-)
    
Revision 2
      From: Changbin Du <changbin.du@intel.com>

This fixed guest vGPU hang caused by very high dma setup overhead.

v4: flat debugfs.
v3: follow the old logic for VFIO_IOMMU_NOTIFY_DMA_UNMAP at this point.
v2: Move mdev attr to debugfs. (zhenyu)

Changbin Du (2):
  drm/i915/gvt: Fix guest vGPU hang caused by very high dma setup
    overhead
  drm/i915/kvmgt: Add kvmgt debugfs entry nr_cache_entries under vgpu

 drivers/gpu/drm/i915/gvt/gtt.c       |  50 ++++--
 drivers/gpu/drm/i915/gvt/gvt.h       |  10 +-
 drivers/gpu/drm/i915/gvt/hypercall.h |   5 +
 drivers/gpu/drm/i915/gvt/kvmgt.c     | 302 +++++++++++++++++++++--------------
 drivers/gpu/drm/i915/gvt/mpt.h       |  28 ++++
 5 files changed, 261 insertions(+), 134 deletions(-)
    
Revision 3
      From: Changbin Du <changbin.du@intel.com>

This fixed guest vGPU hang caused by very high dma setup overhead.

v5: fix compilling error for some config.
v4: flat debugfs.
v3: follow the old logic for VFIO_IOMMU_NOTIFY_DMA_UNMAP at this point.
v2: Move mdev attr to debugfs. (zhenyu)

Changbin Du (2):
  drm/i915/gvt: Fix guest vGPU hang caused by very high dma setup
    overhead
  drm/i915/kvmgt: Add kvmgt debugfs entry nr_cache_entries under vgpu

 drivers/gpu/drm/i915/gvt/gtt.c       |  50 ++++--
 drivers/gpu/drm/i915/gvt/gvt.h       |  10 +-
 drivers/gpu/drm/i915/gvt/hypercall.h |   5 +
 drivers/gpu/drm/i915/gvt/kvmgt.c     | 303 +++++++++++++++++++++--------------
 drivers/gpu/drm/i915/gvt/mpt.h       |  28 ++++
 5 files changed, 262 insertions(+), 134 deletions(-)
    

Revisions