[PATCH] drm/i915/gvt: Add emulation for BAR2 (aperture) with normal file RW approach

Zhenyu Wang zhenyuw at linux.intel.com
Wed Aug 16 08:21:01 UTC 2017


On 2017.08.15 13:14:04 +0800, changbin.du at intel.com wrote:
> From: Changbin Du <changbin.du at intel.com>
> 
> For vfio-pci, if the region support MMAP then it should support both
> mmap and normal file access. The user-space is free to choose which is
> being used. For qemu, we just need add 'x-no-mmap=on' for vfio-pci
> option.
> 
> Currently GVTg only support MMAP for BAR2. So GVTg will not work when
> user turn on x-no-mmap option.
> 
> This patch added file style access for BAR2, aka the GPU aperture. We
> map the entire aperture partition of active vGPU to kernel space when
> guest driver try to enable PCI Memory Space. Then we redirect the file
> RW operation from kvmgt to this mapped area.
> 
> Link: https://bugzilla.redhat.com/show_bug.cgi?id=1458032
> Signed-off-by: Changbin Du <changbin.du at intel.com>
> ---

applied, pls care for right order next time, thx!

-- 
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/20170816/40a57e15/attachment.sig>


More information about the intel-gvt-dev mailing list