diff options
author | Xiaoguang Chen <xiaoguang.chen@intel.com> | 2016-11-14 13:28:11 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2016-11-14 18:06:44 +0800 |
commit | a3614a868fd31b0e3ba670401a651ae89bb527aa (patch) | |
tree | c175d12006f0bd4f6bb9c33a346c050a298f352b /drivers/gpu/drm/i915/gvt/vgpu.c | |
parent | a045fba47d1e61976bd3afef2dd161fdc2ffe32a (diff) | |
download | blackbird-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.c | 1 |
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( |