drm/i915/gvt: Fix GDRST vreg state after reset
authorfred gao <fred.gao@intel.com>
Wed, 24 May 2017 04:02:24 +0000 (12:02 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 8 Jun 2017 05:59:21 +0000 (13:59 +0800)
commit0811fa663015c469510f30e2a0f2fe8fd383b224
treebe1b0356a46bd10d69cd605b9d466776174ccfb8
parent178cd160c6652f57571ba3dc0a9091a1f41d9bc8
drm/i915/gvt: Fix GDRST vreg state after reset

Emulating the GDRST read behavior correctly to ack the
guest reset request.

v2:
- split the original patch into two:
  GDRST read handler and virtual gpu reset. (Zhenyu)
v3:
- emulate the GDRST read right after write. (Zhenyu)

Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhang Yulei <yulei.zhang@intel.com>
Signed-off-by: fred gao <fred.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c