Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3221869rwb; Fri, 20 Jan 2023 12:59:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXvygaK3Kkg+QoGnEu7+EbMfjE+8rfvKrMpXgBQxcBtV1oRx67FfTZ2bKLCz24xxZ1Y7QzC3 X-Received: by 2002:a17:90a:430f:b0:229:46f0:6f71 with SMTP id q15-20020a17090a430f00b0022946f06f71mr16502801pjg.45.1674248394710; Fri, 20 Jan 2023 12:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674248394; cv=none; d=google.com; s=arc-20160816; b=lk9hivvEZas7EdxLh0V4oiZpJTCM85CsRq10LE6XkmjIA5gz4y4BKdzGh3SlJpd2gs OxkQO4kBEgsnvTJr+Ay+0ddrGTrQRwQGJBjD5ML55aHvdcrucHjL7+JHoCDpcPeDBqRc eszpwPfXuC6dNTCVtjeEyC+cDws+jDO0M4oX/OTPD1aBcC1+nUfhrmUTipi7454KEkEG 0Y5z2SMSAtVmSVbjt27F2ALfIPwsDfNwZTrmg1YyFq7fnXcpLJ5G2j+E6ZUH0/dN0E/M BoY/QGEqCJ6FUDLiLqBWr56VuxVGyQqU/KW5lJ/0g4bj9VnEEKqoNHqo471yHmW228mm hx+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=R3mqKfWwkAqfNQ9SXTy26dswmpdH80HIQHhYT+qENhU=; b=v725o1o9uZeSFZQ/CcZ8hL3eG4i2A+jAsTLME7xSKC4PPvAfNRZZJ1yy4nc4fMJiDX uhhq0xOUyetieqYXnozDCoG5v3LtbqrXM7O4guTNcfkFbG+oF+VJOkHohEHaGkgyAaKX RrDk8qun3paM9LBO+Pg40BBvFvNA9EFsdOAVZwEPL3ejK2fUxsb2hakGO4Kb43CbCCWe wIbJ7cHWbNelzTO5+qWPAl5GhY1+LTOHtM2QiBnVxH10C0DDX8cNmJ7Xq8CLip+DdVGA JhZctqt7NhIb6pif9nmbgM00wKB8FtHSCW3HAF1fF6uGwxjK3Cq1uJ+Px6xXsMgNglEv URgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ZfsUCigm; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx1-20020a17090b4b0100b002296a8ff568si3793555pjb.152.2023.01.20.12.59.48; Fri, 20 Jan 2023 12:59:54 -0800 (PST) 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=@google.com header.s=20210112 header.b=ZfsUCigm; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbjATUET (ORCPT + 50 others); Fri, 20 Jan 2023 15:04:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbjATUES (ORCPT ); Fri, 20 Jan 2023 15:04:18 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7783F4520D for ; Fri, 20 Jan 2023 12:04:17 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id ud5so16711276ejc.4 for ; Fri, 20 Jan 2023 12:04:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=R3mqKfWwkAqfNQ9SXTy26dswmpdH80HIQHhYT+qENhU=; b=ZfsUCigmV0BK5vJIkJK8BqSjQ6+m3RwokF1amH7A0w1GyoVj2Pp7mGlqcXbqr7ZXfr 0gGsCLWhZ8sHkn/KXUOKkb90wNCHsJ9verb8w3/NsW5Xo/M5hCXhsmn0tRwyOiX+9FB5 KyS2P+M0Smg74ZxtOI0llSefj/PeXFBCVgSMsBaBoIqKP/CpfRXR24uBxo1JzTYSdM8w 0YAQAkv5ZwXONZrJqD4elzab21q2R/6Tj6mruP45FYHx9JIatfyxJXABUeuJyfbahzq9 2x3HiHJdBYBASSEwz2Nqkj6EUOlmVfrU0qxbdSN7q0uo0i7DAxlmhRVwE7gNqXnZQY7Z Akug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R3mqKfWwkAqfNQ9SXTy26dswmpdH80HIQHhYT+qENhU=; b=sDXr3FgG/BoNdZAKxJKNjjxQhCSyoBzPJZ8ospm6ZcBNilIeSheRmFLtIbYrnQ+l8G wrz4FMc/AMchoHMTStRSMbbkYdVmM4HsHOXfQBTQ0viTG8YiQVmcg1r3CaUglY1eNMua 6ePJ99FaUtlVkyLuVFJ5LFWZLxju6qXeOzMpxC2Rk6mhG5xDsYL1qqd60OdYe4+JKf5D RgoWS1ry5GuZpTP7XtZHn3bXIn7DLioB3sHNsKFLdNlL3/aSFT/gqAVdpGm14SiwYJlq +vj0PtTMU0fge+4cb1kYXJMZ3/0LNKYrf5AjBSpKPiWeroli+G9dBbgK7gaD6CYMGbjh OubA== X-Gm-Message-State: AFqh2ko0pIAn5eBeRJsoRz8po4wBO4/srgj85wVgWw6wqIz6UjVgfsEB gXhANUWLagbhWwayZtusJg2VAk4f3LYmMorejJHICA== X-Received: by 2002:a17:906:40d6:b0:86d:8218:cf91 with SMTP id a22-20020a17090640d600b0086d8218cf91mr1445656ejk.530.1674245055937; Fri, 20 Jan 2023 12:04:15 -0800 (PST) MIME-Version: 1.0 References: <20230119212510.3938454-1-bgardon@google.com> <20230119212510.3938454-3-bgardon@google.com> In-Reply-To: From: Ben Gardon Date: Fri, 20 Jan 2023 12:04:04 -0800 Message-ID: Subject: Re: [PATCH 2/2] selftests: KVM: Add page splitting test To: Ricardo Koller Cc: David Matlack , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Peter Xu , Sean Christopherson , Vipin Sharma Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 Fri, Jan 20, 2023 at 6:34 AM Ricardo Koller wrote: > ... > > > > > + > > > > > + run_test(&p); > > > > > > > > Use for_each_guest_mode() to run against all supported guest modes. > > > > > > I'm not sure that would actually improve coverage. None of the page > > > splitting behavior depends on the mode AFAICT. > > > > You need to use for_each_guest_mode() for the ARM case. The issue is > > that whatever mode (guest page size and VA size) you pick might not be > > supported by the host. So, you first to explore what's available (via > > for_each_guest_mode()). > > Actually, that's fixed by using the default mode, which picks the > first available > mode. I would prefer to use for_each_guest_mode() though, who knows and > something fails with some specific guest page size for some reason. Okay, will do. I wasn't sure if we did eager page splitting on ARM, so I was only planning on making this test for x86_64 initially, hence it being in that directory. If ARM rolls with the same behavior, then I'll add the for_each_mode bit and move the test up a directory. > > > > > Thanks, > > Ricardo > > > > > > > > > > > > > > + > > > > > + return 0; > > > > > +} > > > > > -- > > > > > 2.39.1.405.gd4c25cc71f-goog > > > > >