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 507F3C4332F for ; Thu, 3 Mar 2022 21:20:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236485AbiCCVVi (ORCPT ); Thu, 3 Mar 2022 16:21:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234966AbiCCVVf (ORCPT ); Thu, 3 Mar 2022 16:21:35 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EE55131F40 for ; Thu, 3 Mar 2022 13:20:49 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id e13so5919903plh.3 for ; Thu, 03 Mar 2022 13:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rBo3jZiOb9ie0OVzwiL7KeGDNnK38FfYtqhoqdr/oLw=; b=IJHZYEdssdmdMlb2+aXz7JQ31BYbsvxLjYn9LnFurux/4lGINeibeBYeYOLyvSYb6T 43F49jU7r0OH9Dn2nbJXJiyr6bwUvbkoNuwsrrYEmU5SzoCFWWVkVnuEfrd1PoCQMDdr daQG9ZYuvKIbVaXwdtHq2W3ck+wtdheldhbx4u2bU3K/JvlZpKI4fy6c4Kaa68bdT93F anByzCC9lUmSFFeMhNhDq63ay0IY6H7Ea6QFR9XQGKtOWtkn+9qIM7uU1DGNGHQbnNxF jnNYlCpotrlOK8EaQU4y8l6ULSHiBb/SWtYyVkvTo8g9rBKmqktKAS3VLlFBSfQhha8x 65Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rBo3jZiOb9ie0OVzwiL7KeGDNnK38FfYtqhoqdr/oLw=; b=wXoUA/WU35YLvVcHuCbnZKlckV9IX2eiNJ8TjNZ2QLGiu9VQjW92Ce/iABusTYbQHt a22ZL3jJCpOJm2Ka0KTBDMrA3Pl+baXC5i8xovyV/cSp6isDNVoCiniypvtzrma7YaIP FrxTJTT6QrroNEzkWuBQaPtvQVESH0mjidEo08zmmsTjRh6Ws/CNpfD4cCnnB18Vr+zk t7+yGax8KsfZpMluHpoRmk/Ygv2A+oA1GUSv1krATg65E3LX+s+u61q+etXZsXMsc7AC vDJWiYmj/uLtA2BsWLyPfKqEMRlCWwHu+wHzyFwNr7v1km2R+IgguFX2L+85OVVaiUJi XsRQ== X-Gm-Message-State: AOAM533citGc4hM1qZELOf8/9OIpGbxe9wu0/sWbAig3sNuukCfWRqgl 4/b6ViL30BFiiSA4e0X7wzZq+Q== X-Google-Smtp-Source: ABdhPJyZej1S+ipPlCpE5zwxhOct0Jzxus2BoBq3B7nKU4FQPqch3LAAJv5IuWcy80rDQRSInXeQGg== X-Received: by 2002:a17:90a:1b81:b0:1be:ecf2:4cf8 with SMTP id w1-20020a17090a1b8100b001beecf24cf8mr7455284pjc.72.1646342448990; Thu, 03 Mar 2022 13:20:48 -0800 (PST) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id o5-20020a655bc5000000b00372f7ecfcecsm2753439pgr.37.2022.03.03.13.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 13:20:47 -0800 (PST) Date: Thu, 3 Mar 2022 21:20:44 +0000 From: Sean Christopherson To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , David Hildenbrand , David Matlack , Ben Gardon , Mingwei Zhang Subject: Re: [PATCH v4 21/30] KVM: x86/mmu: Zap invalidated roots via asynchronous worker Message-ID: References: <20220303193842.370645-1-pbonzini@redhat.com> <20220303193842.370645-22-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220303193842.370645-22-pbonzini@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 03, 2022, Paolo Bonzini wrote: > The only issue is that kvm_tdp_mmu_invalidate_all_roots() now assumes that > there is at least one reference in kvm->users_count; so if the VM is dying > just go through the slow path, as there is nothing to gain by using the fast > zapping. This isn't actually implemented. :-)