Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1368037imi; Sat, 23 Jul 2022 03:52:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ua/pQz3ZInP9W9C4OeVpDcRSHdj9h3JhyJFPtEp6gt3+IDH6esUR8/joZr022HEjrzoqwD X-Received: by 2002:a17:90a:5511:b0:1f2:2ad1:5c07 with SMTP id b17-20020a17090a551100b001f22ad15c07mr15542552pji.235.1658573568118; Sat, 23 Jul 2022 03:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658573568; cv=none; d=google.com; s=arc-20160816; b=DoihVEa5Li0XeS0vB2kuJ0/10aYOFVDWeug2LyZl/K0P1wPmvxn8iRBzuc3lp9Y+/T glyATChXrklVX+AGWuN5sSuK05vVihsAIbMGyhuzxL6SDiA82/gZo6u/VUQY9ojdC3oP pNOQ/XiNXwoHn7wuODi+eLppbQ5Gdmo4pwBJ4DsDwO5HRc+PaYrZO3RJ2GQqZ5YGuSZ3 MRg+6l3fqFakNoc0ZZz6l+1fsNHCyzPNCmv4KhYAjb/j+N4B9oW4f7OpLQDmYmm0K27E dUXgz09vqNTucus5+874Q4JnEs/6nkfYIpzuydMDmhMiQQlIoL0M+Azt667V/f80zEtV 5MvA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S4Cg/xb6QTRB9qoevMnQMfFYeCih64gyCftuiFzh1zc=; b=kGMix/CtC8IirHz9E7EBNEhlXm+xBoesxO+MSVnHFMjwDyQOZ8/cpFvMT0wZb4rP/s VTFU63VMOdYhNkbBSUZueLFUGqEexELUCPMi0SehLgVgJ19GWKjPAb9TX4swO6OrvYF6 KeEdF8rPIel5chRsWki218H6jdLHwDI0mUv2/0wrowknQvhjWxjVJbtggHe50j7QLfEv CSaVCjSdxRagoI/ShR7mTgsCgdzIPcNDFT+8595buJ2UYNaaG//v2feV66ikuRq4Kk+C /Fw196cRhqdjE6lYBFT4H+oFRUif/t4jABIww76rLGMVaoohmijAuI+THNkxUiO81kDq zNzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="0V/Ex/94"; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o3-20020a170903300300b0016c66bf1a15si7318908pla.34.2022.07.23.03.52.33; Sat, 23 Jul 2022 03:52:48 -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=@linuxfoundation.org header.s=korg header.b="0V/Ex/94"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237315AbiGWJ4c (ORCPT + 99 others); Sat, 23 Jul 2022 05:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbiGWJ42 (ORCPT ); Sat, 23 Jul 2022 05:56:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B891ADBD; Sat, 23 Jul 2022 02:56:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8EBC960C81; Sat, 23 Jul 2022 09:56:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 963D2C341C0; Sat, 23 Jul 2022 09:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658570186; bh=94KCIESH3xJDnFEmSbONd5NtuihgFvmDI4tfqbS1O0E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0V/Ex/94+ccKQfB0UZ1ULbTr0DELhQzoU6i/6ditc71JGQh7HL0jaqQ1mt4LVK5pW oXI/OZLfTQ75X5yAU3VqKd6O4Woesw8FMu7p4cKnqEVvg5ggnS16Qq6ZHHgTVP/h7d NhTGjs9CpqNOqaj4BLlWSGZjc6nJrfl3VNeAiENE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paolo Bonzini , Sean Christopherson , Uros Bizjak , Ben Hutchings Subject: [PATCH 5.10 001/148] KVM/VMX: Use TEST %REG,%REG instead of CMP $0,%REG in vmenter.S Date: Sat, 23 Jul 2022 11:53:33 +0200 Message-Id: <20220723095224.714782226@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220723095224.302504400@linuxfoundation.org> References: <20220723095224.302504400@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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: Uros Bizjak commit 6c44221b05236cc65d76cb5dc2463f738edff39d upstream. Saves one byte in __vmx_vcpu_run for the same functionality. Cc: Paolo Bonzini Cc: Sean Christopherson Signed-off-by: Uros Bizjak Message-Id: <20201029140457.126965-1-ubizjak@gmail.com> Signed-off-by: Paolo Bonzini Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- arch/x86/kvm/vmx/vmenter.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kvm/vmx/vmenter.S +++ b/arch/x86/kvm/vmx/vmenter.S @@ -132,7 +132,7 @@ SYM_FUNC_START(__vmx_vcpu_run) mov (%_ASM_SP), %_ASM_AX /* Check if vmlaunch or vmresume is needed */ - cmpb $0, %bl + testb %bl, %bl /* Load guest registers. Don't clobber flags. */ mov VCPU_RCX(%_ASM_AX), %_ASM_CX