drm/i915/gvt: add VFIO EDID region
authorHang Yuan <hang.yuan@linux.intel.com>
Wed, 30 Jan 2019 10:25:54 +0000 (18:25 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 31 Jan 2019 03:41:25 +0000 (11:41 +0800)
commit39c68e87bc50a71bcfe93582d9b0673ef30db418
treeb9e3c5c1ce7a7e7a996b6e0dd5039f5b90e3bc81
parent1ca20f33df42ee61a4ae1bf4f2abf8e5f77a16fc
drm/i915/gvt: add VFIO EDID region

Implement VFIO EDID region for vgpu. Support EDID blob update and notify
guest on link state change via hotplug event.

v3: move struct edid_region to kvmgt.c <zhenyu>
v2: add EDID sanity check and size update <zhenyu>

Tested-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Hang Yuan <hang.yuan@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/hypercall.h
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/mpt.h
drivers/gpu/drm/i915/gvt/vgpu.c