Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1503563rwi; Thu, 27 Oct 2022 17:08:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4WIK2SLYcZw2mnID3O7z7m1WasOcLB4l67Nw2OKLVR/tA0Ev8QKaqtLN/LrxcNo29SGUad X-Received: by 2002:aa7:818f:0:b0:562:dc99:8a84 with SMTP id g15-20020aa7818f000000b00562dc998a84mr51590798pfi.30.1666915682968; Thu, 27 Oct 2022 17:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666915682; cv=none; d=google.com; s=arc-20160816; b=cVZAdpPOOLBpU2mNNdOmhzIWo1TWf0Kxjn/cZkr0gpEds7PsUT+d8eKXVO6rVA62J2 vIPyGny8AEHdmZaFu/dN35VVfSCTVB5IVoQwEN5foTrLOlMuG8gep2qBd+XA9BqHqlCW IpJDsBXdUUL6eAUcBpwXJoodUDekJoxnw1boQ/5a8DTh3nVw8Z6ewTB+Ggn3X/ByFTue hzyZkBxRKcD9kWBKvLScmGPbw25PZ4k3yQJ1YyEbjc3DsLscy65Kkxf5L7JQwQ0pMzkn Snrb12C2o/0khRO+8sWhdUSgjMNKBcOkO2ihDT73cF/4H0hvf811VB+gT7iPaqmkPzY6 9LXg== 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:date:subject:cc:to:from:message-id :dkim-signature; bh=eEZocbdq7Joiz0PpdyuALdGYXBfjSh8tuhffgVCHeMA=; b=SywHuwx8sn6fWz2W7XvjkIUZvv66mGaRPYx5eDbtwUXaoZZb6iNIYDvVAzhDV5Lcq8 9mYbaq8P2jC/ZKIdZcaHAZvuFJKY22v8d2kI7Q2cgB5vIrEa5ebOdCL1fzb/w6tW9M0L 8ziV3y4xPU+WBXJ4GmT3M7EgbkhqePV2lBX/BkSarHlc8P61uYlH/lgzPmC95m+PcbMV WDIN3ML21a0jqUqPpvTNYum31NIurZTCDWSrhcgvqxgJQtu4jyq6SZ/cfISEWvo+wDPX MUHY1HceA3uccu3l1mg6Ots0NvFfUOUMxF+OrHdAAVtDl3pRx/JrtfH2tsPB5jm4Pj7U qQIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b="D/ugxse2"; 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=foxmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd32-20020a056a0027a000b005410d1ea0e5si91764pfb.14.2022.10.27.17.07.50; Thu, 27 Oct 2022 17:08:02 -0700 (PDT) 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=@foxmail.com header.s=s201512 header.b="D/ugxse2"; 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=foxmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235650AbiJ0X5a (ORCPT + 99 others); Thu, 27 Oct 2022 19:57:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235563AbiJ0X52 (ORCPT ); Thu, 27 Oct 2022 19:57:28 -0400 Received: from out162-62-57-64.mail.qq.com (out162-62-57-64.mail.qq.com [162.62.57.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B84936FC60 for ; Thu, 27 Oct 2022 16:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1666915043; bh=eEZocbdq7Joiz0PpdyuALdGYXBfjSh8tuhffgVCHeMA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=D/ugxse2bGS4DvaM/j9m43rSLCMqinijCvR3PCsomnxo9PFwFXCMVINAO2OMeMMCO 2PWssioaoGiWe55hrJvevuPUgQHoZm2MKV/eEETwf0etBq3TdI7Kf+lGTDaIpZ9+W7 /hzz21kPyIlUsvoRoE5x6hvGBy1/3ymBmKYi7yVA= Received: from localhost.localdomain ([39.156.73.13]) by newxmesmtplogicsvrszb6-0.qq.com (NewEsmtp) with SMTP id E53814BE; Fri, 28 Oct 2022 07:57:19 +0800 X-QQ-mid: xmsmtpt1666915039tehk9lwxx Message-ID: X-QQ-XMAILINFO: N7h1OCCDntuj7ZDten010uQiKjwB4LQwOQQjsVRVWR7BBp/rIsC+6RQxYJuXdf n6B9my7rFhKAIvUHJdIYPRdW2yvEKk9Bq0flevNrUlLpi7I2ByVZMB9NofsOx2VOF5z9KuwgFher 00qbSgyFsb67hZE2fjX9Wo+EWXum4yOTzfTll4rPntpPb8RuzXQWdCjNo/j8De4lwdSOBVaxd4E6 SQ/hHqPkMMRz8Xl3v3uznJTcX/Jl6jK/0eNqWPforkM/Q8YxJlafsBeWTHTF3btNssSqiOIKBYdq kLtwlDm0TqF9dfM5v4WH8jOzlIoU6503OZSLjUUUHYhgm24ElpTykmK1uQGU+HG5IQuE7Uj2XPnt MJeGsqcKRPJ9g5geXPw6/pximC1WKCuaayN4RQopLgaGyRPKmXx7Zw8aUbRaPgLgAJMWAf3zntDN i+uSUkoxadkyCnnreg+eOSMcZIZA8K0EyPim87nL0afJXre42G1YZSO63EKEJ4w9T7ru0jv+utL4 25RLmVQMoz7LN+qYTS5IJLXbZ9Ahh54pMlmLLU7cSTV5htU7oKuGwvc4ytU9wp9N0XwV4VNGyJ2m xpt56OCUYji0wUT3A+SxlshFdZb/V7IWt/LXpZWawjojJxpDkm1htMuZCOD3gYoODeWEA4OJB8ZJ SdxtBdWRI+hcCulOIc4ZVf9v+jU1JC2fpXZE0tpu3lY74Qt/RRSkiO4mMSwU1nAdIspnHZON4WBx s7pHMx1uTo6sz1MtNe2NAa9pQauS0rIQ/Piq9vrF7DrxXOhx6HwEQhNihGXjOdp/miWJtVh5i/mP 3ugw0bpcQa07JbzlTnT8J2P6ltxCThoWBy1cwxWRSdT0M3m8VXWypER3p4bdCDkyYpPDFw9rkIXg z4Us0gm8aPJFf7FZpyg5tt6kh52BihjD7tVduLsDhs5iBVs8G0fmEGDxPCC0/D8afyx6JgNlHKIx g3kbTS4uDuZidKvnEEBQ== From: Rong Tao To: seanjc@google.com Cc: Rong Tao , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), "H. Peter Anvin" , kvm@vger.kernel.org (open list:KERNEL VIRTUAL MACHINE FOR X86 (KVM/x86)), linux-kernel@vger.kernel.org (open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)) Subject: [PATCH] KVM: VMX: Fix indentation coding style issue Date: Fri, 28 Oct 2022 07:57:00 +0800 X-OQ-MSGID: <20221027235700.85710-1-rtoax@foxmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, HELO_DYNAMIC_IPADDR,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RDNS_DYNAMIC, 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 From: Rong Tao Code indentation should use tabs where possible. Signed-off-by: Rong Tao --- arch/x86/kvm/vmx/vmx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 9dba04b6b019..c5c954fb0273 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -806,7 +806,7 @@ void vmx_update_exception_bitmap(struct kvm_vcpu *vcpu) */ if (is_guest_mode(vcpu)) eb |= get_vmcs12(vcpu)->exception_bitmap; - else { + else { int mask = 0, match = 0; if (enable_ept && (eb & (1u << PF_VECTOR))) { @@ -1214,7 +1214,7 @@ void vmx_prepare_switch_to_guest(struct kvm_vcpu *vcpu) } } - if (vmx->nested.need_vmcs12_to_shadow_sync) + if (vmx->nested.need_vmcs12_to_shadow_sync) nested_sync_vmcs12_to_shadow(vcpu); if (vmx->guest_state_loaded) @@ -4934,10 +4934,10 @@ static int vmx_interrupt_allowed(struct kvm_vcpu *vcpu, bool for_injection) if (to_vmx(vcpu)->nested.nested_run_pending) return -EBUSY; - /* - * An IRQ must not be injected into L2 if it's supposed to VM-Exit, - * e.g. if the IRQ arrived asynchronously after checking nested events. - */ + /* + * An IRQ must not be injected into L2 if it's supposed to VM-Exit, + * e.g. if the IRQ arrived asynchronously after checking nested events. + */ if (for_injection && is_guest_mode(vcpu) && nested_exit_on_intr(vcpu)) return -EBUSY; -- 2.31.1