[PATCH v2] drm/i915/gvt: Limit read hw reg to active vgpu
Zhenyu Wang
zhenyuw at linux.intel.com
Tue Nov 7 04:09:41 UTC 2017
On 2017.11.07 05:23:02 +0800, Xiong Zhang wrote:
> mmio_read_from_hw() let vgpu could read hw reg, if vgpu's workload
> is running on hw, things is good. Otherwise vgpu will get other
> vgpu's reg val, it is unsafe.
>
> This patch limit such hw access to active vgpu. If vgpu isn't
> running on hw, the reg read of this vgpu will get the last active
> val which saved at schedule_out.
>
> v2: ring timestamp is walking continuously even if the ring is idle.
> so read hw directly. (Zhenyu)
>
> Signed-off-by: Xiong Zhang <xiong.y.zhang at intel.com>
> ---
applied, thanks!
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20171107/53cbd138/attachment.sig>
More information about the intel-gvt-dev
mailing list