]> xenbits.xensource.com Git - qemu-xen.git/commit
xen, gfx passthrough: add opregion mapping
authorTiejun Chen <tiejun.chen@intel.com>
Wed, 15 Jul 2015 05:37:50 +0000 (13:37 +0800)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 2 Dec 2015 14:21:36 +0000 (14:21 +0000)
commit641b29dbea984c7871d830eaa39875c961df6f81
tree3d71adaf37e4d41e96a94970fa62e776574dadf7
parent63307c596cd8d03f03c3ba9f0f569972a74e6e43
xen, gfx passthrough: add opregion mapping

The OpRegion shouldn't be mapped 1:1 because the address in the host
can't be used in the guest directly.

This patch traps read and write access to the opregion of the Intel
GPU config space (offset 0xfc).

The original patch is from Jean Guyader <jean.guyader@eu.citrix.com>

Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/xen/xen_pt.h
hw/xen/xen_pt_config_init.c
hw/xen/xen_pt_graphics.c