Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1695867pxb; Fri, 18 Feb 2022 13:23:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpfOehAz2QwEV9/Zi6k1yet+ErqRpi1rpktLrJ9YQdmiTyoBWiwIonQJ6ipcCcapbTRVOt X-Received: by 2002:a17:906:2b97:b0:6cd:6d67:ab5d with SMTP id m23-20020a1709062b9700b006cd6d67ab5dmr8076481ejg.723.1645219403541; Fri, 18 Feb 2022 13:23:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645219403; cv=none; d=google.com; s=arc-20160816; b=NO55cfnmiXJE8NsVduuNK8AsCsSBwFY8S6iNvWZ3Kv9op/nR0iQKO/xbvHmFyV60ft cQn0qqtlH2JZ9PoPgofe9KbzVjJGzV0kQ11UaXXBwtaFvQvtliQLxMIPX5bN1E1hEU2S AueN1pkzDMvmwOicg4tHibcgk/Ot9CLYI075wHSJD4JGipHHbQVPrpMIjZozwhhzX+dr 4mXgYpArM7ZVPXB87rps/CorPSWA61Og7xiddeCcHXt2cJbaXLpCHExlLtNFDGsX5jOV sYxT30AExSfmWg2LmB37aUBqhACph/XCgKmuFrMCAXxVgdjik44L+BwmGqy9OwsnR73l dufQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature:dkim-filter; bh=jU3p85idUR7noONNjLpaS2BHDqtaaxwv6Q/ch9Ss5iw=; b=oJc0KDlPmt3hvWFAHXPZeGbZbPCcJYfYhyyj5QV/fzUSNP5Mz8Ey4EhLU85sEtT4/t ut6Xzvz9HZ6nEFEoQvAIXpHa4pNSLgm4CTr9SbToZ7MZHaTGKSeKbc6v8RnEWVF+SEg+ PzSUwdwGLjMBjm+O+kfu6A2vPSg2o8/PZOz7Zd0V6muI2K8Ad/rsranedOU1tiNHPMam AOuscncZR3QMAYzc7XFxUsdp7PbvajRNKnWVDE+iXNZpq1Ps9BVPLAFU/8o9OWPTkryQ 8OrbfNzoy2YL3/GakEH7nAJuPtWMMyR6yT8CsV3MnPbEMSJR0hePVdMaJGDqabnehFvP DmlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=LsRo9UIl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15si6317843edc.12.2022.02.18.13.23.00; Fri, 18 Feb 2022 13:23:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=LsRo9UIl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234175AbiBRVQ3 (ORCPT + 99 others); Fri, 18 Feb 2022 16:16:29 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239657AbiBRVQL (ORCPT ); Fri, 18 Feb 2022 16:16:11 -0500 Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3083328BF41; Fri, 18 Feb 2022 13:15:53 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id EBB513BA9DC; Fri, 18 Feb 2022 16:06:49 -0500 (EST) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id QrN-FJ-75sez; Fri, 18 Feb 2022 16:06:49 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 6E7F73BA9D3; Fri, 18 Feb 2022 16:06:46 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 6E7F73BA9D3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1645218406; bh=jU3p85idUR7noONNjLpaS2BHDqtaaxwv6Q/ch9Ss5iw=; h=From:To:Date:Message-Id; b=LsRo9UIlwMUGVY1clr3Qnuzy3HVHBMRT8X7jx/1O46uXqF/nAxJrBBxSZhHILoDyR lZLxFDOOTdxuSp7/PiNn6jhNX0jd1PBvm5VK7TaO1oIgQtcQS2B3ggCJSBLslPdP1c Pt+5SsUHvZNeO1l5TwJ6ID0PL2Pcy3Yj+g958XcV7avusJb7ul87aytm/6kQSfdfsk 53LdmfMk6ZB2EQxEjPqVWI9J4+W5AdvKddHRFCPsj46TMMFePPY9red9bNIMwVlzZA p/yDIG+hnt1r8DF8D4reCyZcjmC2hj+6pS7yUSjwWAlKXTeaGmF12hssnHm5TrsDwd rKXZzl7cAEYng== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id X7ITggOoy7jL; Fri, 18 Feb 2022 16:06:46 -0500 (EST) Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by mail.efficios.com (Postfix) with ESMTPSA id 1EF273BA5F2; Fri, 18 Feb 2022 16:06:45 -0500 (EST) From: Mathieu Desnoyers To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Boqun Feng , "H . Peter Anvin" , Paul Turner , linux-api@vger.kernel.org, Christian Brauner , Florian Weimer , David.Laight@ACULAB.COM, carlos@redhat.com, Peter Oskolkov , Mathieu Desnoyers Subject: [RFC PATCH v2 11/11] selftests/rseq: Implement rseq vm_vcpu_id field support Date: Fri, 18 Feb 2022 16:06:33 -0500 Message-Id: <20220218210633.23345-12-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220218210633.23345-1-mathieu.desnoyers@efficios.com> References: <20220218210633.23345-1-mathieu.desnoyers@efficios.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Mathieu Desnoyers --- tools/testing/selftests/rseq/rseq-abi.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/rseq/rseq-abi.h b/tools/testing/selftests/rseq/rseq-abi.h index a1faa9162d52..1ee4740ebe94 100644 --- a/tools/testing/selftests/rseq/rseq-abi.h +++ b/tools/testing/selftests/rseq/rseq-abi.h @@ -155,6 +155,15 @@ struct rseq_abi { */ __u32 node_id; + /* + * Restartable sequences vm_vcpu_id field. Updated by the kernel. Read by + * user-space with single-copy atomicity semantics. This field should + * only be read by the thread which registered this data structure. + * Aligned on 32-bit. Contains the current thread's virtual CPU ID + * (allocated uniquely within a memory space). + */ + __u32 vm_vcpu_id; + /* * Flexible array member at end of structure, after last feature field. */ -- 2.17.1