From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6087C433DB for ; Fri, 12 Mar 2021 18:27:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8512464F52 for ; Fri, 12 Mar 2021 18:27:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233276AbhCLS0b (ORCPT ); Fri, 12 Mar 2021 13:26:31 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:31174 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232554AbhCLS0U (ORCPT ); Fri, 12 Mar 2021 13:26:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615573579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u0a1s8cUycfijhNnJ29Qlw3GsB6GzjfunAFDFNCC4sE=; b=V+isDUxU4DQCLEIxmc+SRFu9dD06zTsd8Gy/Ad09thLCMKn1hz90UU81dIyi9JEY4IJ4W6 QwEMO3fmeC1j2V7KYxKhjFyakOSz68ASDVhv3OZU6GFFPaQGxfjJesK8NjybkDwizkPlss L0N33deJLJZz3gY3dErlZDgQ80FTfoY= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-26-gIeHIPcKM6yFDOVs_B1VJA-1; Fri, 12 Mar 2021 13:26:17 -0500 X-MC-Unique: gIeHIPcKM6yFDOVs_B1VJA-1 Received: by mail-wr1-f72.google.com with SMTP id g2so11534233wrx.20 for ; Fri, 12 Mar 2021 10:26:17 -0800 (PST) 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=u0a1s8cUycfijhNnJ29Qlw3GsB6GzjfunAFDFNCC4sE=; b=UyExalR6/s7sn7azoRVCuTAOSymy32gx7ATOtkfy0FRAobZNrrO2jN/Z3ZM0cUMjOf zgHWxy5oe1O5v1Rw5Kb7ONsZQeczE6RXGVJ+b9I33FGBm0L2pLe+P12Gihdl9TbqO7hq 9WUAkyfNRilYX8sgP2o/RvOCMDvDS3Iw/aiDigNpbk4yuT+Fw2y84kcDvChGeFZe5ZxG GIN/HS1VwUHzYZjuNpeQglfkJ+bF6qDLnVgiyTb2sgSc+IqUaVL7wqyqpcjuw7ZqXXGu U8mqhvtvEZqTH5M9O1R+V8eyuFgCEWW7dvj1srm9POHFoZ4n0oh3b0OZs9fLCY6DYNKJ REnQ== X-Gm-Message-State: AOAM5300Cq68vEGAxQKDRPWGcO9bLZZ9ceyfh9aNryMZv++Nl4btP8ct ov+FYtQX7TO50b5H6s+IfXLWN4fPza5lf2BpHh7C8iOCzpSrMnNK+XQTeLDZEKWwF+kLJXeMO8M 5Xi5oUf1MKjbsRXnT77UyUyR0 X-Received: by 2002:a5d:4e85:: with SMTP id e5mr15667592wru.218.1615573576405; Fri, 12 Mar 2021 10:26:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAmHuAKV2XlBV7w6c7IQBtAemH47YT187WJ7ylMIQufm8cRSiFUG/3y6R7lz3aof1qY+oNtQ== X-Received: by 2002:a5d:4e85:: with SMTP id e5mr15667579wru.218.1615573576197; Fri, 12 Mar 2021 10:26:16 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id r2sm8484995wrt.8.2021.03.12.10.26.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Mar 2021 10:26:15 -0800 (PST) Subject: Re: [PATCH v2 0/4] KVM: x86: Fixups and PAE+SME fixes To: Sean Christopherson Cc: Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Lendacky , Maxim Levitsky , Brijesh Singh References: <20210309224207.1218275-1-seanjc@google.com> From: Paolo Bonzini Message-ID: <86c8e391-b115-3898-7fc2-0ea9e0a0966f@redhat.com> Date: Fri, 12 Mar 2021 19:26:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210309224207.1218275-1-seanjc@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/03/21 23:42, Sean Christopherson wrote: > A few stragglers bundled together to hopefully avoid more messy conflicts. > > v2 (relative to the fixup mini-series): > - Moved SME fixes from "PCID fixup" to its correct location, in "Mark > PAE roots decrypted". > - Collected Reviewed/Tested-by tags for MMU_PRESENT+MMIO snafu, though > I expect they'll get squashed away. > - Added the PAE patches from the SME shadow paging fixes to avoid > spreading out the dependencies. > > Sean Christopherson (4): > KVM: x86: Fixup "Get active PCID only when writing a CR3 value" > KVM: x86/mmu: Exclude the MMU_PRESENT bit from MMIO SPTE's generation > KVM: x86/mmu: Use '0' as the one and only value for an invalid PAE > root > KVM: x86/mmu: Mark the PAE roots as decrypted for shadow paging > > arch/x86/kvm/mmu/mmu.c | 46 ++++++++++++++++++++++++--------- > arch/x86/kvm/mmu/mmu_audit.c | 2 +- > arch/x86/kvm/mmu/mmu_internal.h | 10 +++++++ > arch/x86/kvm/mmu/spte.h | 12 +++++---- > arch/x86/kvm/svm/svm.c | 9 +++++-- > 5 files changed, 59 insertions(+), 20 deletions(-) > Queued, thanks. Paolo