summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJike Song <jike.song@intel.com>2016-12-08 04:00:35 +0100
committerZhenyu Wang <zhenyuw@linux.intel.com>2016-12-16 09:55:26 +0100
commitf440c8a572d7e0002d5c2c8dbd740130ad8ffa5b (patch)
tree9511b191afb97fab97f0fd0747b9c7cc214568ae /firmware
parentdrm/i915/gvt/kvmgt: replace kmalloc() by kzalloc() (diff)
downloadlinux-f440c8a572d7e0002d5c2c8dbd740130ad8ffa5b.tar.xz
linux-f440c8a572d7e0002d5c2c8dbd740130ad8ffa5b.zip
drm/i915/gvt/kvmgt: read/write GPA via KVM API
Previously to read/write a GPA, we at first try to pin the GFN it belongs to, then translate the pinned PFN to a kernel HVA, then read/write it. This is however not necessary. A GFN should be pinned IFF it would be accessed by peripheral devices (DMA), not by CPU. This patch changes the read/write method to KVM API, which will leverage userspace HVA and copy_{from|to}_usr instead. Signed-off-by: Jike Song <jike.song@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions