Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1369176imi; Sat, 23 Jul 2022 03:55:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tG2+B7lHHCcUDjDc7I0RoaR4r2MdOyEDQAMEbvpHV8z/iz5h5ljCjAhETSyT7uLMB1GsJK X-Received: by 2002:a05:6402:48:b0:43a:caa8:756b with SMTP id f8-20020a056402004800b0043acaa8756bmr3816651edu.112.1658573723456; Sat, 23 Jul 2022 03:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658573723; cv=none; d=google.com; s=arc-20160816; b=ORGqnBfrsh6HwmsC+0VAXYkvVTi9XBeQIp2oDAj8f3uvhEtUu8xUvdyvwbzza5RtK/ kdYF2YoDGFYrXtNAustfdRkNoP6cM5p7VFnKLl47UDP65sTYEacFIGMzhvtSBZOEd953 Qw8vc7GzEiD+h+bLy6DFILhL/x/QgLfVdC59iKP08TWeB0MLoU4hRiauZWW8qePbpYjZ O0d6wVxJf2jLQ8AdYY6rptjd2MsI14z31+5aPWR+pCgdAGv7+C2Crb6WSYYWca6Oj+pu zoa68EmOyOi0wzplpiX3dk9yKdfXFgDf5MmcLYYf5NUozMLGi541akqbq8nJswaytaj4 pSwA== 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=N1FbTZm80iJ22TbgWu+DAY6NzDOVDkoDMFbohsgNxMk=; b=yknDFSDMQr80btRt04lWpsXI9Hf20N0PV+zUXMnUviqqJG2CdwcNlmV5GCFBldg+9T Khhd9be/4tP67SVJ+T+r5uFw943xNHG4h1kGW7AbaLOqXLDioSo7K+5Tzz8DDRkQN2tu 0Hyj98Lu3OJ8BChVKmNI2yVckVhBj6cuRaO+IzlMy+wM8wKY1+JW1SXy4f0TAhzUCjt4 2FeltfEkJQmMC9kHiasYG2xuRtgDewks7s16sVeIJhivfNdgxm4O2BEQmnuecNRE2uYi g+1uLcIwTuhBzlLuX78hPQxsEKTicwtLdGuh6YGtpsodGoaFWDEuu0OtlkzHdKkFlD1d 35aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZbcxIRZS; 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 cw21-20020a170906479500b006e7fe1e4eb4si8774017ejc.847.2022.07.23.03.54.58; Sat, 23 Jul 2022 03:55:23 -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=ZbcxIRZS; 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 S239307AbiGWKLu (ORCPT + 99 others); Sat, 23 Jul 2022 06:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239506AbiGWKJl (ORCPT ); Sat, 23 Jul 2022 06:09:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9952CE50B; Sat, 23 Jul 2022 03:02:53 -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 ams.source.kernel.org (Postfix) with ESMTPS id 0F3CAB82B92; Sat, 23 Jul 2022 10:02:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CDE8C341C0; Sat, 23 Jul 2022 10:02:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658570570; bh=oUt1hCweBt6JC7gg1LyKIiRwNXtpWgJiF7uTPwGsvCg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZbcxIRZSnrX1Y17dDnDijJOy6K6w8WExwDQivR1WPxofNrkrUPDkYo9YHmLAQ3nAS 2jNij8v3AIaEn6/9Y6QKMZhRG2/jfXufAuUDmk49WcTGRc5YginU6wecSH+8qetlvg aORkTXlK+Nb+pZXo4pyOo4XtPyAq8iCML6FXXTGQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paolo Bonzini , Ben Hutchings Subject: [PATCH 5.10 132/148] x86, kvm: use proper ASM macros for kvm_vcpu_is_preempted Date: Sat, 23 Jul 2022 11:55:44 +0200 Message-Id: <20220723095301.320884513@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 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: Greg Kroah-Hartman commit edbaf6e5e93acda96aae23ba134ef3c1466da3b5 upstream. The build rightfully complains about: arch/x86/kernel/kvm.o: warning: objtool: __raw_callee_save___kvm_vcpu_is_preempted()+0x12: missing int3 after ret because the ASM_RET call is not being used correctly in kvm_vcpu_is_preempted(). This was hand-fixed-up in the kvm merge commit a4cfff3f0f8c ("Merge branch 'kvm-older-features' into HEAD") which of course can not be backported to stable kernels, so just fix this up directly instead. Cc: Paolo Bonzini Cc: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -953,7 +953,7 @@ asm( "movq __per_cpu_offset(,%rdi,8), %rax;" "cmpb $0, " __stringify(KVM_STEAL_TIME_preempted) "+steal_time(%rax);" "setne %al;" -"ret;" +ASM_RET ".size __raw_callee_save___kvm_vcpu_is_preempted, .-__raw_callee_save___kvm_vcpu_is_preempted;" ".popsection");