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=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 86DC8C433E1 for ; Sun, 12 Jul 2020 07:22:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 67DB2207FB for ; Sun, 12 Jul 2020 07:22:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728048AbgGLHWd (ORCPT ); Sun, 12 Jul 2020 03:22:33 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:46806 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbgGLHWd (ORCPT ); Sun, 12 Jul 2020 03:22:33 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id AC44D1C0BD5; Sun, 12 Jul 2020 09:22:28 +0200 (CEST) Date: Sun, 12 Jul 2020 09:22:28 +0200 From: Pavel Machek To: Colm MacCarthaigh Cc: Michal Hocko , Jann Horn , "Catangiu, Adrian Costin" , linux-mm@kvack.org, linux-pm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-api@vger.kernel.org, akpm@linux-foundation.org, rjw@rjwysocki.net, len.brown@intel.com, fweimer@redhat.com, keescook@chromium.org, luto@amacapital.net, wad@chromium.org, mingo@kernel.org, bonzini@gnu.org, "Graf (AWS), Alexander" , "Singh, Balbir" , "Sandu, Andrei" , "Brooker, Marc" , "Weiss, Radu" , "Manwaring, Derek" Subject: Re: [RFC]: mm,power: introduce MADV_WIPEONSUSPEND Message-ID: <20200712072228.GB4721@duo.ucw.cz> References: <20200703113026.GT18446@dhcp22.suse.cz> <20200707073823.GA3820@dhcp22.suse.cz> <20200707080726.GA32357@amd> <20200707085847.GA5913@dhcp22.suse.cz> <20200707163758.GA1947@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6sX45UoQRIJXqkqR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org --6sX45UoQRIJXqkqR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2020-07-07 12:00:41, Colm MacCarthaigh wrote: >=20 >=20 > On 7 Jul 2020, at 9:37, Pavel Machek wrote: > > Please go through the thread and try to understand it. > >=20 > > You'd need syscalls per get_randomness(), not per migration. >=20 > I think one check per get_randomness() is sufficient, though putting it at > the end of the critical section rather than the beginning helps. Yeah, well, one syscall is still enough to make it useless. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --6sX45UoQRIJXqkqR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXwq6NAAKCRAw5/Bqldv6 8uuCAJ9LrEaAGhXBNhJwHuvAzGcY9PEKpACgo6pz2brnyUlPHZvcCAbvR8lQRLk= =jD89 -----END PGP SIGNATURE----- --6sX45UoQRIJXqkqR--