Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp654586iog; Thu, 30 Jun 2022 07:46:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sb+CAC0bCBlLFUtVg5KwaXt+ToE9ShoDjghTr0SzSrvyZNEdZZlSnkfVptMHmN15P+qq+e X-Received: by 2002:a17:907:2704:b0:72a:596f:8b9f with SMTP id w4-20020a170907270400b0072a596f8b9fmr4305348ejk.761.1656600378841; Thu, 30 Jun 2022 07:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656600378; cv=none; d=google.com; s=arc-20160816; b=RZEZA9vTY9rUk1BATG2FDgPlee6eVjokoJHWE80zBomQXCQlPgHQK4v/auaj3nP92E 7HQPPZ1a8JJLzJIHHMRew10WOiq/i9L2QWyXKjcqWTHidXQiobTAHqZ0c/pEabYdf+/Q hESCRY6tQgz3UFxptlqu89MflAEuc1WEmt7QnI4eiZ4Om9ogkYvPTLcKMm/vGbnnl/17 oH7LRjAkPaTyjDLflZccTK6l9LgwhmJJOGY6BsVzCdxSZYNKY2/jmppx6K8tpezcGI0h L49lzptMyGT/x/lfkpRDTvx5YkU6bT2RsUfjmNcNPUF5f7p/qr+NBIDkZ2ryw6aLzGDr gX8g== 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=ZZwmkLkXpz0EpllzqlTyUpiCEoCjF3R9HmFZRjVYBuc=; b=BkLF1JkAHDTM83dxons4/zw3QigLGwpCQGL7TCH999cWGufsO+wsgrTlVmpxPEVvOJ bdqtS8cq88FDCQEgwUQk01soqRLsvC/2auIabqehfV9vzIy9vzuKW+XaCJ7lCsl32vnI U+4AUq8hl2l2SY6/01WWqNsPN29rCd5flsYqHWPh4J6caRPmkMFphAJyO4g0i3QVviQA MCGL/rRw3rXmtLJIAM3kYNmiG5BuPy+FxNBvW4Uz5JVmyK17jQbvxbjioppbcAn+zUVb vm/nSAwGg/915KoQyPoXxnlfJ9sD7ZyJUbC2WECLme9QhU9DTPv1oiIk0zPvsRYrXe9/ cExQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sj2y7hKC; 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 y1-20020a056402358100b004359f471717si28187218edc.0.2022.06.30.07.45.54; Thu, 30 Jun 2022 07:46:18 -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=Sj2y7hKC; 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 S236543AbiF3OIa (ORCPT + 99 others); Thu, 30 Jun 2022 10:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236857AbiF3OHj (ORCPT ); Thu, 30 Jun 2022 10:07:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BFD44F671; Thu, 30 Jun 2022 06:54:45 -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 1D25D620E4; Thu, 30 Jun 2022 13:54:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AF39C34115; Thu, 30 Jun 2022 13:54:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656597284; bh=DvDfn2BRrFyIyKJ7P5xj6xM1ZLoSo0VhU2tDsbxFz9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sj2y7hKCwnaMghRM0Qb4T91LB3ovyKstUDcxygmN6AWi7jt981MgZBj17XXF73Lp/ wYxWOg81qQOeb+RNeBEv/aWbwbEMglxeBl8ZiHF1Xr/zVVaaTJ8Wob5vy2H09mKRho EicfWZjC1zWSp4VaUHvYIX8brpjVslcFaCQZL0GQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paolo Bonzini Subject: [PATCH 5.15 03/28] x86, kvm: use proper ASM macros for kvm_vcpu_is_preempted Date: Thu, 30 Jun 2022 15:46:59 +0200 Message-Id: <20220630133233.028129552@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220630133232.926711493@linuxfoundation.org> References: <20220630133232.926711493@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.5 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,T_SCC_BODY_TEXT_LINE 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 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 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 @@ -948,7 +948,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");