]> git.proxmox.com Git - mirror_qemu.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>
Thu, 10 Sep 2015 12:04:29 +0000 (12:04 +0000)
commit5cec8aa38cc3b7c8cf9ce66abdda28b3598e2d88
tree941cd81f5141e33369ead449debbbb8d0a31c573
parent998250e976613decf9e0da68b3922df330eac3f6
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