Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp726768pxm; Fri, 25 Feb 2022 18:27:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOgLYNWElVEMh572kQTNAZO5UtBm6PSq2wz9f5TtftFNbJEf1Ua4IQm8weESTRMb/uQ/2u X-Received: by 2002:a63:f14b:0:b0:374:7b9e:dc8f with SMTP id o11-20020a63f14b000000b003747b9edc8fmr8536717pgk.357.1645842453560; Fri, 25 Feb 2022 18:27:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645842453; cv=none; d=google.com; s=arc-20160816; b=Pk2uQUbB9j8MLLzD1t97lhiaq9sdgOUF056zwhS56PIsIkm12wUMKejnTf5Ax6E9MQ iDVgATt/Y+OwSDx4cNIuVATqwDCEo1LMO1Fb0OVaZaMDuxAuFhK7x/CfeoiIXETCQiRQ oMC5AjTVlN2YP7Mp5JFT1WOdh92bUy/ZHOLjnJn1uIqbWgTjI1gGzuSydqQNJfWqcX/a wrZpvgeeZpysXB34qrREyBes3tGamSKX6PxjT0ySF43d75BVuKN79TTo6NeexVjKmxqJ 6sLzH70Yr5O1vGlV8nsLkVtnVIbDx6NhNxXhr/SPmbd0FCsrsuEThu2C4vZH63pIxSw7 YQGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:reply-to:dkim-signature; bh=tEpUVd4jPoK9N2ecaXKtLW2f0KgIvioRCgiZkrx72eI=; b=CDeajvSIkqFX7+9MCXYy0KMJ6Tydsu70ATwVKBmgQMRfZHv8NCxe+DSSmZguoN7SqG tKv+VEiEwlRV2EcDnJODw1uWC0uQyAepoBFDuZN03/beJT6UDeq86kNpPVdNsZf8D3An XCl6WDKZjpRgKYrsTlHkqc7f5DkWiSPQctg6MHIELtvao/dCm7+HnI6kGP3MWIOl4Wih ajNUgEpbD7tuAcNI4YfOW6C1Da9vswyXqmTE+20oZvxJTWjKaPR/Bh7VFDyIMPGAPzT3 FRkcCikO1MkAaeYC3cmCfB7sHaHbPx8dMu9j16x5nqBC43diijmv7TvR6eQcfv2mW62t ctDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=OWOv2+M6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x5-20020a170902ec8500b0015011534fa6si3242794plg.241.2022.02.25.18.27.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 18:27:33 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=OWOv2+M6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2BCA1271DEA; Fri, 25 Feb 2022 17:55:23 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232555AbiBYSXc (ORCPT + 99 others); Fri, 25 Feb 2022 13:23:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232179AbiBYSXZ (ORCPT ); Fri, 25 Feb 2022 13:23:25 -0500 Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 764E66E78C for ; Fri, 25 Feb 2022 10:22:52 -0800 (PST) Received: by mail-pf1-x449.google.com with SMTP id g72-20020a62524b000000b004f3e21965e8so426063pfb.5 for ; Fri, 25 Feb 2022 10:22:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=reply-to:date:in-reply-to:message-id:mime-version:references :subject:from:to:cc; bh=tEpUVd4jPoK9N2ecaXKtLW2f0KgIvioRCgiZkrx72eI=; b=OWOv2+M6YRuwOcezy+sXd6L23PlvZMFz0Dr8BW1S+7jDP5EiWUOkGH/ETk1JZyA7um qWXPDYWwxfky114NKGB3NXrOuVafjRsJ4REWEfm1SmqED4mNeo9TQbCr+PMnVm/LIB6M spWJ2y/b0Zj4/vMcD1BpCka8UERO/EGcTZT78DxcIuBAyZKjxc/NwCgUU65BEYDGFJUv lGlYYG5/tZZzwWoMXF9XWalPdoHPTZhqkb557RJl/vaHBT23v5q4IYfBebf86Llmos7q BAiIFGIjV/Q7Ev9uiF/tWhjt/okkT8Fg9jbhysn5iGxXLfjALWqOxeqSgBZCsXIfHvqz T0sg== 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:in-reply-to:message-id :mime-version:references:subject:from:to:cc; bh=tEpUVd4jPoK9N2ecaXKtLW2f0KgIvioRCgiZkrx72eI=; b=hm/cA/Sx3IC9oSocboy2xXbdB1/r0DYM2GbdAdLcn48bdutXopwgxjz7PhK1n8uq+f c3zebs4Ei8nLWRVG+TCU5U+FUVddEgu42IbDzs8PNOwHNCPeZIy7Sh0hjMlhggfawUIL oBO92BU3yDn5sp2KWD3NnBY483EsEbe53WxZBqN59KjENhll2Y6805SCJqoY+gnHkOiL IRPo/PAU0nxrmW4bcNp3zJgYV2Ab8WxZ2J2vqLxiEVql55nvemB6MpVbSi/xsLmx+bF3 RyuPf9VTNxHCv2jSeqjP9xj+wWwFQ4BRkzDtLBKbqRT9c/7r5biM2kcwmEPuqnu9c/h4 737w== X-Gm-Message-State: AOAM533mgi3oaL/jKBN6nEDqw7xHwEaAQmyRTU68ZJZIprqfAe7nGLuE aNZDSCNWd8fHSEb+32nurm19HCgKcxY= X-Received: from seanjc.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:3e5]) (user=seanjc job=sendgmr) by 2002:aa7:9382:0:b0:4e0:cf48:e564 with SMTP id t2-20020aa79382000000b004e0cf48e564mr632110pfe.15.1645813371930; Fri, 25 Feb 2022 10:22:51 -0800 (PST) Reply-To: Sean Christopherson Date: Fri, 25 Feb 2022 18:22:42 +0000 In-Reply-To: <20220225182248.3812651-1-seanjc@google.com> Message-Id: <20220225182248.3812651-2-seanjc@google.com> Mime-Version: 1.0 References: <20220225182248.3812651-1-seanjc@google.com> X-Mailer: git-send-email 2.35.1.574.g5d30c73bfb-goog Subject: [PATCH v2 1/7] KVM: x86: Remove spurious whitespaces from kvm_post_set_cr4() From: Sean Christopherson To: Paolo Bonzini , Christian Borntraeger , Janosch Frank Cc: David Hildenbrand , Claudio Imbrenda , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Gardon , Lai Jiangshan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL 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 Remove leading spaces that snuck into kvm_post_set_cr4(), fixing the KVM_REQ_TLB_FLUSH_CURRENT request in particular is helpful as it unaligns the body of the if-statement from the condition check. Fixes: f4bc051fc91a ("KVM: x86: flush TLB separately from MMU reset") Signed-off-by: Sean Christopherson --- arch/x86/kvm/x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 6552360d8888..2157284d05b0 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -1089,7 +1089,7 @@ void kvm_post_set_cr4(struct kvm_vcpu *vcpu, unsigned long old_cr4, unsigned lon */ if (((cr4 ^ old_cr4) & X86_CR4_PGE) || (!(cr4 & X86_CR4_PCIDE) && (old_cr4 & X86_CR4_PCIDE))) - kvm_make_request(KVM_REQ_TLB_FLUSH_GUEST, vcpu); + kvm_make_request(KVM_REQ_TLB_FLUSH_GUEST, vcpu); /* * The TLB has to be flushed for the current PCID if any of the @@ -1099,7 +1099,7 @@ void kvm_post_set_cr4(struct kvm_vcpu *vcpu, unsigned long old_cr4, unsigned lon */ else if (((cr4 ^ old_cr4) & X86_CR4_PAE) || ((cr4 & X86_CR4_SMEP) && !(old_cr4 & X86_CR4_SMEP))) - kvm_make_request(KVM_REQ_TLB_FLUSH_CURRENT, vcpu); + kvm_make_request(KVM_REQ_TLB_FLUSH_CURRENT, vcpu); } EXPORT_SYMBOL_GPL(kvm_post_set_cr4); -- 2.35.1.574.g5d30c73bfb-goog