]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/kvmgt: Sanitize PCI bar emulation
authorChangbin Du <changbin.du@intel.com>
Tue, 15 Aug 2017 05:20:51 +0000 (13:20 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 8 Sep 2017 06:21:13 +0000 (14:21 +0800)
commit3b142d9d7ed52054a01cd070e481240f818a803e
tree87f8eeccc8b7a1ce37cbbd51a10b9690d2c77319
parent15f658d952855d2094a5b93dc763e7c59339b5b7
drm/i915/kvmgt: Sanitize PCI bar emulation

For PCI, 64bit bar consumes two BAR registers, but this doesn't mean
both of two BAR are valid. Actually the second BAR is regarded as
reserved in this case. So we shouldn't emulate the second BAR.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c