diff options
author | Yan Zhao <[email protected]> | 2020-12-23 11:45:00 +0800 |
---|---|---|
committer | Zhenyu Wang <[email protected]> | 2020-12-25 11:15:15 +0800 |
commit | 3c4f2120d890b53855366c2e53ebe20806ed0cad (patch) | |
tree | a816fdc0d3e087588851abdb94fcaa039c2e73e9 /lib/mpi/mpi-sub-ui.c | |
parent | 493f30cd086e5250e77f1ff201d22872a46e83e4 (diff) |
drm/i915/gvt: scan VM ctx pages
Logical Context is actually a big batch buffer consisting of multiple
LRI commands + saved registers. It comprises Ring Context (the first
0x50 dwords) and Engine Context. The registers defined in Engine Context
are command accessible, and safe to execute in VM Context.
This patch
1. stops copy Ring Context and only copys Engine Context from VM Context
2. audits VM Engine Contexts to disallow undesired LRIs
(if accessing registers out of Engine Context that hardware generates).
Cc: Kevin Tian <[email protected]>
Signed-off-by: Wang Zhi <[email protected]>
Signed-off-by: Yan Zhao <[email protected]>
Signed-off-by: Zhenyu Wang <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Zhenyu Wang <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions