summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/vgpu.c
diff options
context:
space:
mode:
authorXiaoguang Chen <xiaoguang.chen@intel.com>2016-11-14 13:28:11 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2016-11-14 18:06:44 +0800
commita3614a868fd31b0e3ba670401a651ae89bb527aa (patch)
treec175d12006f0bd4f6bb9c33a346c050a298f352b /drivers/gpu/drm/i915/gvt/vgpu.c
parenta045fba47d1e61976bd3afef2dd161fdc2ffe32a (diff)
downloadblackbird-op-linux-a3614a868fd31b0e3ba670401a651ae89bb527aa.tar.gz
blackbird-op-linux-a3614a868fd31b0e3ba670401a651ae89bb527aa.zip
drm/i915/gvt: clear guest opregion
Since there's no opregion in vgpu so clear the opregion bits in case guest access it. Signed-off-by: Xiaoguang Chen <xiaoguang.chen@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/vgpu.c')
-rw-r--r--drivers/gpu/drm/i915/gvt/vgpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c
index 044125c0f407..4f64845d8a4c 100644
--- a/drivers/gpu/drm/i915/gvt/vgpu.c
+++ b/drivers/gpu/drm/i915/gvt/vgpu.c
@@ -99,6 +99,7 @@ static void setup_vgpu_cfg_space(struct intel_vgpu *vgpu,
*/
memset(vgpu_cfg_space(vgpu) + PCI_BASE_ADDRESS_1, 0, 4);
memset(vgpu_cfg_space(vgpu) + PCI_BASE_ADDRESS_3, 0, 4);
+ memset(vgpu_cfg_space(vgpu) + INTEL_GVT_PCI_OPREGION, 0, 4);
for (i = 0; i < INTEL_GVT_MAX_BAR_NUM; i++) {
vgpu->cfg_space.bar[i].size = pci_resource_len(
OpenPOWER on IntegriCloud