Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp718665ybp; Wed, 9 Oct 2019 03:10:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbwCdixY89KMa6RZdkP3mTCdMdnO1ykmELICrnTchhlfX2lFsSmM0KAgQ1dC3Bipmgea9s X-Received: by 2002:a17:906:cc85:: with SMTP id oq5mr1900098ejb.81.1570615836701; Wed, 09 Oct 2019 03:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570615836; cv=none; d=google.com; s=arc-20160816; b=T8utRbhhupXa6BDdZKJvytxlSe5REi3EPc0vytLpdrsC4tflR8ix65YmkJhop2XWKl Ytr4CXU0Ibvzaat1RVRrFUWxHP46TKcMew3dPBCa6ZGsnzzAVU16LiWsckOqU+0L8RHl CVR+XKpgv9kg8qiKfL4VLQw4YEzJMUAZwBEXiwj9L1pjISwpTtlimZJ7RTN3gl4ZEXxs W6OR0T3bX83O01O6zTUdAUd4jCsB3qYygdjGqcQK9dykgREHWC+oTLMasYtr7w4ruWby 1qZ0VRtKtsKHJkpVvN74l+3J3iD5LPwBdriBOC8QOivXLrjGMOTz1d7zFe/HDeVi/tBr oBNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject; bh=AbYT7LMtNspgYUtLuc1v/mvn663HfzOAgV78ocp3jrQ=; b=Ccl6kL778d3bRrRHVjFpd9ewGeEknIQdc02ZUr6lr5l8r5MMcpKJXr+7GrVCrirY0h Yp5F7HfbYyxohB4jf2vufWWIROsKcgq9GcURB9wbUuKisxiKsIDPzVn4mNMN/EUOVx36 GhmrDk2dvJ9nVSljqjyVGlWY4T97JPZ3wlI+DOrymJwuyNQ7Fp0pKGVbu8U4JzUUXdn2 RYoMCPUwM7AP+3KipBfEnQJGNLDhZGynjT1TcBrTN/1zuq/QWDpKYnHmeWmg9t8sFnxD NGYBZx1qQcvHb+BofDKZqIkcLeZZShBtbIVhtlsZP1JJOMNGamm8xUtIYvjs6PZpcruf bncg== 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 e2si1006035edv.369.2019.10.09.03.10.10; Wed, 09 Oct 2019 03:10:36 -0700 (PDT) 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 S1729742AbfJIKIG (ORCPT + 99 others); Wed, 9 Oct 2019 06:08:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51318 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfJIKIG (ORCPT ); Wed, 9 Oct 2019 06:08:06 -0400 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4C6E487638 for ; Wed, 9 Oct 2019 10:08:05 +0000 (UTC) Received: by mail-wr1-f72.google.com with SMTP id n3so879344wrt.9 for ; Wed, 09 Oct 2019 03:08:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AbYT7LMtNspgYUtLuc1v/mvn663HfzOAgV78ocp3jrQ=; b=meu8bdUs/j+LiRFpNIMIomtJ3pQWe8swYOYWsN5CI1ci4RwaCxI89rjcO4dQM5bCBu zAC4P2BoLm2r7LrNjWCQl6sWgpYgqm2KbCj5VGjkd2BuzkqXLmyGHQOK28pfdRzHSijv bdVTFSQOswr5CuK6a6G+4q7qMepEjp4OnXV1z7qNq+yXcONLiPE6UaKK+rmKEBmOPupO 0WkFGIfbOQHMEYFMEKTYB2qFhqEb4OZ+teXJZneEIej3Iqtku9WUFuVzY2DTsBc4RTNJ 4N9PiTRIbBWNCgKEYQktRDvzJ8QLQVV2PLLcuP/hyhKC/kyywTRJLzHIHjCH6JkHYLol xcGg== X-Gm-Message-State: APjAAAUKkdDSd21BYT8zJj6xwWj66HIQhWwAUR/vRM8wgN2vl1BntVux 5CygoG7YfQV+RvriF0X5+IEdJ0lhTgF542p5p1HQ9TbrFypxhtpckB91LITxrAdWRPMwZe/QUBb h02+zqlHI7PWq0QtgGqXeW766 X-Received: by 2002:a5d:4286:: with SMTP id k6mr2108631wrq.292.1570615683882; Wed, 09 Oct 2019 03:08:03 -0700 (PDT) X-Received: by 2002:a5d:4286:: with SMTP id k6mr2108601wrq.292.1570615683604; Wed, 09 Oct 2019 03:08:03 -0700 (PDT) Received: from [192.168.10.150] ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id q3sm2090140wru.33.2019.10.09.03.08.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Oct 2019 03:08:03 -0700 (PDT) Subject: Re: [PATCH 0/5] SEV fixes and performance enhancements To: "Lendacky, Thomas" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , "Singh, Brijesh" , David Rientjes References: From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: Date: Wed, 9 Oct 2019 12:08:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-2 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/10/19 23:17, Lendacky, Thomas wrote: > From: Tom Lendacky > > This patch series provides fixes in the area of ASID assignment and VM > deactivation. > > Additionally, it provides some performance enhancements by reducing the > number of WBINVD/DF_FLUSH invocations that are made. > > Note: The third patch in the series modifies a file that is outside of > the arch/x86/kvm directory. > > --- > > Patches based on https://git.kernel.org/pub/scm/virt/kvm/kvm.git next > and commit: > fd3edd4a9066 ("KVM: nVMX: cleanup and fix host 64-bit mode checks") > > Tom Lendacky (5): > KVM: SVM: Serialize access to the SEV ASID bitmap > KVM: SVM: Guard against DEACTIVATE when performing WBINVD/DF_FLUSH > KVM: SVM: Remove unneeded WBINVD and DF_FLUSH when starting SEV guests > KVM: SVM: Convert DEACTIVATE mutex to read/write semaphore > KVM: SVM: Reduce WBINVD/DF_FLUSH invocations > > arch/x86/kvm/svm.c | 105 +++++++++++++++++++++++++++-------- > drivers/crypto/ccp/psp-dev.c | 9 +++ > 2 files changed, 92 insertions(+), 22 deletions(-) > Queued, thanks. I squashed 4/5 and 5/5 since there's not much that survives of patch 4 after the next one. Paolo