OSDN Git Service

drm/i915/gvt: subsitute kvm_read/write_guest with vfio_dma_rw
authorYan Zhao <yan.y.zhao@intel.com>
Fri, 13 Mar 2020 03:11:09 +0000 (23:11 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 14 Apr 2020 08:29:07 +0000 (16:29 +0800)
commitb59b2a3ee567e5a30688e148556ae33a3196bc9d
tree5e5e5381ece88524e002b78d60ec53a035e706e5
parent776d95b768e664efdc9f5cc078b981a006d3bff4
drm/i915/gvt: subsitute kvm_read/write_guest with vfio_dma_rw

As a device model, it is better to read/write guest memory using vfio
interface, so that vfio is able to maintain dirty info of device IOVAs.

Cc: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200313031109.7989-1-yan.y.zhao@intel.com
drivers/gpu/drm/i915/gvt/kvmgt.c