Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp532942ybr; Fri, 22 May 2020 12:29:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYdEBcOI2szTL0ft3Jzze8X/+Z8ehAsxMCYqx2Vn1kBAAA13ursmoD4gw6R61FA7zgaS5I X-Received: by 2002:a50:fd99:: with SMTP id o25mr4150523edt.98.1590175753375; Fri, 22 May 2020 12:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590175753; cv=none; d=google.com; s=arc-20160816; b=lYPUpQhqL8uaiQtYDRjq2/pFTl+jvp5fyCRzG2Gelal6YVNDKWz9CDZ6H6HZe178e/ tDesSvunhH7SvRtS/rwa69MZbOMxxfgXhYRuvWoJzYEXMXskpmwKxqsNRSB7JOmeS5xd vWgKcOdZFZEB07MWNSJ17voaPfD66FBso6E3sVqrW41qFxAF6nAIKHN+37yo5//xRtWo kN1GZTZpU0rL0lXkul9D4Cq64SanApn5A5oIJtRfj4v8qla2rGJleYlmjoucQyiFZO03 eIxbvnknlnorSqHoFTre6d6MilcUK9aB2GBMmYbd3goOuDRSjkxjTutua6j8jlkmhz+f m0tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hD46Afk+dhp/HiIe9hJCR9KCGG3Js+YzxCtVvkC5h1I=; b=vjYp2bpFXw1rtO7t+QxV3o2naBWWSu4cA3uUDbRSH3CVE/nVtqStjzsTvLpQ5oclYI m0dwd7lBvD+6BhPyuKnRPFErj9UpK3t8L3qIp/M/mqax1THO0ofzOqsDy24f7nQKi0D+ ePMzcdy1ZNk27EJZgI1OHP25IO5aSS4rcsR5MYjoKMs4HZOpOciLUto7fAi7pFZbTcus BFX99yjYmuu6icIxraZ+c7oqeGhEJYa0ieGwWbbV1CNmfHuPzwTATZJ3BKIA6mtRXTBR cAdMevnJyTcvENlnf89U9DvquHlWr9tUokT++QwKGqqMFdC7Jkaf9jCoe3yH2Ahydvyw krLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="doQaX3c/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si5783577ejc.416.2020.05.22.12.28.50; Fri, 22 May 2020 12:29:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="doQaX3c/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730956AbgEVT02 (ORCPT + 99 others); Fri, 22 May 2020 15:26:28 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:29261 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730689AbgEVT02 (ORCPT ); Fri, 22 May 2020 15:26:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590175587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hD46Afk+dhp/HiIe9hJCR9KCGG3Js+YzxCtVvkC5h1I=; b=doQaX3c/7hR15CntyW1Um9rBmdls4phxSf0O/3vH9niHSLDeE3gY93ipTXAz5hbcX7BQJ7 1mY+1eFHwN5oBHlEqi1eLpiwGRMvngi9YCpJmkWWQPfaSKbJdDcldZKCVfn2g8ZyQo4u0t 7ydqyvWGB6oFJLGS1k4rqQ0DOtcoV4g= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-284-tprr_IXaPzGsjNJBDUHoJw-1; Fri, 22 May 2020 15:26:23 -0400 X-MC-Unique: tprr_IXaPzGsjNJBDUHoJw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0024D18FF660; Fri, 22 May 2020 19:26:21 +0000 (UTC) Received: from treble (ovpn-112-59.rdu2.redhat.com [10.10.112.59]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B46146C77E; Fri, 22 May 2020 19:26:17 +0000 (UTC) Date: Fri, 22 May 2020 14:26:15 -0500 From: Josh Poimboeuf To: Boris Ostrovsky Cc: Thomas Gleixner , Andy Lutomirski , LKML , X86 ML , "Paul E. McKenney" , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Will Deacon , Tom Lendacky , Wei Liu , Michael Kelley , Jason Chen CJ , Zhao Yakui , "Peter Zijlstra (Intel)" Subject: Re: [patch V6 19/37] x86/irq: Convey vector as argument and not in ptregs Message-ID: <20200522192615.5asnbnanfdiofaj6@treble> References: <87sgfttobg.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 22, 2020 at 02:48:53PM -0400, Boris Ostrovsky wrote: > > Yes. They just make objtool very unhappy: > > > > arch/x86/entry/entry_64.o: warning: objtool: .entry.text+0xfd0: special: > > can't find orig instruction > > > > Peter suggested to use: > > > > .pos = . > > .byte.. > > jmp > > .nops (pos + 8) - . > > > Unfortunately this (.nops directive) only works for newer assemblers > (2.31, per > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=gas/NEWS;h=9a3f352108e439754688e19e63a6235b38801182;hb=5eb617a71463fa6810cd14f57adfe7a1efc93a96) > > > I have 2.27 and things don't go well. A single nop should be fine, since gas will complain if it tries to move the IP backwards. (Also I'd vote for normal indentation instead of the "assembler magic at 4 spaces" thing.) .align 8 SYM_CODE_START(irq_entries_start) vector = FIRST_EXTERNAL_VECTOR .rept (FIRST_SYSTEM_VECTOR - FIRST_EXTERNAL_VECTOR) pos = . UNWIND_HINT_IRET_REGS .byte 0x6a, vector jmp asm_common_interrupt nop . = pos + 8 vector = vector + 1 .endr SYM_CODE_END(irq_entries_start) -- Josh