Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2883269imw; Wed, 6 Jul 2022 13:24:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ti1Bgk7GG8J7jAzomtqNTde2X/vOaSc64b6TFuCMjKS/3AzVHWw0CMoH1Yel7FB2Moj9kc X-Received: by 2002:a65:4501:0:b0:3fc:4895:283b with SMTP id n1-20020a654501000000b003fc4895283bmr36527938pgq.231.1657139079203; Wed, 06 Jul 2022 13:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657139079; cv=none; d=google.com; s=arc-20160816; b=XXVIMpvMi7hwHw7GdR7uWPRihs8IUoH7HaI2Wwdn2o79+xerVA5AroYtJKST1h3ta1 J5dSyTqsAM4V75TUAG6EetqRAX5fUVDkLPQEDx/19dACETUd7i08xiB8ldlNr2OM0PxJ WcyW/JWvtDuMWy436RDYL+WsWCzvNW67HMTjhq3zyfHD+ass3Mad/VT98thhEbrgafPq xfIoxe2dFKZfUd2cLEj3EKo21FCu+jGxwsk9/OwEbursx88rOpDizk2u2sMKZgW1YPtp hImZ+tAg9NVLLjE5VTfQ/otYa0vcR5vB7vOVYVWWJ8UmtmFGDrEn8jptMi1FUiSifItq A26w== 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=hTNGgjqkz2i9jOPOcItVEbeQ0jxQ0QpDjfjTJFVrwkU=; b=cXg8D7AbejQbRxiXzbYZVzONmKB3sITV/KgZcj83wTZhKMfTNu4G2MuNjoGDhvPmw/ Q4jMLZUN2hdJl1yAjNqqfiHjlAKPBIPYI2tX1xTXGKKIVe/B/cz3lKrzf4AykB9iLinK DxMNe8NDWqY5addM3DHGUn3LrRfbnglbT1kUswvxw7OwKhFitwuPs+/Lh/GD6hm7VbYM XaLTU7OPx5UlX6/yu+F6YiQdC4gFOiME+xYCUJq0xCr7l6pzAExsq/IsmKIgh4w4s48X 623hsr3NUamgS8PT8S35VSu6Mqk4hQ2FLpCZhBd7WSsVM6mAgoz6Lxrh6Z07aarwgAVy we4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=M2WUc3yq; 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 f12-20020a056a0022cc00b005257ae10bb3si52505340pfj.348.2022.07.06.13.24.26; Wed, 06 Jul 2022 13:24:39 -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=@google.com header.s=20210112 header.b=M2WUc3yq; 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 S234273AbiGFT7A (ORCPT + 99 others); Wed, 6 Jul 2022 15:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234218AbiGFT67 (ORCPT ); Wed, 6 Jul 2022 15:58:59 -0400 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 5793F17A81 for ; Wed, 6 Jul 2022 12:58:58 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id j22so2637173ejs.2 for ; Wed, 06 Jul 2022 12:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hTNGgjqkz2i9jOPOcItVEbeQ0jxQ0QpDjfjTJFVrwkU=; b=M2WUc3yqCrQNl6IC5KPsFmi9IMNMddHBmWopzsOro7NzVcBYgK9Znk35UelqCq7o+5 GF0I5TsuOGb/zpp81C5iDvkXEmiy9wO6kKmNUUa7wK2gH44wewzM/7vLadCmCEftVSne aSoFHeY19PpvlSXBCDrEpPr65YD6HLHsBK+m3X5sLARERrp7fR5J6NMSoAg1TGYsjiLD Q9kuge5amCUR6csjXshl7HJbWFLzpCxwpq16nWtz8y0hyYZcNmIeZ6jjJd3Jub1yd6fm Nf8IY4oBRRQ7S2ew3rvwNqT+FaeKErGm7ZZTwfNF8iyrb641lTzD7SCcp9IjqdkmiLiU oTQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hTNGgjqkz2i9jOPOcItVEbeQ0jxQ0QpDjfjTJFVrwkU=; b=cdXaF07+CYit64JPmce0Dc9jZyXqhoXL12yasgKEb8m8XmupmemXMrrKw+Infyyetj COil7RLeVpFMmN3iXyCsHpVTudB7hWgPpLTOcPStBEfVASQIQHIEXp/ZTI3fGc0W3acR FsR02ee2lehLjj3v2XPDKzXAzJx9vgrqHYrJYR103bclnILn5QQfd2mNvKdSBnqW5NAJ LvLP1r6VWS76mC1GdVa/gTn+Ljqx2eOSv6aFxg1z7MWuLwJHdVA61IlW3iteTBDOT2sN 4qVWm5JRJg+0HDCSSROipp6bMdNOn7otRQm7aRfvd4vAjGnpLXnw6qXnS8BcWiSINYoV LpGw== X-Gm-Message-State: AJIora9G/jwL3FM7M5PKdqTRY2nX0FmsdPUwVmXAIcr/q8UHVnQep4LB dQOQ2PMaKsP9u2TWXEqDjivJMHKkM9qoxi2XzmHUmA== X-Received: by 2002:a17:906:5d04:b0:722:f46c:b891 with SMTP id g4-20020a1709065d0400b00722f46cb891mr42052343ejt.4.1657137536835; Wed, 06 Jul 2022 12:58:56 -0700 (PDT) MIME-Version: 1.0 References: <20220513181032.24484-1-dlatypov@google.com> In-Reply-To: <20220513181032.24484-1-dlatypov@google.com> From: Brendan Higgins Date: Wed, 6 Jul 2022 15:58:45 -0400 Message-ID: Subject: Re: [PATCH v2] kunit: tool: cosmetic: don't specify duplicate kernel cmdline options To: Daniel Latypov Cc: davidgow@google.com, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org 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, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Fri, May 13, 2022 at 2:10 PM Daniel Latypov wrote: > > Context: > When using a non-UML arch, kunit.py will boot the test kernel with > options like these by default (this is x86_64): > > mem=1G console=tty kunit_shutdown=halt console=ttyS0 kunit_shutdown=reboot > > The first three options are added unconditionally but are only intended > for UML. > > 1. 'mem=1G' is redundant with the '-m 1024' that we hard-code into the > qemu commandline. > > 2. We specify a 'console' for all tools/testing/kunit/qemu_configs/*.py > already, so 'console=tty' gets overwritten. > > 3. For QEMU, we need to use 'reboot', and for UML we need to use 'halt'. > If you switch them, kunit.py will hang until the --timeout expires. > > This patch: > Having these duplicate options is a bit noisy. > Switch so we only add UML-specific options for UML. > > I.e. we now get > UML: 'mem=1G console=tty kunit_shutdown=halt' (unchanged) > x86_64: 'console=ttyS0 kunit_shutdown=reboot' > > Side effect: you can't overwrite these options on UML w/ --kernel_arg. > But you already couldn't for QEMU (console, kunit_shutdown), and why > would you want to? > > Signed-off-by: Daniel Latypov > Reviewed-by: David Gow Reviewed-by: Brendan Higgins