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 CE3F2CCA47B for ; Tue, 12 Jul 2022 02:07:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229811AbiGLCH3 (ORCPT ); Mon, 11 Jul 2022 22:07:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbiGLCH1 (ORCPT ); Mon, 11 Jul 2022 22:07:27 -0400 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F25752E69 for ; Mon, 11 Jul 2022 19:07:27 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id v202-20020a6361d3000000b0041615ebed02so1404608pgb.5 for ; Mon, 11 Jul 2022 19:07:27 -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=QxrAx9Z3+VyOEyazCWc6ZknWo0acaxb9Pf/HQs6PsAU=; b=DBjdB7rX8R2eCVzw8wxQJx2Kj+fv0iNeqo5S7ZFjEbuMgqe7rYf55iL4WCbW9ik+/a fEwbjW0e3PJhGlIRVHz6GO3dXU7C/ndm3gip4tCAzTXs6bdcDK3yWFYcN5sEFGdSDoH0 qSIGoI/nnpY/vZ6p6Rtqb+hMnXqSU9L7S8wv8X7psaBSgqxU1hP4hZ5wavNoEBOfmCA8 5jwwrotx0+mbG1gnqXFOdyNvWKIUctndsZrKUwIJHKbjwb6XwtyH8g6E+V8aDraV8hBg iaJ0DthFmgkP/XGdKbR3sp0vi1xQucy6rD3dW7S0q4BwTZArHLsCEIJ/bXSj5tFulDWy 0whQ== 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=QxrAx9Z3+VyOEyazCWc6ZknWo0acaxb9Pf/HQs6PsAU=; b=moQlOacJ93kOm7ftsbsVi3hZe5GCjUzCzbfKcIrWUFXC1cI/xLxTONm0mN17vvumHr wYlZ09j3A9K6AugkxGrnR9Ta/WmW6ICf0rNYliQ9kRyfUOdzcqO9XTvGQ9KBg07pWaJD FM6Iq2dUgT65/gwcdDOc/nq63dv5xkpHg6PIHBq5+hvcKlnSMQaMEwfhL36t5+azGuQd Fchn84a+PGk8SMKqygg78lYCujOJCs0XtJUJ6bhem2eqKa/Ax8VmLqFSHl5Qr7bYeb1B 4QRmrmTzVBNfEoyOS3TS7D7Eha7F0Zee0SO/7BbrAtcmtVLhfgHPD0l5RLFq3DHHkokJ my7w== X-Gm-Message-State: AJIora9soDHKperU9YTrDNdnbDFlJhePXQeb1dFug+2TcNLb35k0Jtpl mA70GLHRdytCgeGjqRyNsTRqWVweI2g= X-Google-Smtp-Source: AGRyM1ugA4oKuvcg6J/K1llP2AXgK0bfOhRgp6ZPou6i8YdfcnRAbWrCCGHFQB+O6KZnck8mTFXNxjM5Yb8= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:f650:b0:15f:3a10:a020 with SMTP id m16-20020a170902f65000b0015f3a10a020mr21278189plg.61.1657591646627; Mon, 11 Jul 2022 19:07:26 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 12 Jul 2022 02:07:21 +0000 Message-Id: <20220712020724.1262121-1-seanjc@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.37.0.144.g8ac04bfd2-goog Subject: [PATCH v3 0/3] KVM: x86/mmu: Cleanups from eager page splitting From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: 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. Patch 3 is kinda silly. If it weren't for the typo, I wouldn't have bothered (the existing comment is good enough, I couldn't stop tinkering). v3: - Collect more reviews. [David] - https://lore.kernel.org/all/20220624213039.2872507-1-seanjc@google.com v2: - Add helper to compute SPTE's index into its parent. [David]. - Collect reviews [David]. - Tweak the comment in the last patch after more analysis. v1: - https://lore.kernel.org/all/20220624171808.2845941-1-seanjc@google.com Sean Christopherson (3): KVM: x86/mmu: Add optimized helper to retrieve an SPTE's index KVM: x86/mmu: Expand quadrant comment for PG_LEVEL_4K shadow pages KVM: x86/mmu: Fix typo and tweak comment for split_desc_cache capacity arch/x86/kvm/mmu/mmu.c | 52 +++++++++++++++++++--------------- arch/x86/kvm/mmu/paging_tmpl.h | 4 +-- arch/x86/kvm/mmu/spte.h | 6 ++++ 3 files changed, 37 insertions(+), 25 deletions(-) base-commit: b9b71f43683ae9d76b0989249607bbe8c9eb6c5c -- 2.37.0.144.g8ac04bfd2-goog