Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp126914iof; Sun, 5 Jun 2022 23:10:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTM3nyALwQCNUXHqP6dmYf/CKrBHSD28Gz1IS3qK2AYhzp7hjT5GSLPIqelUjZ7UNQNyZw X-Received: by 2002:a63:401:0:b0:3fc:8810:f0ae with SMTP id 1-20020a630401000000b003fc8810f0aemr19559916pge.335.1654495809421; Sun, 05 Jun 2022 23:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654495809; cv=none; d=google.com; s=arc-20160816; b=wk4irzESfk//0udMqDl1FmLnU6tluSyzVV4ERxO5SPJkKhrRkb4jpobHBEUMV9qaeg HkcgIjgmKedmJekjt/hJnos24/AdE1qCFlCETg+EyQZcE3WJh3iRQyXgCqd5X9JlpanI HWcSl5c9X603fqCXR7/PnLFmVPrLu0GptxgNXGJGV1PNNI78+5dlAlRq/Zdxw0EOZ1V9 3MZGWWKN+jSbHhoVtj4ruXEzGuyU4DlOhoU62HKhCDCmgxCY03E7P0KmRfQrgDBT8xsP uLzFND845yOrYu2evMoOkBWv1rcjNwUL6fgqnjjiMMqoBl/OTWPQL1ZeLrl2A+FJg/cD fxGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gTXDQA3UAEO7tNX14XzZUCf6yPO/J44tyIzcuOM5FZY=; b=yjjP5jmk1S4Et8ICNJFpsq8eHwOJP8I3aNfv0Q+L8cT9AFi1kxfaK1Zp1HGrZnse/7 0xNLehTxecpbZhvIvcuInZsxdvFH+JQYIMtb4B/trUshbe7+aU6oTV7rC9qL4okAjWDI CZg9wVI7Q+KjG8ZUuvhCkU6iUTPRPD880mzBC67uesKbDH5YcVI9LDeSDBMeFptYmm80 ORJOn5hdbpT+qiF14YtwTZ7EWfXXmjX8q0cb/Cmyj79NgICFCfzKzDabQVxYoGLCe+vi cCIaUa7jllwEgqZDg1S4pdBobkx2R/f6+XlOGKkfWcWLWCgJEqjYWSBerSL6djLaAYfj mGBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PRsbXjfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k13-20020a634b4d000000b003c144fa99cdsi16107044pgl.543.2022.06.05.23.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:10:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PRsbXjfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 94396D319D; Sun, 5 Jun 2022 22:01:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349587AbiFEGdb (ORCPT + 99 others); Sun, 5 Jun 2022 02:33:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237490AbiFEGda (ORCPT ); Sun, 5 Jun 2022 02:33:30 -0400 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 B54CB37ABA; Sat, 4 Jun 2022 23:33:27 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id s14so9829378plk.8; Sat, 04 Jun 2022 23:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gTXDQA3UAEO7tNX14XzZUCf6yPO/J44tyIzcuOM5FZY=; b=PRsbXjfB88WBPVEEVMd1QO47Rm5Z0Uo7CJQDHZOPxrdcUMfknjsD5XyjxZ3wT0mkf7 cw2rPiTQHfV8DiFTbHD3i67TMhNXqFm/6OVrJkdYzi/NqqlA2JbIpSVT8tu7r3l8GVKm ibJyNZ5Uf6Xo/8F2M5DDhWEAklmOseRj0z6kSB1nM0KFN29uyaCYaBehip9VsE9DVqpd ZvtwYq8CqDseNTYt0R5GQOLMGyvq6vFJ5DPyV0/6lhduwWWQO0sTuZZ5QY5CEZZk9VGB Xg3LIKVF+yLtkQ/EPgUYvRyjB2iutICMdnFMK4Nu1X5rlGYDKkhGzaJpkxkrKWN7zoXb c6HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gTXDQA3UAEO7tNX14XzZUCf6yPO/J44tyIzcuOM5FZY=; b=3++PQSoasaWng0/EyvdH29pZYGpGYtZ1TTsY2+BCd2QkMjSFIY5NJX6BRIETQ8jNQo l4Ey6JIxK7L+Ts7uGGtoj4y1+gdm5vMF3xK2yzWeeh+99fKpKTcrv6YwcHsIZxyvelGj /a0KbTBL5Btb7zU58Rg6fqFrxOr8jxs7r3jDDkhTptGpHqWJ5A/EhKRIu2pRmZ+iBYd2 aAI9TepxGLu4eAXgc/98WGplSl6/eY+11GONwSiXB8ZoNtylZ3blwOBR+5200UywnUJ2 tA6HVdTMInP5VViz3jGO82aQK8jeoON3RcOgju/UfIYI6KpzK7elOGtwtJRCbDHEdkdF ZowA== X-Gm-Message-State: AOAM5305UVeBZAcMPVtHW5DMUO75REYN2jvnvULWN2qMYHJnwqxnWrS0 uSp+vg0aF+gyjSEFsszJVV/Zd5Fh/7c= X-Received: by 2002:a17:903:41c9:b0:164:57e:4b22 with SMTP id u9-20020a17090341c900b00164057e4b22mr18320539ple.2.1654410806883; Sat, 04 Jun 2022 23:33:26 -0700 (PDT) Received: from localhost ([198.11.178.15]) by smtp.gmail.com with ESMTPSA id w19-20020a170902ca1300b001616b71e5e6sm8063122pld.175.2022.06.04.23.33.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jun 2022 23:33:26 -0700 (PDT) From: Lai Jiangshan To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Maxim Levitsky , Lai Jiangshan Subject: [PATCH 0/6] KVM: Trivial cleanups Date: Sun, 5 Jun 2022 14:34:11 +0800 Message-Id: <20220605063417.308311-1-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lai Jiangshan A small collection of trivial cleanups. Lai Jiangshan (6): KVM: X86/MMU: Remove unused macros from paging_tmpl.h KVM: X86/MMU: Remove unused PT32_DIR_BASE_ADDR_MASK from mmu.c KVM: X86/MMU: Update comments in paging_tmpl.h for the kinds of guest PTEs KVM: Rename ack_flush() to ack_kick() KVM: X86/MMU: Remove useless mmu_topup_memory_caches() in kvm_mmu_pte_write() KVM: X86/SVM: Use root_level in svm_load_mmu_pgd() arch/x86/kvm/mmu/mmu.c | 9 --------- arch/x86/kvm/mmu/paging_tmpl.h | 16 ++-------------- arch/x86/kvm/svm/svm.c | 2 +- virt/kvm/kvm_main.c | 4 ++-- 4 files changed, 5 insertions(+), 26 deletions(-) -- 2.19.1.6.gb485710b