From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50D423148D8 for ; Thu, 9 Jul 2026 13:45:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783604711; cv=none; b=B4+IVizX55Qwg6G1Go5HwZqKqAs/IvEu+54bYXmEmnSMFuWow85HwKvCb68f6Qq3xSXdv+Na9bgTeyGDddTBWH3ZWcCXOlYtt0k4aMngfZT8oRTupw/VexmXPHWjRRLEl69jj7DciwaDLsyj5dobmyfW3Da8P8DzkafTvS2Hpjk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783604711; c=relaxed/simple; bh=hV1txD3s0gTLfPiS3b2/9sZVWfKgrmrE3xMhHxL2XQs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EaKiOrzvZXuNGbW5xHNLG26rrBgzVxqYXIhltn3xm4MgBIR9aUW11ApxgCG5dQi2zQeSC7KzHgUWGLnDsENQss95dY7wcLsUojZMY4LhrJeT79n4woQUONgECNPZKOleJ8QhMD9B8I5uoTioX9J9SooxR7G/6lVsbgHZ1y7INzY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=cF4iv/v+; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=LOntyHXA; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cF4iv/v+"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="LOntyHXA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783604709; 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: in-reply-to:in-reply-to:references:references; bh=0B2CCHmIqiYi2OjZQM05i6RdlCsyGmxI7RbfTKwg3sQ=; b=cF4iv/v+YL71tg+WIiD2caXT1z8whwSDuotZ+B+zbL5mjxvbXc8ouX2PifGXaVVGlFzUif A4gnUmZjF9UdTPoXB3s09calvmlI8JX8ZdBWdLnl3McuuKZUhSdsavlzc9+T0iEEUueIPn sfQCmMJWEVaUQJQL5DocEFD+yx0pZGs= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-kr1VVMSIPnqmCEpuS4RFSw-1; Thu, 09 Jul 2026 09:45:05 -0400 X-MC-Unique: kr1VVMSIPnqmCEpuS4RFSw-1 X-Mimecast-MFC-AGG-ID: kr1VVMSIPnqmCEpuS4RFSw_1783604705 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-92ec3146553so159829185a.1 for ; Thu, 09 Jul 2026 06:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1783604705; x=1784209505; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=0B2CCHmIqiYi2OjZQM05i6RdlCsyGmxI7RbfTKwg3sQ=; b=LOntyHXAiZrtud2uZP7sWN49TGh+ZRBTc5d0v8HDoTKwKJBzwF9Ma4RMASqFVza5R/ HNp8ANMbNbXRcIre0TJzUdMGPM2m2LVnsokqBx1IiWTECtywQD6JDd05TSip63Ddrc3N PSpBxbyZdkaJN1GGRo5q/JBp1VcMrPJvvLTfqffqtkSoc9kjnM7N6KcwIp3UTkGFwlyi AwqFsCgPW+UaW+JWnCg+bqPnWLExHonHb8CrA7K6MjeMv1CMd6AVNprnhwaEo20ixN5z 7iprXONBeF6+iAxwFXeiBLuf+aBG0OT7vj582dPd0N8TJbGfVXRamzGYgIYeisOfzMnt 3Ldg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783604705; x=1784209505; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=0B2CCHmIqiYi2OjZQM05i6RdlCsyGmxI7RbfTKwg3sQ=; b=B+0D7vaAzQmeU3UaNRbFyiEnhqux6evLHScmXl/G0a8hK0IHS6Db40K3tF/fMPBaOn wMt1qzI59Cc1nxi9GFWm16UEQweVR4vIiWiuor9s2wUOuS9I4ePvtZuP8WsnXQslorR8 m/6Kd40gPlbS6JN5H/W7Rd9DTDn1QSK4+CPL5BdXumX38CdnEtv1oDLkxJ+qXS+E3l3/ uI74gM0jr3wALAoNGgP4L5/PJuth6HasIpDDgqyAorjtgVoQdPPuXOfqj+PgyR4Z78q6 pYKpcpkQYQlKXRiU/Jtmx5MROKI/vYv/LQDVz1lwA+ePXbsmJxfB0y3AnmtfuGZqTynM 2ARA== X-Forwarded-Encrypted: i=1; AHgh+RrBlj6pJgavhCbi0AHgmgJCezGWZ4PiEAxTf1OQ6iMGz4VSzj1rZwEZg8aRtbD9H1ryubke8EuoFgJ2ApU=@vger.kernel.org X-Gm-Message-State: AOJu0YyrSINjEYQ7MxRWG9JXSZmQoQ/DoZabHiF1gJ/wZSfQihvFYO2t xHgHkoULrRmNuLIhCYhxB+MDiWfI2cvLC2yVodUd9SxvhrIoxh2iLZUlMNVYpeKmoOnNboU/39V SzSj18QZbMOXgcDyagd1iTQjcNvK+h1tQ4XAmRuRrppOTrSXQ8eKAd53v3+LjTUTLHA== X-Gm-Gg: AfdE7cksKfjxGuuEpu75MGO8AddLWHMMr5ZBv/srWX8pAZ2E+wtYnr3P0Jr1pueXpaE 9mg65+yv4DEdXfTyJotRpwJZhGIA76v68UnJMg32T8c5UVFvDadBfdErKLEsxflhWCI9ZM7wVty jUnPUngBNGERlBKYySbzB7WHXhLDMqZsIq2YbfSw1wRJsG8cHm6G2f1DfPT5uWmF2Gk8sv/y4qr mWf2/nY4sW8dstS4KnaI9NOGURbFHdv6OKo5iGC94ShcXuxBYpMOpVKHiqGZUukuiOglDYezPmo 1rWwYvO5XGpFYp/J9+rZToYij7DTLJb9vEkmEop5Nq0DqQKWmS/mh1oC77d4p5ddOF5w6+PApdY mduj8JxiehXxwb5zANZQ/EQv+xb7bYeIFMsrtOB+ypw4DcJ6uElGt83Q= X-Received: by 2002:a05:620a:4624:b0:92e:48a2:533a with SMTP id af79cd13be357-92ecf6aa74cmr764349985a.47.1783604704806; Thu, 09 Jul 2026 06:45:04 -0700 (PDT) X-Received: by 2002:a05:620a:4624:b0:92e:48a2:533a with SMTP id af79cd13be357-92ecf6aa74cmr764344385a.47.1783604704231; Thu, 09 Jul 2026 06:45:04 -0700 (PDT) Received: from localhost (pool-100-17-17-231.bstnma.fios.verizon.net. [100.17.17.231]) by smtp.gmail.com with ESMTPSA id af79cd13be357-92e90ccdf8dsm1665479785a.37.2026.07.09.06.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 06:45:03 -0700 (PDT) Date: Thu, 9 Jul 2026 09:45:02 -0400 From: Eric Chanudet To: Albert Esteve Cc: Tejun Heo , Johannes Weiner , Michal =?utf-8?Q?Koutn=C3=BD?= , Shuah Khan , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v5 3/4] selftests: cgroup: Add vmtest-dmem runner script Message-ID: References: <20260706-kunit_cgroups-v5-0-6c42c8753468@redhat.com> <20260706-kunit_cgroups-v5-3-6c42c8753468@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260706-kunit_cgroups-v5-3-6c42c8753468@redhat.com> On Mon, Jul 06, 2026 at 02:06:42PM +0200, Albert Esteve wrote: > Currently, test_dmem relies on the dmem_selftest helper module > and a VM setup that may not have the helper preinstalled. > This makes automated coverage of dmem charge paths harder in > virtme-based runs. > > Add tools/testing/selftests/cgroup/vmtest-dmem.sh to provide a > repeatable VM workflow for dmem tests. The script uses vng --exec > to run the test directly inside a virtme-ng guest with minimal > setup. > > The script boots a virtme-ng guest, validates dmem controller > availability, ensures the dmem helper path is present, and runs > tools/testing/selftests/cgroup/test_dmem. If the helper is not > available as a loaded module, it attempts module build/load for > the running guest kernel before executing the test binary. > > The runner also supports interactive shell mode (-s) and reuses > the verbosity and KTAP exit-code conventions used by other vmtest > scripts, so it integrates with existing kselftest workflows. > > vmtest-dmem.sh is placed in TEST_FILES rather than TEST_PROGS so > it is installed alongside the test suite but not invoked > automatically by run_kselftest.sh. It requires a VM-capable host > and is intended to be run manually. > > Signed-off-by: Albert Esteve Reviewed-by: Eric Chanudet -- Eric Chanudet