diff options
author | 2018-01-31 14:42:44 +0800 | |
---|---|---|
committer | 2018-02-06 11:41:34 -0800 | |
commit | 95925b9595d95fdf2bfb73fc73dfb696f0c3fc7f (patch) | |
tree | c1da423cf5d1ccdd43dd3e0474a0b67634f15763 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | drm/i915/gvt: Fix aperture read/write emulation when enable x-no-mmap=on (diff) | |
download | wireguard-linux-95925b9595d95fdf2bfb73fc73dfb696f0c3fc7f.tar.xz wireguard-linux-95925b9595d95fdf2bfb73fc73dfb696f0c3fc7f.zip |
drm/i915/gvt: Use KVM r/w to access guest opregion
For KVMGT, the guest opregion, which is handled by VFIO, is actually a
piece of guest memory which won't be accessed by devices. So, its mfn
shouldn't be obtained through VFIO interface. This patch uses KVM r/w
interface to access the data in guest opregion.
Fix the guest opregion accessing issue when host "intel_iommu=on".
v3:
- Remove mapped flag for KVM/VFIO usage, as it's useless for KVM.
v2:
- Set the gpa correctly when invoking KVM r/w operations. (Zhenyu)
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Cc: Yan Zhao <yan.y.zhao@intel.com>
Cc: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions