Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp859403rwb; Tue, 27 Sep 2022 05:42:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5TWZLZprr/yxiwiotifT8xQr5++lGw1qVqw1Yg1n0yYNfDcw1BLyg2hJXi8LipHulPQWE7 X-Received: by 2002:a05:6402:1e8d:b0:441:58db:b6a2 with SMTP id f13-20020a0564021e8d00b0044158dbb6a2mr26880952edf.277.1664282520722; Tue, 27 Sep 2022 05:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664282520; cv=none; d=google.com; s=arc-20160816; b=0aanliKjZYaN5Mijei5ldeeKxCQXZRm5atIwsm8mX7zKeBPR7/c/+SPhZMfgD6H/oG lrPoiCKfM57rJ8ZUfM+4z3y6fZfdffknhJD7lZtlZRpx151uEl4mK3Hb18+gz1uxnn0g 3QahJVt/pXgdqgB0D92PkUPZNBD6dUPbs7lz21wewBytpBJJaLTZ/vyE6BFLgnXFxQz4 lQdfUhmsJJUi68xJgSu/BqPb7EKp2X1KkokPtcwImY1iipdUOebf+vWqustzZ1PiG0GK wZwHlvFuVt2DUW1ZBoKwPHZ4uBjsrX9Bp8bV6x4M55Dwd9+v7l08VK88Ymn5MgXcrAfb ZFgA== 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=rSE3SZr7AU4BSfTZW9EzqUJqNHJZJS1agFSm+3MsOAM=; b=lSNoYl9i/dQmDGf+ezNtiPMmA1liT0seVY3+HNJ0MhYE5X5p+124GG5fTOQkJEDtsM S+zb2GwqfonhN6LWxm0No4SF9HeFThUqJcZwwwl+Gt+feo9SNuRseH6jqSebopWfhCEA YemkDL8ZFXEXPeDFmpP3WYDz8Gy3Pmq/L4EMxr+9fq2A8hps9I8TOpwWtIHLV4Pg4mKL 5tZ0zp3ROe9wuueT+axq7QY8LrfezJGycGA0vBn18gPCTD8HWOy5UDJbfAZ3vEWQe63F GuKOBdxnEHMSFRYV0/dNl0mTgE4Kr5h3JZtTTT1bPxFspOvJ1QYuaWNFpL8avszi3T9O /Vdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UigL3dT8; 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 b14-20020a056402350e00b0045434ec2db5si1565372edd.508.2022.09.27.05.41.34; Tue, 27 Sep 2022 05:42:00 -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=UigL3dT8; 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 S231602AbiI0MPU (ORCPT + 99 others); Tue, 27 Sep 2022 08:15:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232308AbiI0MPF (ORCPT ); Tue, 27 Sep 2022 08:15:05 -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 7026113D57 for ; Tue, 27 Sep 2022 05:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664280899; 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=rSE3SZr7AU4BSfTZW9EzqUJqNHJZJS1agFSm+3MsOAM=; b=UigL3dT8bhVsb5z6RXv7Ii0OgqjjeoH97JzvKZE4qav8VPLjw8NlsBv/PFLWlBvYTDPnLo sKG5Ti3jIo5y07R1dapdgxj/AExqo9aaEswvclfkDTVuPHHNjoekOMqp7kkx2fD1Tjjfvf J6FTxC0RUdvso8C2o7qMis73n981MXI= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-516--e0YmoDANcC-NQj3AoyB6g-1; Tue, 27 Sep 2022 08:14:56 -0400 X-MC-Unique: -e0YmoDANcC-NQj3AoyB6g-1 Received: by mail-ed1-f71.google.com with SMTP id i17-20020a05640242d100b0044f18a5379aso7761521edc.21 for ; Tue, 27 Sep 2022 05:14:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=rSE3SZr7AU4BSfTZW9EzqUJqNHJZJS1agFSm+3MsOAM=; b=J6tcQuavRC5xlchA2IqWSctXjX76MDd3m6JXmnE9+ejFmWLHt/5lVyXBENj1gfhZkB h1TRpk+TbL2bkin/oim/34J1wAmMuCtGWk04ZlVNLBWv7Ef+ySFU5zA9F77e19HE77Yf 3Mlqufd6pdWL0ZhgDYp+9KtrfigKCS+uCXt9dKz5HbnRZeLw1rFeiF9NpEP4sThAUZH2 Su9YjK1mNSs6yCI1g+yRQGxhzuTwILUW1lO/GYy7ZKh+7cI6Mj8h/4HhfhD1ia0MpchY ZRYDg2EB0k946CQd7X53HNLLzduUhPP+jYcO/MSOHA0yW8qiVMqKsHFNwp/3NwsegCKd 1X1w== X-Gm-Message-State: ACrzQf2GHpIVJTOAjOz2mfopdB4dWJY3ujVY6uyV4YH8wFElb/tidA9l PB2gW8ku2fET8jozcYYtxERoUvfm2dBLFSO5Z1kFBvONYZQH1XPI6yiL9tF9lKCNmTx5LwqkXOG UOAuc7r1cAdeHLASdiq6VyQpv X-Received: by 2002:aa7:c04f:0:b0:457:1b08:d056 with SMTP id k15-20020aa7c04f000000b004571b08d056mr14655691edo.146.1664280895437; Tue, 27 Sep 2022 05:14:55 -0700 (PDT) X-Received: by 2002:aa7:c04f:0:b0:457:1b08:d056 with SMTP id k15-20020aa7c04f000000b004571b08d056mr14655669edo.146.1664280895219; Tue, 27 Sep 2022 05:14:55 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:1c09:f536:3de6:228c? ([2001:b07:6468:f312:1c09:f536:3de6:228c]) by smtp.googlemail.com with ESMTPSA id u11-20020a170906780b00b0077a8fa8ba55sm695214ejm.210.2022.09.27.05.14.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Sep 2022 05:14:54 -0700 (PDT) Message-ID: <005c8afa-d290-d140-0dac-19a41f2ef81a@redhat.com> Date: Tue, 27 Sep 2022 14:14:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH] KVM: selftests: replace assertion with warning in access_tracking_perf_test Content-Language: en-US To: Emanuele Giuseppe Esposito , kvm@vger.kernel.org Cc: Shuah Khan , Maxim Levitsky , David Matlack , Jim Mattson , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220926082923.299554-1-eesposit@redhat.com> From: Paolo Bonzini In-Reply-To: <20220926082923.299554-1-eesposit@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 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,SPF_HELO_NONE,SPF_NONE 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 9/26/22 10:29, Emanuele Giuseppe Esposito wrote: > Page_idle uses {ptep/pmdp}_clear_young_notify which in turn calls > the mmu notifier callback ->clear_young(), which purposefully > does not flush the TLB. > > When running the test in a nested guest, point 1. of the test > doc header is violated, because KVM TLB is unbounded by size > and since no flush is forced, KVM does not update the sptes > accessed/idle bits resulting in guest assertion failure. > > More precisely, only the first ACCESS_WRITE in run_test() actually > makes visible changes, because sptes are created and the accessed > bit is set to 1 (or idle bit is 0). Then the first mark_memory_idle() > passes since access bit is still one, and sets all pages as idle > (or not accessed). When the next write is performed, the update > is not flushed therefore idle is still 1 and next mark_memory_idle() > fails. Queued, thanks. Paolo