Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp118015rwb; Wed, 10 Aug 2022 05:53:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR5FTy0ncFlpsrWRuWKkyNU2KAwjkBZTCAlr4oGlLzweq+bot9CF65nR7SR3dQXrZ+8c2tcz X-Received: by 2002:aa7:d0d8:0:b0:441:4671:49d6 with SMTP id u24-20020aa7d0d8000000b00441467149d6mr7139470edo.252.1660136032979; Wed, 10 Aug 2022 05:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660136032; cv=none; d=google.com; s=arc-20160816; b=Gm5E4EVMtZZezq+KHsMyS0w61nAT0GXtOhnb4c5X+V9WidPKdoGIGprVmk44Sd2m47 Hp7/Ujrg4gTGs21p3w9t9eDsGJo+urVyELPG0BIwxP5Z+dNY3m5QavTgsgxEeBAls/ZR mJ7tXX8FQyVgZerAMAmegDdeVLLprlV5VNQSK2LYxtrOFSAKXJil1qhY7hrMAVH0pIxr TpvRzXGg7BA0KArVgd8epZWaAbmXN5xa0qjyao+OscpY4DmiFUswrnRxj9hxyMfFERfl r9VccSk4NvRd2QxAuO5BZpunxgE0N/OS88y1CIwBkLWcL2j8oJpUhpL1uZvrAGKBBWfB hr0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=B/qxBoi9o1gVsk6Eb1UYEgPxbL1rMsh9NZ46kRFuqiI=; b=cagfYvbbgXvbTiPme5qOJNhQzjp1pDvasm+tLy8ANvwlYtpYgPzCnXMJK8ftq2foNY /l+awx/QhXtuGJ2bv24grgaXZFAkB18SNA65wnGo+mJXvm0Vbl66dEp2t8DmQhMMoca5 aZgug6DybrxZlgPP+KSmCzzmfeYyFEd8UC1P02o4joPuxZAiaUPRUOLKeEsE66x3v8xt kWGigTWlF597W2kFK5V2UVkVud//ZbuMRKi9GKjSND5BOWmeMeB8zjdT/wPcX/JRSUfd LlUUxrNX92ogR6ITYSONlJn+mcQMWxeoecXOzqissK9K0DMGCt4VGd+mxVf/ARrZ/nMy 6cIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=ZnWadkVD; 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 he19-20020a1709073d9300b007305b582b36si5432584ejc.469.2022.08.10.05.53.27; Wed, 10 Aug 2022 05:53:52 -0700 (PDT) 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=ZnWadkVD; 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 S231676AbiHJMaW (ORCPT + 99 others); Wed, 10 Aug 2022 08:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231670AbiHJMaT (ORCPT ); Wed, 10 Aug 2022 08:30:19 -0400 Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8266211803; Wed, 10 Aug 2022 05:30:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 6761A43E865; Wed, 10 Aug 2022 08:30:15 -0400 (EDT) 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 C0olCMiwtd8x; Wed, 10 Aug 2022 08:30:14 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id E324A43EA38; Wed, 10 Aug 2022 08:30:14 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com E324A43EA38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1660134614; bh=B/qxBoi9o1gVsk6Eb1UYEgPxbL1rMsh9NZ46kRFuqiI=; h=Date:From:To:Message-ID:MIME-Version; b=ZnWadkVDov0vTB6CEnrUksXNICt4XyoIbKAR3c4uKk8HwV3O0DaHjQq2u/PvgAaaD W3hRqGWplND4ju3MSOHu69aetic44PIzYZ+ljvscPnKijmjj2wmMfMa0enwC75acJU 1LBG3LsY1C/AK+ALZ5jT9RHT8jcat7rkTkAQ+gneTHIPpdRf1RmL8fFRdGunfOWmxQ vY2LeFGXKCzmqrHWH587oVs9Fyc5KDKEUSgA1S4mfdOTKbC7/ZUT8DJpFbQxkvlsBn qDKxjQydYPR8wdmlkZfkI+fPsEo2aP++gCdrhOhPGeGSM8ddMgPvDglo3W3PL6Med0 d36xj+4uG4qKQ== 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 2qdFW4ojRKgE; Wed, 10 Aug 2022 08:30:14 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id D642243EA37; Wed, 10 Aug 2022 08:30:14 -0400 (EDT) Date: Wed, 10 Aug 2022 08:30:14 -0400 (EDT) From: Mathieu Desnoyers To: Paolo Bonzini Cc: Gavin Shan , kvmarm , KVM list , linux-kernel , linux-kselftest , Florian Weimer , shan gavin , maz , andrew jones , yihyu , Sean Christopherson , oliver upton Message-ID: <264792101.376.1660134614855.JavaMail.zimbra@efficios.com> In-Reply-To: <1e41a634-0419-e0a8-364c-2e30ed2dbe4d@redhat.com> References: <20220810104114.6838-1-gshan@redhat.com> <20220810104114.6838-2-gshan@redhat.com> <876568572.367.1660134156963.JavaMail.zimbra@efficios.com> <1e41a634-0419-e0a8-364c-2e30ed2dbe4d@redhat.com> Subject: Re: [PATCH v2 1/2] KVM: selftests: Make rseq compatible with glibc-2.35 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_4372 (ZimbraWebClient - FF103 (Linux)/8.8.15_GA_4372) Thread-Topic: selftests: Make rseq compatible with glibc-2.35 Thread-Index: yiYIM7vHUMcuFpAstZPcUYWmBolt7g== X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 ----- On Aug 10, 2022, at 8:29 AM, Paolo Bonzini pbonzini@redhat.com wrote: > On 8/10/22 14:22, Mathieu Desnoyers wrote: >>> >>> /* >>> * Create and run a dummy VM that immediately exits to userspace via >>> @@ -256,7 +244,7 @@ int main(int argc, char *argv[]) >>> */ >>> smp_rmb(); >>> cpu = sched_getcpu(); >>> - rseq_cpu = READ_ONCE(__rseq.cpu_id); >>> + rseq_cpu = READ_ONCE(__rseq->cpu_id); >> #include >> >> and use >> >> rseq_current_cpu_raw(). > > Thanks, I squashed it and queued it for -rc1 (tested on both > glibc 2.34 and 2.35). Thanks a lot Paolo, Cheers! :) Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com