diff options
author | Tina Zhang <tina.zhang@intel.com> | 2018-05-14 13:59:18 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2018-05-16 11:12:27 +0800 |
commit | 1c6ccad8a4b110bac3f9ff6db954ab5a74c2e861 (patch) | |
tree | cf5349aba2fb0d32d34efacb7b5863c253cc4dfe /drivers/gpu/drm/i915/i915_pvinfo.h | |
parent | 41e403d04e7050c8d88682939febcdbe117d4c82 (diff) | |
download | linux-stable-1c6ccad8a4b110bac3f9ff6db954ab5a74c2e861.tar.gz linux-stable-1c6ccad8a4b110bac3f9ff6db954ab5a74c2e861.tar.bz2 linux-stable-1c6ccad8a4b110bac3f9ff6db954ab5a74c2e861.zip |
drm/i915/gvt: Deliver guest cursor hotspot info
Guest OS driver uses PV info registers to deliver cursor hotspot info
to host. This patch is used to get cursor hotspot info from virtual
registers and deliver it to host userspace.
v4->v5:
- remove CI warning.
v3->v4:
- return UINT_MAX when x_hot/y_hot is invalid. (Zhenyu)
- correct version.
v2->v3:
- add validate_hotspot(). (Zhenyu)
v1->v2:
- name as cursor_x_hot/cursor_y_hot. (Zhenyu)
- use i915_reg_t definition instead of magic numbers. (Zhenyu)
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_pvinfo.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_pvinfo.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_pvinfo.h b/drivers/gpu/drm/i915/i915_pvinfo.h index 195203f298df..d61914a11756 100644 --- a/drivers/gpu/drm/i915/i915_pvinfo.h +++ b/drivers/gpu/drm/i915/i915_pvinfo.h @@ -93,7 +93,10 @@ struct vgt_if { u32 rsv5[4]; u32 g2v_notify; - u32 rsv6[7]; + u32 rsv6[5]; + + u32 cursor_x_hot; + u32 cursor_y_hot; struct { u32 lo; |