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)
commit5d5fe176155e6cfa4a53accb90e4010baa5266d0
tree87f8eeccc8b7a1ce37cbbd51a10b9690d2c77319
parentbb9d2d050503c69695557b8b741276686ca2a396
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