drm/i915/gvt: Alloc and Init guest opregion at vgpu creation
authorXiong Zhang <xiong.y.zhang@intel.com>
Mon, 20 Nov 2017 07:31:15 +0000 (15:31 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 4 Dec 2017 03:24:32 +0000 (11:24 +0800)
commit4dff110b15aea2f7653957a70921a7be1f45d59b
treec2cc5634066a2e16c4fc61e53b189c48a3bcccfb
parentea26c96d59b27e878fe61e8ef0fed840d2281a2f
drm/i915/gvt: Alloc and Init guest opregion at vgpu creation

Currently guest opregion is allocated and initialised when guest
write opregion base register. This is too late for kvmgt, so
move it to vgpu_create time.

Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Tested-by: Tina Zhang <tina.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cfg_space.c
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/opregion.c
drivers/gpu/drm/i915/gvt/vgpu.c