]> git.karo-electronics.de Git - linux-beck.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)
commit34700631bd465de3e555e5964f36a0919c466aa8
tree7e47c651cd483948b98da13755a6a2fb600892c4
parent8ff842fd9eab69f8cf99fdd21ce25a5a0411473e
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