]> 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)
commitb8a8acef675cafcd9ada14c076f6aa0c2e62977d
tree87f8eeccc8b7a1ce37cbbd51a10b9690d2c77319
parent7c22f058594bc7fc74bd6c9eae9124821e73091f
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