From patchwork Thu Oct 20 11:13:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rong Tao X-Patchwork-Id: 6156 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp45381wrr; Thu, 20 Oct 2022 04:17:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6oC0Tfv2G042YDPSDzNfvRlK2TfD0KFhCeUvXSz0Fv9Me2IyJqNI68rGlufLXp3b6yaGVn X-Received: by 2002:a17:906:7308:b0:78e:191e:8389 with SMTP id di8-20020a170906730800b0078e191e8389mr10361698ejc.170.1666264678406; Thu, 20 Oct 2022 04:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666264678; cv=none; d=google.com; s=arc-20160816; b=RNWyWNx2Rxq4t68WbSaEOGV65Pw8QhAuzAfJgrELO2hNHZSOaZoy4DNT9u6LM3dJk0 1rRNQwJEUilgd0LytPCDaTruP89QK14aFSp93a+OvIHnj7oMosa1UENBwStR+jJUodwI VVho5Iwf3oTWzCrXHzYBoWiVwfKlM5lGSZ0CNCapqPyQal4Us1NiibWyltP03V9ZcvXY aYuUgsMcSu2USjuadUFPWXjlEaMU2YjOD1iNeBcTkbWBnZM/pC/YaC0rkojQrm6DWTjP 1+ZOGzYcMpV5o27TzDTuopElqt3K8aoZSBicBjBr/kmTtgkOQoQsrmxjJmLvKJfKhu1f wYlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version:date :subject:cc:from:message-id:dkim-signature; bh=eEZocbdq7Joiz0PpdyuALdGYXBfjSh8tuhffgVCHeMA=; b=RRNILo97h0hl8/HpicFc6/p6h+s8IlvNXjsrXJ9ZUiw1tSMMYP30uNFKasKlDMbMlJ e3c6NIuSROJt8V56o2g04KYNym4NHbvPdKzh0kIubv59z3D69kp7A/ExJwZBLIHnUS+U 4gt1l1yTJz+xrwR5nNyBhvMjP720kSY4pllh6CjZxiCjR+RBLCljpWbM+EjrAxm9GQW3 WLXNBJYyCf+Rb/CvXvJ5mkLdl9yrKLteg1tf4VNgAChgY+O2UWrVy2fSx0iMiYQXBNoe oRhFTKU0TYPqT8He3TOzm0nsr7M0b89TkPmAgHwyxeeR5lmwSU7z4vB3+ohjXGuxU1bf YOlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@foxmail.com header.s=s201512 header.b=MI8EkHXO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa26-20020a1709076d1a00b00741c0bd7061si16927178ejc.644.2022.10.20.04.17.30; Thu, 20 Oct 2022 04:17:58 -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=fail header.i=@foxmail.com header.s=s201512 header.b=MI8EkHXO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231266AbiJTLNT (ORCPT + 99 others); Thu, 20 Oct 2022 07:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231267AbiJTLNP (ORCPT ); Thu, 20 Oct 2022 07:13:15 -0400 Received: from out203-205-221-242.mail.qq.com (out203-205-221-242.mail.qq.com [203.205.221.242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F86D1E099F for ; Thu, 20 Oct 2022 04:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1666264391; bh=eEZocbdq7Joiz0PpdyuALdGYXBfjSh8tuhffgVCHeMA=; h=From:To:Cc:Subject:Date; b=MI8EkHXO1YyCXfFVRLlW+hzxK52+5RGiQqyKAMhY3NBq/9+aH7nuSsQcm6GERVBUT OtZ3ysLcPZo5CV3fvJBYvB57HKUCC667Pdi8XosSrn5QrR+x+b1dT9pGFyYPUgaaZg mVRXjsh+Q2cHg1Mw2fvc3D3L5q2lGeDs8ob7x5VI= Received: from localhost.localdomain ([39.156.73.13]) by newxmesmtplogicsvrsza35.qq.com (NewEsmtp) with SMTP id 347A8CC4; Thu, 20 Oct 2022 19:13:07 +0800 X-QQ-mid: xmsmtpt1666264387tbkyy2laf Message-ID: X-QQ-XMAILINFO: Mm/8i8/T4ynenpIQIWrciErp1i32et/xZsB2D0sKkowwr8FJ4RMs7zaX/ClB1E SBAKM3yvcHzqGkQC2orXrhL4FjiNbV9e+NAkyJRQ0iafVKnS9qL/BFtcFOAvacrc998MU96sCxxF 776kD4hDolGCq67ImcamJEjN+v25dKDnd8sSpmXQO5rlT4Foe+m08ttKbTzhYsJbzn+Kj8Bce7TQ B6QcVmQd3gCobPQnX00Orqx6h4yCJNDKczS7JreyfnGL1xpd2CRVzlF52ewAlJ5NMS3Wdj9k2wDN Lg/07GC0C2c2Hb1R/iYKYH9ODOdF4BvRY0aTBVD2I/bcQPh+gKDcaFXS6bmFFErOwiPSwCkD+LfG fZp43HMLk1tsQ4T4T2mxpb50kmeJMl4jBCq1nssaHca6rz6nVchz3tOmd0zWz6Ivx42LzJE05AE4 KmjKjDpv+bONw9X3OXG0FREu/1llBPVu0Zv8tBMcFifxxl2ZCQ/kfMTHv/R6YBsw01qlBCp40bMf g6hPo5ezbohlCYPB5HOJW6ER0eelMrJEfIKxcl8XojSIxBnXQCCVGsxOSHbTbv1LM1WaSn4dbndF LxvE517ySqkim+LEZ+saqEj17nXZzpTRpssXdSbVi3WiUZCLtRp1WZE1WY24riMNcV2HDIl66XQS 6TvWKc+qRHv85EnRzQnOT4Qt1OULso2NTfrneHYsUdyqiPGvSfi25Gj+uk/Z4UrZgBdVgy0g6sd8 SBz6n2h+WAfKl7Fbor/SkJ3weQNyAGyrrVmuOrw/NJFNCBM/Nqaq53lBfoStWMapVkBzH2aOAcaX ekEJcJCkFLcDCp5u8I9qc5GP+d2MlAwK0YcJVhym5Bk7cNLm72m4Mfdlmf8T3JVzRMk5KxEqDU/3 l/SrJIIA5o8zaiZ4vR2XNTwOmX28dsfCpjStnuWT30TD5xps50iC3VlK0a8RQckjXwX1BvC4iNJW G2eYI3A+MgTVcwRfOFtlSKQ8QL8GRgEtISlJ4q9Fjf2RYnogi4PMmk7F4QxwT0acYNsClGatp4Zt CkDDcaxbWzXXQBkXzz From: Rong Tao Cc: rtoax@foxmail.com, Rong Tao , Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kvm: vmx: Fix indentation coding style issue Date: Thu, 20 Oct 2022 19:13:06 +0800 X-OQ-MSGID: <20221020111306.164162-1-rtoax@foxmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 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,RDNS_DYNAMIC,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) 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?1747205150961331166?= X-GMAIL-MSGID: =?utf-8?q?1747205150961331166?= From: Rong Tao Code indentation should use tabs where possible. Signed-off-by: Rong Tao Reviewed-by: Sean Christopherson --- 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;