Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp874864ybj; Thu, 7 May 2020 09:32:56 -0700 (PDT) X-Google-Smtp-Source: APiQypIW8pAXOqQeSCN17X9W1b8orfdsG8o5cW9PUgRniTEZDTdCQe+fJuHUjqc6a1cHS0ccm16x X-Received: by 2002:aa7:cd08:: with SMTP id b8mr12381883edw.96.1588869176608; Thu, 07 May 2020 09:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588869176; cv=none; d=google.com; s=arc-20160816; b=Ky+c5gKDbQweZlMXfF4C+xoWqpfHv+M0JcT/nXv8Ly2ccj8AXPDDUva8UdJbUMugAR IbpXcea77P0Mhs1vhzzvQxVr63Qmk7F3UNBAyWMOk68LptsUPArX8prIJJAVRs+b6EdE M/Wd0qmkCH4jrOKU99Ct4Z/I7VTgYtSfYiEqsl16dbWZ4woOC57bpxyEsZKTUlR4KIgU cgquyDTlVEgwUfl71U3L8o1v3On54cggzzyrprH2hsjiTz2iA6TC4OIH1CD1E3+wqVkq B0VSKo0DN4oKZA5eBQz30b8hvnqsKBegmIWd53Bu7sdShyQ9DQ82U6pX6jcYGKp5V45J n8GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=tGZ/tF3VhHuD0aZmrzS1ozwUOBMUdb3Emkf86UQ6w2w=; b=jXVMAoQcqM2Qs9Js4w97pldNDfZ+9rCM1aPow7iLnkpKhYlTZp4qfitpu4XdDbm2D1 CdayXCZ+H6HNq4XdWjaNqVLjwlR5M+g9EwBKdsnaVaxTTJzDl2waxsEwVeokMnLPaSjD ON0QdjKOKstAylUkE4BU4dBgP/HeoQlP+9pfqk7h57vosVeDhjg0kWyfMDYwQgYQRG8E doWGmwnZ4jOyYL2HyqexoGuWWEh2VDkPQTmGZGsRbjKTtp2feZte162SpFgXA2RBWD/5 yqA/3IY6S0zXEM5JtgW0vAJfwJOrCYVz1YHedIboeFVchFl0ytv3VO6zAyQbvni6TDuU Z7pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=hf0UgtlI; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si3271840ejr.440.2020.05.07.09.32.29; Thu, 07 May 2020 09:32:56 -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=@oracle.com header.s=corp-2020-01-29 header.b=hf0UgtlI; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726618AbgEGQa2 (ORCPT + 99 others); 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.