Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1383788pxx; Fri, 30 Oct 2020 08:46:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxGFMbNFWxHmT+gv/dUMYNDdVRojijbk9ClwN/5TZkNVv/XeZ6x7o3cqxKLYAgq3JSSdQr X-Received: by 2002:aa7:dd42:: with SMTP id o2mr3050356edw.53.1604072801679; Fri, 30 Oct 2020 08:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604072801; cv=none; d=google.com; s=arc-20160816; b=Q4N1oesoSbJazojLS293hStNt7NobdgcLWlPl1TGXpMvf4wjPhp2m1ZUnRJh1uWKt8 WCLRcD3gpxT0GKjdfauSBsXjX3Urp+LIo70OTEHk4Pyl+HWaafcRMDUXF63p9/eIgSSJ QCJpIkywv2Pzx9dNhK+usoTfbw9Nz5lpG2pg97AjQAcw2/iwTBiB2BOskY9jap7h5LXX Wc0BTNgIL9KGbyQ79SdFZMmG71W4Qmpk1NQ8dhalQ18J2BIi53p01sPUdhyj0bX1Ygot P4vUmIIH5o7+Cz5w1MO+WLhMOgv+SnoYxvUkd4MBtBkJRzxPB8a5g/C95ey3U5Qj3g5I vVjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:organization:references:in-reply-to :message-id:subject:cc:to:from:date; bh=/HakA8hEtUSJToU9bgV9QWewFAbYjzXWfhb8NqZyxak=; b=dawG+sY90gpiUCSI29F8CA9DmaCxDKwMbCovi+oiSW2YekzmsZzIJYSQfyMwMTPpjB gqNCHNPMgVej+W5q6+tw+zu7F1heazh/RoAZFGea61DlPlv1CF+7T87+g/lTDZLMGcOO JQOO380XP8a4DlCZKOv/Z+cgXYuWyscS5TQhBVkgs/ep3qpUszC6PkLXk1xfYk7zy7H4 dTl9SYlGWoASEh8mfCkrapq/Ltnoxs3bxDr2X95p2JatqmWlIcDVRxkWpz8Sib2QG2nH Uiw58nAVsFnBi1yDmXzhKvEPANSxvKF+VX8gxDaIbHTsEOgtRhyFoN61aZ/iuyK6Z5UL Axiw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si4564204edo.205.2020.10.30.08.46.19; Fri, 30 Oct 2020 08:46:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726691AbgJ3Po0 (ORCPT + 99 others); Fri, 30 Oct 2020 11:44:26 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:39528 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbgJ3Po0 (ORCPT ); Fri, 30 Oct 2020 11:44:26 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CN67B72Fjz1qs0P; Fri, 30 Oct 2020 16:44:22 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CN67B649sz1qv52; Fri, 30 Oct 2020 16:44:22 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id ZGZQQ6uWxFJ6; Fri, 30 Oct 2020 16:44:21 +0100 (CET) X-Auth-Info: oCko4kOVV9bSFGSiWx9nh6Yq9889MkbD8f+dbL7NnSM= Received: from jawa (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 30 Oct 2020 16:44:21 +0100 (CET) Date: Fri, 30 Oct 2020 16:43:37 +0100 From: Lukasz Majewski To: Thomas Gleixner Cc: Andrei Vagin , Dmitry Safonov , GNU C Library , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces Message-ID: <20201030164337.347fe961@jawa> In-Reply-To: <871rhfoo7z.fsf@nanos.tec.linutronix.de> References: <20201030110229.43f0773b@jawa> <871rhfoo7z.fsf@nanos.tec.linutronix.de> Organization: denx.de X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/_jqYRZN8T2/HbbtXNFCRlTS"; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/_jqYRZN8T2/HbbtXNFCRlTS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Thomas, > Lukasz, >=20 > On Fri, Oct 30 2020 at 11:02, Lukasz Majewski wrote: > > I do have a question regarding the Linux time namespaces in respect > > of adding support for virtualizing the CLOCK_REALTIME. > > > > According to patch description [1] and time_namespaces documentation > > [2] the CLOCK_REALTIME is not supported (for now?) to avoid > > complexity and overhead in the kernel. > > > > Is there any plan to add support for it in a near future? =20 >=20 > Not really. Just having an offset on clock realtime would be incorrect > in a number of ways. Doing it correct is a massive trainwreck. >=20 > For a debug aid, which is what you are looking for, the correctness > would not really matter, but providing that is a really slippery > slope. >=20 > If at all we could hide it under a debug option which depends on > CONFIG_BROKEN and emitting a big fat warning in dmesg with a clear > statement that it _is_ broken, stays so forever and any attempt to > "fix" it results in a permanent ban from all kernel lists. >=20 > Preferrably we don't go there. I see. Thanks for the explanation. Now, I do use QEMU to emulate ARM 32 bit system with recent kernel (5.1+). It works.=20 Another option would be to give a shoot to QEMU with the "user mode" to run cross-compiled tests (with using a cross-compiled glibc in earlier CI stage). The problem with above is the reliance on QEMU emulation of ARM syscalls (and if 64 bit time supporting syscalls - i.e. clock_settime64 - are available). >=20 > Thanks, >=20 > tglx >=20 >=20 Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/_jqYRZN8T2/HbbtXNFCRlTS Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAl+cNKkACgkQAR8vZIA0 zr1kdQgAxMpyJHLr7oWeB34cpyPU5D+gz+HgLKq4LZS/Tf7xMe4aZuwmPAti5FCn Nxu9Mv3r5j/g33jV8ZD0GJih+/Bey+5HYk3veAnLsJ78j3mERFT6z77erMMqDC0T Yl1BxjbIpFWRm5342R1o6EUoGmxGFRkWESPr/GXpNdFJZDSHUcb+MRDrtykzQZic ImQbZ51jg51gRkdfWme+0fcx1+J4nX/9QnClW2vRFR6hKK21vtsPxfzS+x/jANyZ e/YpF8wSgVwQHFwaZikW3mlJQHJMkkyTBcETFsWlca+2IS0fTE4kAq3g7y+hUFAz I8scySUJAxMivKdyQkuSktPm2TyPQg== =YQGD -----END PGP SIGNATURE----- --Sig_/_jqYRZN8T2/HbbtXNFCRlTS--