Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5584064rwj; Wed, 21 Dec 2022 04:42:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXsOCUbWkqNx78QTPtqa96kR0h9V6DKs4inQq8XTEZTzUpjBhnDSfV8dNP2ZSN15abPDgavD X-Received: by 2002:a17:906:6807:b0:7c0:9805:4060 with SMTP id k7-20020a170906680700b007c098054060mr1577875ejr.38.1671626520449; Wed, 21 Dec 2022 04:42:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671626520; cv=none; d=google.com; s=arc-20160816; b=NYreBDNqHy4scyaPHuUe2cF2VhM7P339CksjgCfrOG5QgORQczZz6jZ8T4C5C817Mg FFooC96JACtmoeOYLHHeOyAvjPNkN6D5g4N/jt39R2gFv7NPuO7bQPBore0O0dGYXmdS ZDKr8VJW/przfzPGN6+5UMeRFkExvr2tapKHNQjmHfzZ9VvHuRcl3t5Ac5D5uMDvG9gW 95FeZ5MptHQ057yuJdmlccQH6VFa/c2fKdKTwpJKPtBFlwUQHfeC4yKlhmLC0HMtE0ut 2NKzcRe5Aoxt3qRYYyxw6hZOSaWnEVcOSFHqcs9y3UwlztPUpVCTUEF7FAKZ3CVSVxH8 tZTQ== 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:date :subject:cc:to:from:message-id:dkim-signature; bh=wFNhnD3NzmTBl/E3WRuZI7LywtLlUP3cETCmajXFZTU=; b=GuoQzWloeg/ORsIYOpeJM7JhbyX/OD1bwoLv54CbF+shM34X2syyg/uVUUSxu2bd4S ckQAo8Yj5hAZ7GyeTPXcsSsEBf7eNfL8zzvZzvK8JSGsdk5lAJ8UYTXxroHvymceAqKT nPqaNiAzgmKTgJUcP35Qed3vQi/Ln3gVaVK1ZgdcDcrkw5lvC5R2/oF+VhBI58FeYVLv wdZN5bZoLmk4rpONwCUajmUxh94fCpsAisM5wv1CZakDsDJh8pjZNb0qWekQ3szOEBJ8 2qnVbbWdkfqHWSHXhQMfvWVZWwlM43/QCSA/zoQGp+92BlO5bHJTx5qMe1hD4D3LNWvY UYOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=yLYgsTRV; 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 ne21-20020a1709077b9500b00832db6f55f3si6219382ejc.532.2022.12.21.04.41.44; Wed, 21 Dec 2022 04:42:00 -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=@foxmail.com header.s=s201512 header.b=yLYgsTRV; 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 S229873AbiLUMYq (ORCPT + 70 others); Wed, 21 Dec 2022 07:24:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiLUMYp (ORCPT ); Wed, 21 Dec 2022 07:24:45 -0500 Received: from out203-205-251-36.mail.qq.com (out203-205-251-36.mail.qq.com [203.205.251.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF162314F for ; Wed, 21 Dec 2022 04:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1671625478; bh=wFNhnD3NzmTBl/E3WRuZI7LywtLlUP3cETCmajXFZTU=; h=From:To:Cc:Subject:Date; b=yLYgsTRVkKzSGX3+P8b4Mxe4LcPSiHIp3Cpcz/tM+dRuH1CNcx6ufk2thKhP7LWDm jvFiLShAjL/cHUeseNIZ/+SvqtuYc3E9eg67h8C/aTb57g0mExV960u7oMnA4dkkRU RfSZqXrg8zGEhFLQCJlS163F0TJE/xpjwNdN5SuA= Received: from localhost.localdomain ([39.156.73.13]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 6229AC9C; Wed, 21 Dec 2022 20:24:34 +0800 X-QQ-mid: xmsmtpt1671625474tv1woa6v3 Message-ID: X-QQ-XMAILINFO: M/NR0wiIuy70qs0pG1YAOxMsMstPYRYt/MG1TX1OpkGzw8hC1ywrfOfgUCyQyX qdfy1hPFOA6646ti+jbPj30FbaQYPii5k7ExSm3ZNJb9yZH3J53N9Za8u5F0gvf0TtaWruGcR95O AcFLcFkPtVMEPBmtnBY+HBMl3kX92xM4AXM3TBjGdzPzAiD7Io8jUXM2eCrXoPVQuIF3XrP+cYv9 lYS7yLmjGhTfW3wMo6nYgzsbOjZ9adOK0TrpdwIer/5wabf33x2RIKWZYzdc32o7HQrXam1uC2pG kapORg7XUCulQ+c4uZh1vfHNc81hkJyDjYJfVK5mL9XiXqGUDh9B1Nl28mZ2goMYRt+SvABi0haM iuVT8HMrZ2dvoPJYWmg9bGncL81UNQhiKJcALW5MIZpfWHXaZrOxt07dx9mV/l8BQOsajZFb8HSJ SnYI0MsMF1kjDiY4eRqF8FNnJVljCCVfUk4xvwEY6OT5eeOcm/mnQdib9aYWjKfZA9RozhT1jOPZ PeWAvys/TLdafyvS2nrWL8oRqYP5O7ovJFm2DWR8ihHJazp1OS6yzXrkAO+fUm3mB41x8e50NVaY SSKOC1llUu6M+wYbHOITAVMW/PB5GgHJ8UhFLzqMaBd4PEjlxu2s9VHlkRlbRFECzoJOCxo4ojKK 6GpOS+T3HRSwcLftRfEa/74oh8BmWE+zVZK6XIqRW++keN6UWHRXzxBpMlfOaVWIRIlvifxojN5R dRiTmkGhBZAL3Bp7xHrz8TCkvCWBtVU2osGb9XJBfyHRQm9hMHHQrgY2oG8x6MhUTTbJML+XzDKp 56YrxY28cQKfQFz3+oQhJ6e2Xid3TBBFNiNQTo4HWbwvnU6comaqTq5AayAIebsajHWaI4W6RPE0 BEz4iVa+ST9d0RvAf5a2qcOCR2d8Brw0hYfgFRSs+plAlDLMqe3nK3aLBNW+15Lokv42MzhzVIu7 0mnsFZkNQeSnMXFlEtslzp6eBtfJ9RlqVFTuqC6vg01EtcDv/KoT+MXEDColcq From: Rong Tao To: seanjc@google.com Cc: bp@alien8.de, dave.hansen@linux.intel.com, gg@google.com, hpa@zytor.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, pbonzini@redhat.com, rongtao@cestc.cn, rtoax@foxmail.com, tglx@linutronix.de, x86@kernel.org Subject: [PATCH v2] KVM: VMX: Fix indentation coding style issue Date: Wed, 21 Dec 2022 20:24:32 +0800 X-OQ-MSGID: <20221221122432.80129-1-rtoax@foxmail.com> X-Mailer: git-send-email 2.39.0 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,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 --- v2: KVM: VMX: for case-insensitive searches v1: https://lore.kernel.org/lkml/tencent_4D21B619F00AE966BD5DD2ABA4BC7A8F060A@qq.com/ --- 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 fe5615fd8295..29f0a639e1e7 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) @@ -4966,10 +4966,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.39.0