From patchwork Wed Feb 1 19:46:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Krause X-Patchwork-Id: 51538 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp478422wrn; Wed, 1 Feb 2023 11:53:51 -0800 (PST) X-Google-Smtp-Source: AK7set88PLa/WZ0lBDhPGZKsY8VDa44kG4CIyikU8I3DOqnEisxVtDhnL2uuYJsCgzbZV1R8BMPa X-Received: by 2002:a05:6402:320d:b0:48e:f679:e733 with SMTP id g13-20020a056402320d00b0048ef679e733mr4029657eda.36.1675281231210; Wed, 01 Feb 2023 11:53:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675281231; cv=none; d=google.com; s=arc-20160816; b=Dj3pREn0nwUhP2PAuTTPDntCeeNOZnYN3RfRD6sWcLwibhCKzmTjHUmQ8p7m5UgBsz FmXECKoWNBXkc3sTEnIdu26IVGrbNbUdhrsmmMiiI7ZZtyxNy4+PVLPGhumgH9mIBea9 Y+iN23+KIyMDm6QHZsKrAinfxRYrtvQoLe2RoCR0vKZd2HMIKG8OwfPkWOpLaWqb9gA7 Qp6xqtu3HQ8+qv+LQyZD/6ca7k/v2cRX3P1lGxA2LL1SE/i1jmBoHSosSpUlJYIFGuDx g6ut8EXlW6b/2dy4Rpg0vJrymR+KCLKEgpogcnx+7/bENPdTtIxBGV6tLHW/SM0NnIEB 7JqQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4WIfgFu7sWBxHubiDa704oZ6rZ4jmUPQhefB2XMq/DY=; b=XY2+SMWDGEA8vE86UIkUzN1VPT5oBzBykgRzrmnvCjz0OQ5vnDopAskdEHkrAgaVAj FMpXbEPGo6qWpGUkSjVcSz2MAWnxpeAp/6ZBNGMccN7S7ATU/WSXjmwxO31EcyfSwQ94 4jCiZ6qGevP9HtTX3lRuctU9sFPZrTyiTLnDatmEyt2GMMqxSCQvIoHuniPLYZtuNRrV 9HJzXzhFfzlxHUVlW0I24cX5aSsGAKiNzSFnfe/5itNiPaZfJS51B2xW4ELwK8dcxGyJ VF0F7DynKGnyDjdX7zPIPquIL0a6TfOVk1bEZUiaY7fpi7R82EOUbdYMooHdG0dDVlcw fe7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@grsecurity.net header.s=grsec header.b=HWSMoT32; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=grsecurity.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z41-20020a509e2c000000b0049e2dbaeb16si24345529ede.570.2023.02.01.11.53.27; Wed, 01 Feb 2023 11:53:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@grsecurity.net header.s=grsec header.b=HWSMoT32; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=grsecurity.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232272AbjBAToo (ORCPT + 99 others); Wed, 1 Feb 2023 14:44:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232158AbjBATob (ORCPT ); Wed, 1 Feb 2023 14:44:31 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E6D17D6CF for ; Wed, 1 Feb 2023 11:44:30 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id m2so54177386ejb.8 for ; Wed, 01 Feb 2023 11:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grsecurity.net; s=grsec; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4WIfgFu7sWBxHubiDa704oZ6rZ4jmUPQhefB2XMq/DY=; b=HWSMoT32VGWmMlCTrhxHivAlxKAAZNSvyoygy4yjRPBu0W4L15o7HIYq85B7iah+I/ Z8PNyxMMnBzbh7df65L7txwlSvM4GY0KOAyEkXIRwH8BLecSy6HwHBBKPhcgTgPAMoXz o8jExm4r5vV/LZ4W32jN8QUXeTT5lPMYKcMsECiA+wYAsgkZbKBlgdHyMu5TTxk7DODO dPsPPeEqIoqS9WC9kReJaacLryNx8eM9ZTa6zlD5QZvG1kHwckHUNEolVKTlKaSBPWzQ d7qoDWqz/ZNeISAZOGJnH1tCuM7GVVaOIFg7s2fTi1gNcWU4FkXs9x4IPupNRMhT4NDM b8Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4WIfgFu7sWBxHubiDa704oZ6rZ4jmUPQhefB2XMq/DY=; b=WH5u6vmhy0qkoMLSn0QAG6nH+K+I3LQBN/VtCzGjc4P6NoBAg6AuJFpvT3KKutnWmm ZZtsi+nSYv8qfIGvNQMwmA1IF+wTLKLkZF5A61dmcHkxSs7Tej4nUhYESbQI4HKOKCAc I37BFGANhcA1NND8msO70CWDxRlSsWlc5jLY1Juyq7TQSnvyVqqSDyA93USy6lAi4q5J 2LVX2odfUC4ItHyHCyXUwIrVKxIjf+aAWtyhEKXmX/1tO3N11Snr6+tuf6ewkJMJu04c Skm47qwPgzPFSWtB+vluxF/TMrnm807xKrbdSoAkbNV8zjvSXSWuChvrKVGeT8G+rTcX Iwyg== X-Gm-Message-State: AO0yUKVgjhVocWINxjrkw/igMHTZH89t7ZRBz7QRb6oLJ93yNej8AHhp sm7RSiymzTGj1A6R03QGNfIJdQ== X-Received: by 2002:a17:906:8281:b0:862:11f6:a082 with SMTP id h1-20020a170906828100b0086211f6a082mr3412157ejx.17.1675280668753; Wed, 01 Feb 2023 11:44:28 -0800 (PST) Received: from nuc.fritz.box (p200300f6af111a00277482c051eca183.dip0.t-ipconnect.de. [2003:f6:af11:1a00:2774:82c0:51ec:a183]) by smtp.gmail.com with ESMTPSA id c23-20020a170906155700b00869f2ca6a87sm10397579ejd.135.2023.02.01.11.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 11:44:28 -0800 (PST) From: Mathias Krause To: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Sean Christopherson , Paolo Bonzini , Mathias Krause Subject: [PATCH v3 5/6] KVM: x86/mmu: Fix comment typo Date: Wed, 1 Feb 2023 20:46:03 +0100 Message-Id: <20230201194604.11135-6-minipli@grsecurity.net> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230201194604.11135-1-minipli@grsecurity.net> References: <20230201194604.11135-1-minipli@grsecurity.net> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756659692180273135?= X-GMAIL-MSGID: =?utf-8?q?1756659692180273135?= Fix a small comment typo in make_spte(). Signed-off-by: Mathias Krause --- arch/x86/kvm/mmu/spte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/mmu/spte.c b/arch/x86/kvm/mmu/spte.c index fce6f047399f..95441ffdccc8 100644 --- a/arch/x86/kvm/mmu/spte.c +++ b/arch/x86/kvm/mmu/spte.c @@ -164,7 +164,7 @@ bool make_spte(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp, /* * For simplicity, enforce the NX huge page mitigation even if not * strictly necessary. KVM could ignore the mitigation if paging is - * disabled in the guest, as the guest doesn't have an page tables to + * disabled in the guest, as the guest doesn't have any page tables to * abuse. But to safely ignore the mitigation, KVM would have to * ensure a new MMU is loaded (or all shadow pages zapped) when CR0.PG * is toggled on, and that's a net negative for performance when TDP is