From: "Jan Beulich" Subject: Re: GPU passthrough performance regression in >4GB vms due to XSA-60 changes Date: Fri, 16 May 2014 12:38:59 +0100 Message-ID: <537614F30200007800013139@mail.emea.novell.com> References: <537484A9.9000001@gmail.com> <5374CFF80200007800012A53@mail.emea.novell.com> <5374AEBD.7090403@gmail.com> <5374DBFD0200007800012AEE@mail.emea.novell.com> <5374C389.507@gmail.com> <5374D08F.2050202@gmail.com> <5374D5B0.2080808@gmail.com> <537502710200007800012C7E@mail.emea.novell.com> <5374DFCA.10207@gmail.com> <5375CD4F0200007800012E27@mail.emea.novell.com> <5375F410.2060406@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WlGTd-0005Qy-IG for xen-devel@lists.xenproject.org; Fri, 16 May 2014 11:39:01 +0000 In-Reply-To: <5375F410.2060406@gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tomasz Wroblewski Cc: Jinsong Liu , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 16.05.14 at 13:18, wrote: >> If I coded up a patch to deal with this on -unstable, would you be >> able to test that? > Willing to give it a go (xen major version updates are often problematic > to do though so can't promise success). What would your patch be doing? > Adding entries to MTRR for the relocated regions? This and properly declare the region in ACPI's _CRS. For starters I'll probably try keeping the WB default overlaid with UC variable ranges, as that's going to be the less intrusive change. > I do fear it might not > be enough since thru recent debugging it seems there are more wrongs > done by the relocation code - the p2m entries for the relocated region > are not setup with p2m_mmio_direct for example but rather default > p2m_ram_rw (unless this has changed again past 4.3.2). Hmm, I would hope that's not a problem anymore on -unstable, but then again I neither recall a change nor am I sure where this would go wrong (in the hypervisor - all it cares about is that the tools properly invoke XEN_DOMCTL_memory_mapping; please check that these calls are being made). Jan