From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65805C433E2 for ; Tue, 14 Jul 2020 01:59:36 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 34E672186A for ; Tue, 14 Jul 2020 01:59:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="K1sBOQii"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eIHVyT3a" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34E672186A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+pSBLdGmKIPveeeLJZa0u4puSTN7AlcE2/eQE01d6mU=; b=K1sBOQiinjQTm68N4FLIRyjal Bn5PG8fpGPLktehI7YTdDEuT9A5ZEY4CT/4eZaBho+gWOOk33Q/vNtwqDbJelHvYKTitFCz+lbbjA R4kGKQE8tx3/asXI/HeT49Pjx7zCmYfdPNipjEu6V7cF2ykeD5Kfx1iZR+V7tZj2pOGE9fV4XJZMw pj8wuAck1Z6Xo2L9sxHqI91ml9Ic8kZvMu1WB4U4CjsBSaMlbGwxfNo1j9yLI6D8SR3Db18M4mXgB 1lzBb2ZqSazMTjtNomqw7k1Syu1+JjWe9pFKFt9FirDeCZIJE/F3d1QQyj8YV7sgyjVSR8bmP9mkZ q8JbK9rNA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvACd-00072p-Kw; Tue, 14 Jul 2020 01:57:51 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvACc-00072W-3y for linux-arm-kernel@lists.infradead.org; Tue, 14 Jul 2020 01:57:50 +0000 Received: by mail-pf1-x442.google.com with SMTP id a14so6890379pfi.2 for ; Mon, 13 Jul 2020 18:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nXOSB0ZRPuQ9A1WyrVeJbOY3UGyrJ9rRxSkxDn9MEyE=; b=eIHVyT3adtlj2h9JYse58LLJWVui34c0wGDIWHBfaBpq/wDq697wU/8Enw+qHGz7Ca VDXtNoGCbVzYdceUil0j3FdtRrj6ITD4AZKUm9SLSUHP9bJHKMabvueXMXR4UABfpMZB kZLinypET8hCIJrfsiqtY2tl3PH+ZxMCqw7nHUylXg7hioiR75tK5KhNypydhA/zjE8l Mi/0ToxeE7M1iOsLdo/FmPoxzhvbphWc74tyb6CdCH4diH3RlQrSoNUS+ZweZu8k7DUL LbE2X7aFhPtjVLUgYjCOF88zbiZIve1wq4Rntr6IV4ape8zrprLI0auxDrMbgJc1Red8 IGcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nXOSB0ZRPuQ9A1WyrVeJbOY3UGyrJ9rRxSkxDn9MEyE=; b=Lh86by/tqNlzOU9udA4fVR4nPgRuOC/TajTzoYkP1xPmHW1agKD343nZ8g5gfm/QlW /tVgt8Orl13+tf6+Ab8ykiLmoqb5TTo812rSptbA5yQ8uwREtMPghh2SDHGdI40DJNeq C7oC9jf7X8GXy0qMpofhbdcwii3eQ+y9yDgnivTU4BoSYdWGnKa01rz42Kx/6rcM2+OW vm7U9QmWsV4S+HjAO6S7G8DBcsot5hIynkj0+P05sSF9nZ6CI40eOvmz4bZI84HdyxXT Oc4f8TiYXYgjL70WSgwje+AtDmPMDfB5Z0/GISSfIA9GnKIO9BJsGvxv+DAwmVpF+mV3 g7rQ== X-Gm-Message-State: AOAM530myTX11DH9UBegkDL7u+/1gLJojs34FKRXR5skS/gFu44c3H35 WtES2MqTLO5RIAZDRmwyRUI= X-Google-Smtp-Source: ABdhPJxSqYOpqSYqWpNHoiL1CUeek2IzHty8XoVDrr9WqzlnX+GW7bpH58jk1kffpPFnhJpo4Cvn2g== X-Received: by 2002:aa7:9906:: with SMTP id z6mr2407642pff.60.1594691867136; Mon, 13 Jul 2020 18:57:47 -0700 (PDT) Received: from gmail.com ([2601:600:9b7f:872e:a655:30fb:7373:c762]) by smtp.gmail.com with ESMTPSA id y19sm16772203pfc.135.2020.07.13.18.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 18:57:46 -0700 (PDT) Date: Mon, 13 Jul 2020 18:57:43 -0700 From: Andrei Vagin To: Catalin Marinas , Will Deacon Subject: Re: [PATCH v5 0/6] arm64: add the time namespace support Message-ID: <20200714015743.GA843937@gmail.com> References: <20200624083321.144975-1-avagin@gmail.com> <20200705064055.GA28894@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200705064055.GA28894@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200713_215750_188672_F7F9B670 X-CRM114-Status: GOOD ( 25.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Dmitry Safonov , linux-kernel@vger.kernel.org, Thomas Gleixner , Vincenzo Frascino , Christian Brauner , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Jul 04, 2020 at 11:40:55PM -0700, Andrei Vagin wrote: > On Wed, Jun 24, 2020 at 01:33:15AM -0700, Andrei Vagin wrote: > > Allocate the time namespace page among VVAR pages and add the logic > > to handle faults on VVAR properly. > > > > If a task belongs to a time namespace then the VVAR page which contains > > the system wide VDSO data is replaced with a namespace specific page > > which has the same layout as the VVAR page. That page has vdso_data->seq > > set to 1 to enforce the slow path and vdso_data->clock_mode set to > > VCLOCK_TIMENS to enforce the time namespace handling path. > > > > The extra check in the case that vdso_data->seq is odd, e.g. a concurrent > > update of the VDSO data is in progress, is not really affecting regular > > tasks which are not part of a time namespace as the task is spin waiting > > for the update to finish and vdso_data->seq to become even again. > > > > If a time namespace task hits that code path, it invokes the corresponding > > time getter function which retrieves the real VVAR page, reads host time > > and then adds the offset for the requested clock which is stored in the > > special VVAR page. > > > > > v2: Code cleanups suggested by Vincenzo. > > v3: add a comment in __arch_get_timens_vdso_data. > > v4: - fix an issue reported by the lkp robot. > > - vvar has the same size with/without CONFIG_TIME_NAMESPACE, but the > > timens page isn't allocated on !CONFIG_TIME_NAMESPACE. This > > simplifies criu/vdso migration between different kernel configs. > > v5: - Code cleanups suggested by Mark Rutland. > > - In vdso_join_timens, mmap_write_lock is downgraded to > > mmap_read_lock. The VMA list isn't changed there, zap_page_range > > doesn't require mmap_write_lock. > > > > Reviewed-by: Vincenzo Frascino > > Reviewed-by: Dmitry Safonov > > Hello Will and Catalin, > > Have you had a chance to look at this patch set? I think it is ready to be > merged. Let me know if you have any questions. *friendly ping* If I am doing something wrong, let me know. > > Thanks, > Andrei > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel