From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5785C7EE23 for ; Thu, 8 Jun 2023 23:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gj3dfbJKmyysvYC5raYZkqa1ZjfECR1fHX2drjB/6Uk=; b=thjtuSjRpUwCiU k2fbx7t1zlDceh6mo1rupgO0YpfkQzIZkXXks1iU4ga32jPZtZAoO9ULEp1EyL7jw17x+RwChA0KD nU2NbYV7qJghq2J1bNY+mk9qxkLMdp87H5TZdaU87QwEwvRoGkG4bWMqQzQapAX8M6Fw4o2ehrC9W OrbruJUmTLPfcBV6XjbZG2JSbbiFkRC+UEG+PAHqc5aAddSCHBejknzTICesRbQCFbL0BpIghAzg+ oebYKT0AgI3bkPv82khsUVQavClt9nhEU+QHMHG7qGtUVxq9l2C5Olyd8nJNdk+9uCO7Yki3HNY27 ExtmByHc4v8ENqMpRi6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q7P8s-00AwjR-1f; Thu, 08 Jun 2023 23:34:10 +0000 Received: from mga12.intel.com ([192.55.52.136]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q7P8p-00AwiI-1X; Thu, 08 Jun 2023 23:34:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686267247; x=1717803247; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sN7dvQMQ+/TpXG6CIcwf0XKyIcjODwPRfKZrLnuiPSY=; b=TwP2UxFQTd5AeGClwQldkGSAJ2zOQ0c8puLmSI32uwqeDpspYF8zyoHT aOLlfjZ2JVuNBUWAM94laTYzBBUveJiRuCULdrl/SlsbEKTDYRvbwoeyu caMAtmERg3n8MA3ArEe9km1PbV1vAJhEdIiR9ZOpYfHVCwPMkjIacYBvY AjInmhD5N6da5sPD4NT4az14uqjLckgatZgSIPTUoLtVM92KG7mbCMuvO +lwfRfG1hVglciiL7UkZeF7WZvkzb0iKmnXO6BSCvrAbvoT1D7AI0cPRU RuOUOfpBvGGGqAX9aoO1vOJeIFbghYEbyTNxDH6UO6UZVD4J4BF7o1rnt g==; X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="337097740" X-IronPort-AV: E=Sophos;i="6.00,227,1681196400"; d="scan'208";a="337097740" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 16:34:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="822822455" X-IronPort-AV: E=Sophos;i="6.00,227,1681196400"; d="scan'208";a="822822455" Received: from yjiang5-mobl.amr.corp.intel.com (HELO localhost) ([10.144.161.97]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 16:34:03 -0700 Date: Thu, 8 Jun 2023 16:34:02 -0700 From: Yunhong Jiang To: Thomas Gleixner Cc: "Kirill A. Shutemov" , LKML , x86@kernel.org, David Woodhouse , Andrew Cooper , Brian Gerst , Arjan van de Veen , Paolo Bonzini , Paul McKenney , Tom Lendacky , Sean Christopherson , Oleksandr Natalenko , Paul Menzel , "Guilherme G. Piccoli" , Piotr Gorski , Usama Arif , Juergen Gross , Boris Ostrovsky , xen-devel@lists.xenproject.org, Russell King , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Guo Ren , linux-csky@vger.kernel.org, Thomas Bogendoerfer , linux-mips@vger.kernel.org, "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , linux-riscv@lists.infradead.org, Mark Rutland , Sabin Rapan , "Michael Kelley (LINUX)" , Dave Hansen Subject: Re: [patch] x86/realmode: Make stack lock work in trampoline_compat() Message-ID: <20230608233402.GA3430@yjiang5-mobl.amr.corp.intel.com> References: <20230508181633.089804905@linutronix.de> <20230508185218.962208640@linutronix.de> <20230524204818.3tjlwah2euncxzmh@box.shutemov.name> <87y1lbl7r6.ffs@tglx> <87sfbhlwp9.ffs@tglx> <20230529023939.mc2akptpxcg3eh2f@box.shutemov.name> <87bki3kkfi.ffs@tglx> <20230529203129.sthnhzgds7ynddxd@box.shutemov.name> <87h6rujdvl.ffs@tglx> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <87h6rujdvl.ffs@tglx> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230608_163407_552373_F9B60B47 X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, May 30, 2023 at 12:46:22PM +0200, Thomas Gleixner wrote: > The stack locking and stack assignment macro LOAD_REALMODE_ESP fails to > work when invoked from the 64bit trampoline entry point: > > trampoline_start64 > trampoline_compat > LOAD_REALMODE_ESP <- lock One possibly dumb question and hope get some hints. The LOAD_REALMODE_ESP is defined under .code16 directive and will be used by 32-bit mode caller also. Is it ok because the instructions there will be same for both 16-bit and 32-bit? I checked https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_16.html#SEC205 and don't find much information there. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel