Received: by 10.223.164.202 with SMTP id h10csp710391wrb; Fri, 10 Nov 2017 13:28:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMZZt41JqZAJHBcY4Q+pmpoV92kpAg43M5Q435xMUgRhAMFRJLTOm+2O830FPaOOrVX0lcOh X-Received: by 10.98.181.1 with SMTP id y1mr1732640pfe.240.1510349291639; Fri, 10 Nov 2017 13:28:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510349291; cv=none; d=google.com; s=arc-20160816; b=hBl0SYTR3TgE0QloRVi87jiIRkgnE3GroWpoDfA4mr41OSrCCtfPGzCw/k1MqB0JDh e16dPDku8GO5NSPrATV1s58OUouTMlycyI2PNdsIwhSqS9JMQ7tkR0jo+nkzRO+DkDvO k5uYar9XwTAjjCqWBRKPQ8TAuz995T8ryLTHZkTuCh2L8a21RXWWqx7AIktilkixZDPK noqbwQJT9qv2SNC5IQPn7lWkc+MpB3ugB0w1sFTpDk36Pmm27h5ri+WTuuQgVcfPIaYa KG8DgdSV7TwtYolbYVWPRYWaT8MNmdP8vNMlsCyPQx+8MlxQyRlQNwgYk83PT2zuNjOh PI3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=dgc5b5jWOcTEr6BwnCjoB3Isl7klqWUHV/r9L1RfdHo=; b=iRI8ilG28teEcwY3gBZk9U4wsEgVvT8tpBB7X1U7t3U9pNcN/sTp01wNnYe4Ak1jw4 fQTNkSzbLJXK+4OWXlZDC42LkF3Tj61Btn6pciz3aSaLeK6AG70WgSEAOt7o4kH0mLqS CsgrgzcZvRxujmmsdlEvV/H6dW0x42SUALfQXWRVM/FenN54bvBvuTc5H/mpzCSyV8xr bSeKxuTyMNLdTWFuQIbcsG9pMdUo+odpIuPS6q7bnp2qeNJvRqzckK/3EWaHX5V1xSJY YmTUMVdQYgk7wl2M8t+UHocM/UyEhFngf8e3TK4BG1DKoDlUly20aiPShW4tmYoa2Z4c pzdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w63si3484234pgb.612.2017.11.10.13.27.59; Fri, 10 Nov 2017 13:28:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754011AbdKJV1X (ORCPT + 83 others); Fri, 10 Nov 2017 16:27:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38270 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750896AbdKJV1W (ORCPT ); Fri, 10 Nov 2017 16:27:22 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 07B647EAA1; Fri, 10 Nov 2017 21:27:22 +0000 (UTC) Received: from flask (unknown [10.43.2.80]) by smtp.corp.redhat.com (Postfix) with SMTP id 01D3B5D978; Fri, 10 Nov 2017 21:27:19 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Fri, 10 Nov 2017 22:27:19 +0100 Date: Fri, 10 Nov 2017 22:27:19 +0100 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] KVM: SVM: obey guest PAT Message-ID: <20171110212718.GA2189@flask> References: <20171026071327.15427-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171026071327.15427-1-pbonzini@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 10 Nov 2017 21:27:22 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-10-26 09:13+0200, Paolo Bonzini: > For many years some users of assigned devices have reported worse > performance on AMD processors with NPT than on AMD without NPT, > Intel or bare metal. > > The reason turned out to be that SVM is discarding the guest PAT > setting and uses the default (PA0=PA4=WB, PA1=PA5=WT, PA2=PA6=UC-, > PA3=UC). The guest might be using a different setting, and > especially might want write combining but isn't getting it > (instead getting slow UC or UC- accesses). > > Thanks a lot to geoff@hostfission.com for noticing the relation > to the g_pat setting. The patch has been tested also by a bunch > of people on VFIO users forums. > > Fixes: 709ddebf81cb40e3c36c6109a7892e8b93a09464 > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=196409 > Cc: stable@vger.kernel.org > Signed-off-by: Paolo Bonzini Applied, thanks. From 1582332747823216160@xxx Thu Oct 26 15:01:41 +0000 2017 X-GM-THRID: 1582303334601229964 X-Gmail-Labels: Inbox,Category Forums