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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 455FEC38A24 for ; Thu, 7 May 2020 16:30:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1651F20575 for ; Thu, 7 May 2020 16:30:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="hf0UgtlI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727859AbgEGQa2 (ORCPT ); Thu, 7 May 2020 12:30:28 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:47344 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726222AbgEGQa1 (ORCPT ); Thu, 7 May 2020 12:30:27 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 047GTLNt032314; Thu, 7 May 2020 16:29:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=tGZ/tF3VhHuD0aZmrzS1ozwUOBMUdb3Emkf86UQ6w2w=; b=hf0UgtlIfdSDXoWb4aSAuZ7ek44tCIKopO08IfWPjrSXLkd51r78s3cb4j7yWNggqF1G dVyMVgvA98VlLMH3rSBRun4avnPiCIgB4qgVSQyAx+F4iVeTuFJPoM0ApNcfRQnOLeVY LbrNtJTATxrzz67GFk1Sljyx2u2Mi3TaES69D6iQTc8wkcYJJ1JCW0mSMXK/yeuZe6hR VvuIdi1J9rTl93UiXuMMIBI7a26KLN3hp8uiCEakoMlz4yByrdjm1hvXAcacQ5sRMTl2 L4QSXYqYjPbFjwB72XX3ZEXILgeDR9bM0pYpGDabw0XqPTCf3F3J3KkR2lsB96zX/Xdq gQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 30usgq8a4g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 07 May 2020 16:29:36 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 047GSphs163224; Thu, 7 May 2020 16:29:36 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 30sjnpuaby-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 07 May 2020 16:29:36 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 047GSxGL013026; Thu, 7 May 2020 16:28:59 GMT Received: from linux-1.home (/92.157.36.49) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 07 May 2020 09:28:59 -0700 Subject: Re: [patch V4 part 3 12/29] x86/entry/common: Provide idtentry_enter/exit() To: Thomas Gleixner , LKML Cc: x86@kernel.org, "Paul E. McKenney" , Andy Lutomirski , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon References: <20200505134354.774943181@linutronix.de> <20200505134904.457578656@linutronix.de> From: Alexandre Chartre Message-ID: <7fb86de4-d76d-061e-8076-61f269faba50@oracle.com> Date: Thu, 7 May 2020 18:27:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200505134904.457578656@linutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9614 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 phishscore=0 mlxlogscore=889 bulkscore=0 malwarescore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005070133 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9614 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 clxscore=1015 mlxlogscore=924 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005070133 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/5/20 3:44 PM, Thomas Gleixner wrote: > Provide functions which handle the low level entry and exit similiar to > enter/exit from user mode. typo: "similiar" > Signed-off-by: Thomas Gleixner > --- > arch/x86/entry/common.c | 89 ++++++++++++++++++++++++++++++++++++++++ > arch/x86/include/asm/idtentry.h | 3 + > 2 files changed, 92 insertions(+) > > --- a/arch/x86/entry/common.c > +++ b/arch/x86/entry/common.c ... > +/** > + * idtentry_exit - Common code to handle return from exceptions > + * @regs: Pointer to pt_regs (exception entry regs) > + * > + * Depending on the return target (kernel/user) this runs the necessary > + * preemption and work checks if possible and reguired and returns to typo: "reguired" alex.