]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit642b2b9e50d75916ca7297bdf5a2fe7c8586eb40
tree0fad1ad4ab99a80bfb0c1871864e161ebeab233c
parent7235495c28c3913c8f7fe272cc231471fd6dafd7
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: 6e5a935462ba ("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