From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] hvmloader: Intel GPU passthrough, reverse OpRegion Date: Wed, 23 Nov 2011 17:20:18 +0000 Message-ID: References: <1322064460-22248-1-git-send-email-jean.guyader@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1322064460-22248-1-git-send-email-jean.guyader@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jean Guyader , xen-devel@lists.xensource.com Cc: allen.m.kay@intel.com List-Id: xen-devel@lists.xenproject.org On 23/11/2011 16:07, "Jean Guyader" wrote: > > 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 RAM 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. Please use mem_hole_alloc() rather than adjusting {low,high}_mem_pgend. Is it correct to do this for *all* gfx devices with Intel vendor id? -- Keir > Signed-off-by: Jean Guyader > --- > tools/firmware/hvmloader/config.h | 1 + > tools/firmware/hvmloader/e820.c | 8 ++++++++ > tools/firmware/hvmloader/pci.c | 28 ++++++++++++++++++++++++++++ > tools/firmware/hvmloader/pci_regs.h | 2 ++ > 4 files changed, 39 insertions(+), 0 deletions(-) > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel