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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33542C7EE26 for ; Wed, 24 May 2023 00:15:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238977AbjEXAP4 (ORCPT ); Tue, 23 May 2023 20:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235564AbjEXAPz (ORCPT ); Tue, 23 May 2023 20:15:55 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BD9CE9 for ; Tue, 23 May 2023 17:15:54 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-ba83fed51b0so378570276.3 for ; Tue, 23 May 2023 17:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1684887353; x=1687479353; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=E3Ei1WsPfm2Hux/Q1LRXJnHLklVga1WAMQvUGJxh54M=; b=GuJuPO1fHWpYBq0IegjDxU7i2PDrHifCbc6UzKN9oK8SeKbGW13LY8iBOefEqcUN9T LW/RdfXTvTw3Juimg1YUW+SI2yODcw/kmUGZtr3ANPf0iFhwE2kFH86Jn0FPKpvwe8TW 4gi4gDkr9yLLGOAt49/UxoBuSOc5gj9Z4IaQmskvEfp2LB1PVvjbqIDPLPeXATfbVdPF rHEuq6gpPl5POMDswIy5tu2Nj3yinLRUyFFnLMFnGWCKhKe2E/zGislCS+qTOfi3obum 9yJtVlvMkRZl7r1p1yXxS+iuFg3+n4NIc2mD/o5QYxhp57WhjJg3HyP9UygbIPHQsY0p wehQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684887353; x=1687479353; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=E3Ei1WsPfm2Hux/Q1LRXJnHLklVga1WAMQvUGJxh54M=; b=hThh2Aw/A7pZZNtvIU91GFF6R2pmwZSTa8V13o/P3J/U8Lki9u5ux8it/ksqwrS4fR DhauxZSFBnAK7i6IEMIoPSeaS6NGlG9Vx9rVEkNQhudO0kM9+xuU2IwO8k8CXv8v++eN Tx909AtLxG+FEiBdnn/ef3hNzHRjBuJiP+ax10o/rMHfm2+/64DI3GlYL6RhPzTPQ8tZ s+xOODonq3BI55j9WHFMZfOYuzV6P8yscspKQGnib0L9XnVe1317USEwxs9lLgn+ma0e Sc4y1Dvk7OZ0Q6vWz3wYjfN/q4kbZFKQSmvHqRxxnFgvY4gYgIpLZnHZ0HkyRtm7Ien/ D2Gg== X-Gm-Message-State: AC+VfDxlgCon7muK3j5FvVqjwYxQwwfMhlbnUaAHJZxo7Y3MlB3cM/Q8 p8bGQNekLXerIXH+rZNjSOcXS4d/JHU= X-Google-Smtp-Source: ACHHUZ5+ZqmN9qXIv2YP0zRnN2CY9UdjFotfELZMEk+iCUjSF4s4rHPqxARNg+z81Jvqj32TeGV3cm3HLa4= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:b127:0:b0:b96:7676:db4a with SMTP id g39-20020a25b127000000b00b967676db4amr9654331ybj.0.1684887353658; Tue, 23 May 2023 17:15:53 -0700 (PDT) Date: Tue, 23 May 2023 17:15:52 -0700 In-Reply-To: <20230509134825.1523-1-yan.y.zhao@intel.com> Mime-Version: 1.0 References: <20230509134825.1523-1-yan.y.zhao@intel.com> Message-ID: Subject: Re: [PATCH v2 0/6] KVM: x86/mmu: refine memtype related mmu zap From: Sean Christopherson To: Yan Zhao Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, pbonzini@redhat.com Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Tue, May 09, 2023, Yan Zhao wrote: > This series refines mmu zap caused by EPT memory type update. > Yan Zhao (6): > KVM: x86/mmu: add a new mmu zap helper to indicate memtype changes > KVM: x86/mmu: only zap EPT when guest CR0_CD changes > KVM: x86/mmu: only zap EPT when guest MTRR changes > KVM: x86/mmu: Zap all EPT leaf entries according noncoherent DMA count > KVM: x86: Keep a per-VM MTRR state > KVM: x86/mmu: use per-VM based MTRR for EPT > > arch/x86/include/asm/kvm_host.h | 3 + > arch/x86/kvm/mmu.h | 1 + > arch/x86/kvm/mmu/mmu.c | 18 ++++- > arch/x86/kvm/mtrr.c | 112 +++++++++++++++++++++++++------- > arch/x86/kvm/vmx/vmx.c | 2 +- > arch/x86/kvm/x86.c | 10 ++- > arch/x86/kvm/x86.h | 6 +- > 7 files changed, 122 insertions(+), 30 deletions(-) > > > base-commit: 5c291b93e5d665380dbecc6944973583f9565ee5 > -- To save us both a bit of pain, can you base the next version on top of my PAT cleanup[*]? I am planning on applying that series "soon". Thanks! [*] https://lore.kernel.org/all/20230511233351.635053-1-seanjc@google.com