Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1777836imm; Thu, 16 Aug 2018 02:24:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxLlNhXTh5l4UJv22eoRY0lTtPuKIZ67zksOSlLuX8mELEBHY9u1uCJ5KbQqrCiPsrEfyQf X-Received: by 2002:a17:902:9a48:: with SMTP id x8-v6mr148984plv.72.1534411458504; Thu, 16 Aug 2018 02:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534411458; cv=none; d=google.com; s=arc-20160816; b=1HS0dDzoNmQfwBN4Awy+1vm5RMv2pVYQsiopqUQIt5CBa99wLXFiNqeTbXMnPOPQaa JTcIk2S9mCF1+t6O3zJQONLozxzCZwJ4LgLPpxQrFtNquhjK3WKCs6/u4Tczy4WYt+SY nU2ZpPPQfKxL/NWIFNYwJUXvTNkMgwtvEfwFYN4U5AIHI6y+uWkQ3PJcmI45JLrEBrZS h0xOO3Ow92AXhHu5cHuWs9EeQ+9pGfj5eFifPKhsMwFJCu461xOXTAITsqPfH4MWekH0 Q9alDebf5K+Xil19EA6nghZRVjFN8zwaYtA/AiYWpD2k5LKrtEu3XZUyhsWVlVQKksyc O7mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fbShRkjzc6X9MGMe/Uh5GPg9rkbD6xVByHckcqmsxS8=; b=xskqMlIssw4tfJWIIxvZZNQZK+TUq6F8jsySMA8kC7ZmgbnRE2Bejh6dRueSDza7lB eCmlnswvQFbgS0TsLUEQ5hsJ7iWSoWP4jIRwJ0uvt9NsB9nLieHBslCJlMPCnnMhawA1 MdC1N1vHk3MbyjnpnLbAWuUqNz3Ik7hZcOre+goL+24oyEXDGgJ2uaehf1HbcSYopTHK 9aMQha4UCwpFrABFv7kUQbBBm0hMv2ElYVnD7T37SwWQeRtgATu9QhHuDbix3L6RhHkN 57omULSxjT4Put12zMFK0tLj8m0kLK1MUpcm4qzwzrG7zJ7cI3NtF8DU9rp5Yjjpm3kL MOgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18-v6si22686625pll.82.2018.08.16.02.24.04; Thu, 16 Aug 2018 02:24:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388456AbeHPIjP (ORCPT + 99 others); Thu, 16 Aug 2018 04:39:15 -0400 Received: from out1.zte.com.cn ([202.103.147.172]:56578 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730182AbeHPIjP (ORCPT ); Thu, 16 Aug 2018 04:39:15 -0400 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id AE9B3A48ECD4199B5E20; Thu, 16 Aug 2018 13:43:14 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id w7G5h8Vp056323; Thu, 16 Aug 2018 13:43:08 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018081613431512-4699324 ; Thu, 16 Aug 2018 13:43:15 +0800 From: Yi Wang To: pbonzini@redhat.com Cc: rkrcmar@redhat.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, kvm@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, jiang.biao2@zte.com.cn, wang.yi59@zte.com.cn, zhong.weidong@zte.com.cn Subject: [PATCH] x86/kvm/vmx: Fix coding style in vmx_setup_l1d_flush() Date: Thu, 16 Aug 2018 13:42:39 +0800 Message-Id: <1534398159-48509-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-08-16 13:43:15, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-08-16 13:42:57, Serialize complete at 2018-08-16 13:42:57 X-MAIL: mse01.zte.com.cn w7G5h8Vp056323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Substitute spaces with tab. No functional changes. Signed-off-by: Yi Wang Reviewed-by: Jiang Biao --- arch/x86/kvm/vmx.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 46b428c0..ef712b2 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -218,15 +218,15 @@ static int vmx_setup_l1d_flush(enum vmx_l1d_flush_state l1tf) return 0; } - if (boot_cpu_has(X86_FEATURE_ARCH_CAPABILITIES)) { - u64 msr; - - rdmsrl(MSR_IA32_ARCH_CAPABILITIES, msr); - if (msr & ARCH_CAP_SKIP_VMENTRY_L1DFLUSH) { - l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_NOT_REQUIRED; - return 0; - } - } + if (boot_cpu_has(X86_FEATURE_ARCH_CAPABILITIES)) { + u64 msr; + + rdmsrl(MSR_IA32_ARCH_CAPABILITIES, msr); + if (msr & ARCH_CAP_SKIP_VMENTRY_L1DFLUSH) { + l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_NOT_REQUIRED; + return 0; + } + } /* If set to auto use the default l1tf mitigation method */ if (l1tf == VMENTER_L1D_FLUSH_AUTO) { -- 1.8.3.1