Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 B6EB9274673 for ; Tue, 20 May 2025 10:58:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747738707; cv=none; b=Yiaz4MHHQbCxhy518rvjJZmuPOG6CJYMIVeJIx69UDOhpkL+sKoe/8yD2UeJWWidAj1Gb+NQUMKKU3T17yZce2IWjQn4nm0sU9W413tDJq4Rbnre/cLlrmYEbZuYpV3WhM2QiPFLnvd+KNKmhFivFhRbI2XXvUtdtGlAIOtd0YU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747738707; c=relaxed/simple; bh=XCjhuqMISSLiz8GE+zUfY3bVdPUVO6omDyP1PQiJ4QE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=U93cx5y3k8KfmWe0/pHM8VwKQUxcV9/0SB0XWFuU4wfCVXGgmYKFN2SupZZFPHp/5CSmbcDz4dm0KfoeE9N7Z94EZZkv6ywRA6Pk77gk0uGCt8/YMlRRmtpzTqALetuNDGYiXCsvWtz+a/XCkJyBkUt5j9hklE4W6jWhrLyQR4I= 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=FL/1PXNI; arc=none smtp.client-ip=170.10.133.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="FL/1PXNI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1747738703; 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=D274b/Kowlx4frHiCJWZP9nEutUPctu6wUBTBcBAl+Q=; b=FL/1PXNIhWSeLXnyHnd6L1CGvcIpqOeGjkYUPkenRVJ23R1Fr5eOF/+kkgqWIiBQMRuEGX G/Jz/H50tVl12AC68A+385ys8j6BeQkOTibLyyAq9XeYXVtr89ts7h4+4dAU8lC4/DrsEn Gh6+1SOoStzECLl3V75G9ptC+vIgCHQ= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-190-ZJkk_o9AP0mSKCya5fAeuw-1; Tue, 20 May 2025 06:58:22 -0400 X-MC-Unique: ZJkk_o9AP0mSKCya5fAeuw-1 X-Mimecast-MFC-AGG-ID: ZJkk_o9AP0mSKCya5fAeuw_1747738701 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-442d472cf7fso43772445e9.3 for ; Tue, 20 May 2025 03:58:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747738701; x=1748343501; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D274b/Kowlx4frHiCJWZP9nEutUPctu6wUBTBcBAl+Q=; b=UGh3HDBNtSY5JSce4H9XJOIhW/zLhVMfaG7lWfar/WjuMtK3nnITBe5Jij1/x5XYAo iI/AHAQ2SzjrXE0zCDnLUJ5YJVBzinC77OIk0ChCOdTwsbL6JRhlBro9sTzlk45E1x3V d0LIHhDRlLm+UrOSbBuZS8o1+mmcZmqrngXC34GXuRDiYVZEoHSPBSmPKyw971I36BPP JsPsh7gF5Zd2oBoRXdWsBn9Sq21d4TIoAXkWy62sqYEJBp1uaFv1gTIURnUqWkjLolFK 76r+O776FLHXrBvz1GJbOfh5vN7exU6bNF5/aZzS8iqpSYcVuaeGYN+vA0x+EDKc9Qow LueA== X-Forwarded-Encrypted: i=1; AJvYcCVIdWtdCMNiA4kvP2oNoRvYPwObBiTsdnQQsBVkgcXPmbBcWLZ5grhDgg2OM+6YyoxED5g=@vger.kernel.org X-Gm-Message-State: AOJu0YzOsXidCPVzaM+liznewU+Rw6dTuN4O/z24JunUbnuro8kWla1X hgChFeKPt++eUuyzhsNzG3zbLaaL69TPGXIX6Uj81ZNlpyoWPSzTYkRO4Lou9A8XgYad825BaQP KDi5lPezeWKYn+hRtVrV7vC3i7NaugAzb5TYDVEAsbMXwcbvl/MjHug== X-Gm-Gg: ASbGncsrj5bID+HWKeNPDcwcnRb3r3Kwj+8VaFZcVHRGIrXfBHSnEmyBX/TAW66imgA LyJXrq6QmHO81+6NwAxmMoPIP9HL/i/CaNWY4vV3un2urCBQTEJ2earvX+pV+2P9BTHT6R+n7ux oKWgF+NC7g7Ikpup+Zt2uCRHaFgLyNelzUprf9ZLbkDD+9673wu+EzwXnFLqVKbUDeqPaYUMwdR KWcWdXKhXV04wCn6d3RVmNs0nSd6b9zHt6o3/13qJ3f2CBqSxkBQjE9CXlhhV9kc8Nkd2xjrYXo C8D3lkCFSbZSk1Bymn/EgJ2993Gn38VXpOmHh52V9pFAqAWczTa99yqQiII= X-Received: by 2002:a05:600c:34c9:b0:43d:fa59:af97 with SMTP id 5b1f17b1804b1-442fd671d12mr138378625e9.32.1747738701185; Tue, 20 May 2025 03:58:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvQyiml0UoaDF/88g9sn8ucNfch1PfIPLwL2A/DSRiTilof5rRlAsf3z16t0LsF6Ckj58VyA== X-Received: by 2002:a05:600c:34c9:b0:43d:fa59:af97 with SMTP id 5b1f17b1804b1-442fd671d12mr138378435e9.32.1747738700827; Tue, 20 May 2025 03:58:20 -0700 (PDT) Received: from ?IPV6:2a0d:3344:244f:5710:ef42:9a8d:40c2:f2db? ([2a0d:3344:244f:5710:ef42:9a8d:40c2:f2db]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a35ca9417dsm15708833f8f.101.2025.05.20.03.58.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 May 2025 03:58:20 -0700 (PDT) Message-ID: <73a4740e-755e-4ba8-8130-df09bd25197a@redhat.com> Date: Tue, 20 May 2025 12:58:18 +0200 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock To: Stefano Garzarella , Bobby Eshleman Cc: Stefan Hajnoczi , Shuah Khan , kvm@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Simon Horman , linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20250515-vsock-vmtest-v7-1-ba6fa86d6c2c@gmail.com> Content-Language: en-US From: Paolo Abeni In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/20/25 10:24 AM, Stefano Garzarella wrote: > On Thu, May 15, 2025 at 03:00:48PM -0700, Bobby Eshleman wrote: >> This commit introduces a new vmtest.sh runner for vsock. >> >> It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, >> H2G, and loopback. The testing tools from tools/testing/vsock/ are >> reused. Currently, only vsock_test is used. >> >> VMCI and hyperv support is automatically built, though not used. >> >> Only tested on x86. >> >> To run: >> >> $ make -C tools/testing/selftests TARGETS=vsock >> $ tools/testing/selftests/vsock/vmtest.sh > > I am a little confused, now we have removed the kernel build step, so > how should I test this? (It's running my fedora kernel, but then ssh > fails to connect) > > Would it be better to re-introduce the build phase at least in the > script as optional (not used by selftest, but usable if you want to use > the script directly)? > > Or at least I think we should explain that the script launches the > running kernel, because the config file introduced by this patch > confused me. How it's supposed to be used? This is the usual selftests schema. The user has to build and install the kernel including the specified config before running the tests, see make help |grep kselftest Also this is what we do for our CI: https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style @Bobby: AFAICS this now has all the ingredients to fit NIPA integration am I correct? the last commit message sentence could possibly be dropped. Still it could be worthy to re-introduce (behind a command line option) the ability to build the kernel as per Stefano request, to fit his existing workflow (sorry for the partial back and forth). Thanks, Paolo