Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1532507rwb; Fri, 28 Jul 2023 10:42:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJ5oGJ2RNgc6BErFZNqdQxa6+m69pGclRnaMA2W/YS8bu/GJNsZBzOO0tdPKIXam9LBsNn X-Received: by 2002:a17:906:76d2:b0:993:d616:7ca9 with SMTP id q18-20020a17090676d200b00993d6167ca9mr65172ejn.23.1690566168156; Fri, 28 Jul 2023 10:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690566168; cv=none; d=google.com; s=arc-20160816; b=LCIxC+MyIlz3Sv07lrHPc2bYObC45/pBozd8CH/97B1tDo3pTu9pCUUhIyOblYDMeL Bbjtqu0Gkraq3vEin8mF528MlAV3MfmGaPi7jAAOA5puNbnQla8ZXDlPIHXSyBPKhZte eeibcH9Pg6pMEzSb6GvFdZvusASN01Mx3xvQc9xRxStEU94UT/i7xzWn6PnTeZFg0MzY NlWWWOxkWXLyi+YSCtul2RC3c7a9ZGDjsfj8w2H7IYbjFQLn47ZkmXOp1Fjn7EjfYN/x D3AeNt8+M3yNSjfyRZNWH0h4GAxt0GSVmzBfHg8DKiyLjrgjQVGwPlGnY4tXuUTIUBeK 4B3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1Dyh7+qatvQDKM5qDRHq8YkO5TCQeLww3uN1vYmzEUU=; fh=rndYKTbbjSyWphIrXXHHRGZSQrQhUcc16sAS0I86Klg=; b=YLNILxpZ+D6hyhci5AaPa1hOdPj7dQszG1Q4XwSpR+v5fnvE7w7m2ZUWwu3ekixbUi +QMztQP0D/PuQ3irfK+ZO0vhLrYqy3DmnXOXnrQvmWRpPlXUBgkK+5AvTMcBQEzKqCqY decF+RhM/ZFzEtkq69ICOeWiN0OBmG7q2vARQpaSAggJ0/BK38lw+DCQOOReg9bC0p4t GeiaFAJ+GaKOjuzTm2VUmwc29eCZ/wpKztB7l37qmulyK/Gy3TeNUPzKHCEylrP5/Mzp VcupLDTN/0LwegDigvvYHtJmc3IsM6zI9KfVrOblB0TSOSEjpWBNZzBlf9ayWOrETbPp 4qLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EzFo3gQj; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kg6-20020a17090776e600b00992e520a593si2863627ejc.1004.2023.07.28.10.42.22; Fri, 28 Jul 2023 10:42:48 -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=@redhat.com header.s=mimecast20190719 header.b=EzFo3gQj; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230159AbjG1QOX (ORCPT + 99 others); Fri, 28 Jul 2023 12:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjG1QOS (ORCPT ); Fri, 28 Jul 2023 12:14:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FEFA3C31 for ; Fri, 28 Jul 2023 09:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690560812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1Dyh7+qatvQDKM5qDRHq8YkO5TCQeLww3uN1vYmzEUU=; b=EzFo3gQj5XQ/9hIaortrhTD4LYBvIArNQeuoEUMjFSmK9OVj9+r5R7l037EK/2lLnNq90Z iCl5HGQAazJ5SxihMyCGgtE/1fNg8e8aP6nCISlzVK2BY7YZYcv/jQY5OtVem140TIuwGZ xjSysc4LiYaO9KBdfIkJceHnTkWpOxw= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-588-tzAWck8KP82uJsXsCItvpA-1; Fri, 28 Jul 2023 12:13:31 -0400 X-MC-Unique: tzAWck8KP82uJsXsCItvpA-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-94a355cf318so136858366b.2 for ; Fri, 28 Jul 2023 09:13:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690560809; x=1691165609; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1Dyh7+qatvQDKM5qDRHq8YkO5TCQeLww3uN1vYmzEUU=; b=d7aF48MGEZv7cLOlA72cmb9sT0Td/It4ECBPUb/+zps/ach76FcxjD/VOU4LnKvmQc y9qSb/Xcdtg22g/ADGXgVZ/F2fwNvGUBUkclxnhEM9w7yg+ayUSX8m4X8VldL0nCw7yj 4UfOTrWKGEBOso88VGvqtIyisgyZ8zJfbNvfoS2V+wQHyOtRw1oOJhkaIFDcYDGokjEl SnWQNbG4HMaWe6U6VEJ9eqCgNrax7sqvVHpS29bWeTa6Me6wg+nOvVpzty7qfh94ui/O ExR+qq6K4ZhHE9h7R9epcUAELm2/pcbT9FGHIsOG10N+EvOhodWzRckkV2YL8+jG5mQf CASg== X-Gm-Message-State: ABy/qLYD9sDOFsciJWjxLlkXSM/VvFOp/nJ3qgSPBUTVaWLcc5Jl/Xig vXjtHmoRfoIj0C36DItgLsCmU2NZGeIoMwpwO7Zvn4IV34JFjE/cFlUmzd7A90TLySUveMnu2DS ZWZ+HCl13PB86Q890SUBQVP54 X-Received: by 2002:a17:906:5354:b0:99b:efd3:3dcc with SMTP id j20-20020a170906535400b0099befd33dccmr1357355ejo.62.1690560809631; Fri, 28 Jul 2023 09:13:29 -0700 (PDT) X-Received: by 2002:a17:906:5354:b0:99b:efd3:3dcc with SMTP id j20-20020a170906535400b0099befd33dccmr1357325ejo.62.1690560809219; Fri, 28 Jul 2023 09:13:29 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:9af8:e5f5:7516:fa89? ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.googlemail.com with ESMTPSA id gy26-20020a170906f25a00b00993470682e5sm2197928ejb.32.2023.07.28.09.13.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jul 2023 09:13:28 -0700 (PDT) Message-ID: <6da710cf-2bc0-bb6e-26f1-fba14ca767db@redhat.com> Date: Fri, 28 Jul 2023 18:13:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH v11 10/29] mm: Add AS_UNMOVABLE to mark mapping as completely unmovable Content-Language: en-US To: Vlastimil Babka , Matthew Wilcox , "Kirill A . Shutemov" Cc: Sean Christopherson , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrew Morton , Paul Moore , James Morris , "Serge E. Hallyn" , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Chao Peng , Fuad Tabba , Jarkko Sakkinen , Yu Zhang , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata References: <20230718234512.1690985-1-seanjc@google.com> <20230718234512.1690985-11-seanjc@google.com> <20230725102403.xywjqlhyqkrzjok6@box.shutemov.name> <692b09f7-70d9-1119-7fe2-3e7396ec259d@suse.cz> From: Paolo Bonzini In-Reply-To: <692b09f7-70d9-1119-7fe2-3e7396ec259d@suse.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 7/28/23 18:02, Vlastimil Babka wrote: >> There's even a comment to that effect later on in the function: > Hmm, well spotted. But it wouldn't be so great if we now had to lock every > inspected page (and not just dirty pages), just to check the AS_ bit. > > But I wonder if this is leftover from previous versions. Are the guest pages > even PageLRU currently? (and should they be, given how they can't be swapped > out or anything?) If not, isolate_migratepages_block will skip them anyway. No, they're not (migration or even swap-out is not excluded for the future, but for now it's left for future work. Paolo