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 66942C43334 for ; Fri, 24 Jun 2022 17:18:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbiFXRSN (ORCPT ); Fri, 24 Jun 2022 13:18:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231166AbiFXRSM (ORCPT ); Fri, 24 Jun 2022 13:18:12 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1578B1EACE for ; Fri, 24 Jun 2022 10:18:11 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id l6-20020a170902f68600b0016a36fb2c9aso1578766plg.2 for ; Fri, 24 Jun 2022 10:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=reply-to:date:message-id:mime-version:subject:from:to:cc; bh=v5yna8ItikU2fb5u1sePnTAPT+OQna41hrQ1rG7Dn0Y=; b=KyIuHFn8LfqulIFW1TY5xQGMGKE5mrB5KYFzJL5pvXrFz9Z+E8TP798YlQiCx0euRQ hACEWEJ6aNEucjttEX9XhVoJgxjBu2sOAZ6pLxOxcPm2wmyAZSgZiK1BPzML1Um0M+k0 yE3Tl0UTpLUitJyMN8wUwnX93sPI9+HQ3Ao49FkAPuK34WwuRNEqEE1fHuLkb/buqMpa 5bPwAIpA7c/yXX9a7gflIxragXVwgj9D6/tNfTijiNYw1xmnkLwLY4q6a/K2E6yn5heC hRaa4vU+hwzw42TSYRgStAn1/+LuwEpNObCwzt4XMpgU+9X/gGLcIHT7DhbBvD5anPBu i8Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:reply-to:date:message-id:mime-version:subject :from:to:cc; bh=v5yna8ItikU2fb5u1sePnTAPT+OQna41hrQ1rG7Dn0Y=; b=MfnVv7FgIt5nit+QpfseiUCclSWYd4fu3fcyNF35NO5gXjILVMclHHyJ4XhUomiuwr E0d2eLho9cDSU51D0OoGUEassq+NojeJXXviD37Jltow3X5+SmEzoref4crZDA9YceLb Dpm7aK0tn1Zs3wHNarElzg1Mc48oILObC4nOskurbyk2tXqsmSnalRm5UkQhJJbgZyup 7RHAA6NBA33H3JGGm9ODDsHroUvfBcbUmyqR3aVXMtega7QzIg84L5x+Y4glKRQSt6Yq XYBsfGZVP56DirrNQ/Y/ykwRstq5hRyC+P/vb6pqsX6/XYpYlD+WD/LpbmHpegT/C5HA 0VDQ== X-Gm-Message-State: AJIora/tmjHIz07i72U40A7UWTME1IwWbf7eVBmI50H8+zOTsZjOjPiU X59goPuGL8Ijq5I4P46raio6lor0j5g= X-Google-Smtp-Source: AGRyM1vNM3+l3baD53Rb//jNTwLDUmtvY2umobKNWJc93BvkYCSdkLSQPoj0oan9ZhziLBTWSveAjIySE5E= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6a00:2450:b0:4f7:bf07:c063 with SMTP id d16-20020a056a00245000b004f7bf07c063mr47194536pfj.51.1656091090609; Fri, 24 Jun 2022 10:18:10 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 24 Jun 2022 17:18:05 +0000 Message-Id: <20220624171808.2845941-1-seanjc@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.37.0.rc0.161.g10f37bed90-goog Subject: [PATCH 0/3] KVM: x86/mmu: Cleanups for eager page splitting From: Sean Christopherson To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, David Matlack Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eager page splitting cleanups for a few minor things that were noted in code review but didn't make it into the committed code. The last patch in particular is a bit more urgent than I first realized. I had forgotten that pte_list_desc is now 128 bytes, and I also had a brain fart and thought it was just allocating pointers, i.e. 8 bytes. In other words, I was thinking the 513 object buffer was "only" wasting ~8kb per VM, whereas it actually costs ~64kb per VM. Sean Christopherson (3): KVM: x86/mmu: Avoid subtle pointer arithmetic in kvm_mmu_child_role() KVM: x86/mmu: Use "unsigned int", not "u32", for SPTEs' @access info KVM: x86/mmu: Buffer nested MMU split_desc_cache only by default capacity arch/x86/kvm/mmu/mmu.c | 53 ++++++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 18 deletions(-) base-commit: 4b88b1a518b337de1252b8180519ca4c00015c9e -- 2.37.0.rc0.161.g10f37bed90-goog