[PATCH 7/7] drm/i915: Allow Broadwell guest with Intel GVT-g

Zhiyuan Lv
2015-08-20T07:58:23Z

I915 Broadwell guest driver is now supported to run inside a VM with
Intel GVT-g

Signed-off-by: Zhiyuan Lv <zhiyuan.lv@intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
---
drivers/gpu/drm/i915/i915_vgpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_vgpu.c b/drivers/gpu/drm/i915/i915_vgpu.c
index 5eee75b..fdeb461 100644
--- a/drivers/gpu/drm/i915/i915_vgpu.c
+++ b/drivers/gpu/drm/i915/i915_vgpu.c
@@ -66,7 +66,7 @@ void i915_check_vgpu(struct drm_device *dev)

BUILD_BUG_ON(sizeof(struct vgt_if) != VGT_PVINFO_SIZE);

- if (!IS_HASWELL(dev))
+ if (!IS_HASWELL(dev) && !IS_BROADWELL(dev))
return;

magic = readq(dev_priv->regs + vgtif_reg(magic));
--
1.9.1