]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: fix an issue in emulating cfg space PCI_COMMAND
authorMin He <min.he@intel.com>
Wed, 21 Dec 2016 06:54:48 +0000 (14:54 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 26 Dec 2016 01:45:29 +0000 (09:45 +0800)
commit6f7f16b59a7530ff6f7da87982e249799b5c4632
tree7e47c651cd483948b98da13755a6a2fb600892c4
parentb8825610d5cd4f593cdcd07f74f261040dcd2fa9
drm/i915/gvt: fix an issue in emulating cfg space PCI_COMMAND

There's an issue in current cfg space emulation for PCI_COMMAND (offset
0x4): when guest changes some bits other than PCI_COMMAND_MEMORY, this
write operation will not be written to virutal cfg space successfully.

This patch is to fix the wrong behavior above.

Signed-off-by: Min He <min.he@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cfg_space.c