drm/i915/gvt: ignore unexpected pvinfo write
authorWeinan Li <weinan.z.li@intel.com>
Fri, 14 Jun 2019 01:35:19 +0000 (09:35 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 17 Jun 2019 07:45:41 +0000 (15:45 +0800)
commit971afec3a5373f96684ad899579f6a4d51462410
tree0fad1ad4ab99a80bfb0c1871864e161ebeab233c
parent15e7f52a4596b496ce3da2fa4c1f94c6fb0023f2
drm/i915/gvt: ignore unexpected pvinfo write

There is pvinfo writing come from vgpu might be unexpected, like
writing to one unknown address, GVT-g should do as reserved register
to discard any invalid write. Now GVT-g lets it write to the vreg
without prompt error message, should ignore the unexpected pvinfo
write access and leave the vreg as the default value.

For possible guest query GVT-g host feature, this returned proper
value instead of wrong guest setting.

v2: ignore unexpected pvinfo write instead of return predefined value

Fixes: e39c5add3221 ("drm/i915/gvt: vGPU MMIO virtualization")
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Weinan Li <weinan.z.li@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c