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 B1039C0032E for ; Sat, 21 Oct 2023 09:11:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231138AbjJUJLE (ORCPT ); Sat, 21 Oct 2023 05:11:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbjJUJK7 (ORCPT ); Sat, 21 Oct 2023 05:10:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC5EE10CA; Sat, 21 Oct 2023 02:10:54 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D006C433C8; Sat, 21 Oct 2023 09:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697879454; bh=nooTBPOV1b+3XpXMfXZty/WQcMVOJOlAfpiWnEipiEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kKTI2ON2rmB5eb4ObvDDX1t0PcfbaSEMyu/9J0GRvxDyH8xScoKFABoQbpBG5rSG3 vqZ/5EaVpSc+tHKUXsayXQOB0DiP+315ltStRGGovA3VodQwXq8BhvZ5aQ9ISuxijO vwgpObedYh3EOCVIwVdD0QRpjgza1lnMtf6aYbQA= Date: Sat, 21 Oct 2023 11:10:51 +0200 From: Greg Kroah-Hartman To: David Matlack Cc: Sean Christopherson , stable@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Pattara Teerapong , David Stevens , Yiwei Zhang , Paul Hsia , Paolo Bonzini Subject: Re: [PATCH] KVM: x86/mmu: Stop zapping invalidated TDP MMU roots asynchronously Message-ID: <2023102145-unstylish-vertigo-ab7c@gregkh> References: <20231019201138.2076865-1-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 20, 2023 at 11:52:34AM -0700, David Matlack wrote: > On 2023-10-19 01:11 PM, Sean Christopherson wrote: > > [ Upstream commit 0df9dab891ff0d9b646d82e4fe038229e4c02451 ] > > > > Stop zapping invalidate TDP MMU roots via work queue now that KVM > > preserves TDP MMU roots until they are explicitly invalidated. Zapping > > roots asynchronously was effectively a workaround to avoid stalling a vCPU > > for an extended during if a vCPU unloaded a root, which at the time > > happened whenever the guest toggled CR0.WP (a frequent operation for some > > guest kernels). > > > [...] > > > > Reported-by: Pattara Teerapong > > Cc: David Stevens > > Cc: Yiwei Zhang > > Cc: Paul Hsia > > Cc: stable@vger.kernel.org > > Signed-off-by: Sean Christopherson > > Message-Id: <20230916003916.2545000-4-seanjc@google.com> > > Signed-off-by: Paolo Bonzini > > Cc: David Matlack > > Signed-off-by: Sean Christopherson > > --- > > Reviewed-by: David Matlack > Tested-by: David Matlack > > (Ran all KVM selftests and kvm-unit-tests with lockdep enabled.) Thanks, now queued up. greg k-h