From: Jean Guyader Subject: Re: [PATCH] qemu-xen: Intel GPU passthrough, fix OpRegion mapping. Date: Thu, 1 Dec 2011 18:39:12 +0000 Message-ID: <20111201183912.GA11938@spongy.cam.xci-test.com> References: <1322411006-12629-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: Content-Disposition: inline In-Reply-To: <1322411006-12629-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: "xen-devel@lists.xensource.com" Cc: Ian Jackson , "allen.m.kay@intel.com" , Jean Guyader List-Id: xen-devel@lists.xenproject.org On 27/11 04:23, Jean Guyader wrote: > > 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). > > To work correctly this patch needs a change in hvmloader. > > HVMloader will allocate 2 pages for the OpRegion and write this address > on the config space of the Intel GPU. Qemu will trap and map the host > OpRegion to the guest. Any write to this offset after that won't have > any effect. Any read of this config space offset will return the address > in the guest. > Ian/Allen, The pending change to hvmloader has been applied already to xen-unstable. Is the change alright with you? Jean