Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp544484imm; Wed, 13 Jun 2018 04:49:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIMz3ia2SBQgVSF2l4MIaQc7aPaQHgZuq85ktDDt5eb59XpsImDIaCnYZU+8i/BV4zlCPYb X-Received: by 2002:a17:902:8341:: with SMTP id z1-v6mr4938259pln.40.1528890548777; Wed, 13 Jun 2018 04:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528890548; cv=none; d=google.com; s=arc-20160816; b=NZSJnlZJgE1lYQ1X3zb2gqTk+ik9pf1G7QV5yyGfD+LqHOd+Kow0L30CK/jYjvWhbR 9Dblj2eJBC7MfUPyT4+26enbooQGa4MfTjkHor9KSiZJMCcvxyjh0PCRxpGIFWZO1A+L f8ZPAMDOXrELZb07lTzQFUkJZndYBuxTSLFEBbuv4NlB/4Da9k7CUoTlBZi4F11KgWXf ObE/VDd4zpXWSpYz9f23mi/MCBVdFvznuGyc3kq0xu9SvQ+QEf6/v3r1LgJanhdAdoNR R76NksX1pyJ+u4mcnGfJ8kFQvZ/fKNBKTLEtZTQaA6VN5CoiereCKeqSRDdod0kkmote JzEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-disposition:message-id:in-reply-to:references:subject:cc:to :from:date:arc-authentication-results; bh=4Ah4ZHwka6kCTJbvVJ94wLwajrhAr9Ud+iD2RhrFiCo=; b=Si1lyJMIGky2u6ZiNcfMblXOgU4pQHJdnS1rb6L9WkpR4Jy4Kp5L1a6Jc+ksFVbEl0 epaYuYbj314dNAoxR39suMxUmm5/5TO0VvfaJvCT8kZzAtzmMRixWLKdaqrNV5HFj/rn /DPkdanh7LtxS9ynkDEmCy83pTXh2/1mdhRKVlDzMmaaeuAZH5d0IDmDl7Npwoaj/KeX qbyzDzn4tfUWSiJDBFGgt8rT9RFTb25kQswR/7B5M0evXrds6TLo4QZ/YzNwbiPOsktk P89qXizl+BdGzSq2YhwPXvSMLzqUFPnyeEQIgwfKLIKYEGKi9DO/tUgFK1VOaXoHu9Ql OdsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9-v6si2262787pgf.222.2018.06.13.04.48.53; Wed, 13 Jun 2018 04:49:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935316AbeFMLsX convert rfc822-to-8bit (ORCPT + 99 others); Wed, 13 Jun 2018 07:48:23 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:50506 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935106AbeFMLsW (ORCPT ); Wed, 13 Jun 2018 07:48:22 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5DBl0KB141812 for ; Wed, 13 Jun 2018 07:48:22 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jk0b0pqdp-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 13 Jun 2018 07:48:20 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 13 Jun 2018 12:48:18 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 13 Jun 2018 12:48:14 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5DBmDbC26214410 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Jun 2018 11:48:13 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 37F6311C04A; Wed, 13 Jun 2018 12:38:48 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DB89F11C05C; Wed, 13 Jun 2018 12:38:47 +0100 (BST) Received: from osiris (unknown [9.152.212.90]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 13 Jun 2018 12:38:47 +0100 (BST) Date: Wed, 13 Jun 2018 13:48:11 +0200 From: Heiko Carstens To: Mathieu Desnoyers Cc: "Carlos O'Donell" , Florian Weimer , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Thomas Gleixner , linux-kernel , libc-alpha Subject: Re: Restartable Sequences system call merged into Linux References: <1084280721.10859.1528746558696.JavaMail.zimbra@efficios.com> In-Reply-To: <1084280721.10859.1528746558696.JavaMail.zimbra@efficios.com> X-TM-AS-GCONF: 00 x-cbid: 18061311-4275-0000-0000-0000028D4F03 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18061311-4276-0000-0000-000037947862 Message-Id: <20180613114811.GC4342@osiris> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-13_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=808 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806130131 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 03:49:18PM -0400, Mathieu Desnoyers wrote: > Hi! > > Good news! The restartable sequences (rseq) system call is now merged into the master > branch of the Linux kernel within the 4.18 merge window: > > https://github.com/torvalds/linux/commit/d82991a8688ad128b46db1b42d5d84396487a508 > > It would be important to discuss how we should proceed to integrate the library part > of rseq (see tools/testing/selftests/rseq/rseq*.{ch}) into glibc, or if it should > live in a standalone project. Is there any documentation available of what is the exact semantics of the functions that have to be implemented for additional architectures? I could look at rseq-skip.h and e.g. rseq-x86.h and try to figure out what would be the correct implementation for s390. But having that somewhere written down, e.g. as comments in one of the implementations, would be very helpful.