]> xenbits.xensource.com Git - xen.git/commit
hvmloader: Intel GPU passthrough, reverse OpRegion
authorJean Guyader <jean.guyader@eu.citrix.com>
Thu, 24 Nov 2011 15:43:59 +0000 (15:43 +0000)
committerJean Guyader <jean.guyader@eu.citrix.com>
Thu, 24 Nov 2011 15:43:59 +0000 (15:43 +0000)
commitcefeffc7e5831b8e17a0e01cd62e0ae920f2a941
treef5feb7e40036ba5f51e6df41c01521275c9fda83
parentc00341e69234028616f5ea20500099f9c141d24d
hvmloader: Intel GPU passthrough, reverse OpRegion

The Intel GPU uses a two pages NVS region called OpRegion.
In order to get full support for the driver in the guest
we need to map this region.

This patch reserves 2 pages on the top of the memory in the
reserved area and mark this region as NVS in the e820. Then
we write the address to the config space (offset 0xfc) so the
device model can map the OpRegion at this address in the guest.

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
tools/firmware/hvmloader/config.h
tools/firmware/hvmloader/e820.c
tools/firmware/hvmloader/pci.c
tools/firmware/hvmloader/pci_regs.h