Skip to content

Commit

Permalink
drm/i915/gvt: Change the max length of mmio_reg_rw from 4 to 8
Browse files Browse the repository at this point in the history
When linux guest access mmio with __raw_i915_read64 or __raw_i915_write64,
its length is 8 bytes.

This fix the linux guest in xengt couldn't boot up as it fail in
reading pv_info->magic.

Fixes: 65f9f6f ("drm/i915/gvt: Optimize MMIO register handling for some large MMIO blocks")
Signed-off-by: Xiong Zhang <[email protected]>
Signed-off-by: Zhenyu Wang <[email protected]>
  • Loading branch information
xiongzha authored and zhenyw committed Aug 7, 2017
1 parent 02b6ed4 commit d608659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gvt/handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -3028,7 +3028,7 @@ int intel_vgpu_mmio_reg_rw(struct intel_vgpu *vgpu, unsigned int offset,
gvt_mmio_func func;
int ret;

if (WARN_ON(bytes > 4))
if (WARN_ON(bytes > 8))
return -EINVAL;

/*
Expand Down

0 comments on commit d608659

Please sign in to comment.