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 0D83E20E702 for ; Fri, 2 May 2025 10:28:22 +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=1746181704; cv=none; b=uzmvh6nLUBTWe+bmGzcJ3RP2TezjQujpvRp0RvV58c8j59RoPwGXPmm9iYX+Ewh3eLcUHBokdl1QC4WQlUk5aMPnceycML1HK7uM3C1Li9UsDCuErjC6m9yo+JOQkthA1BbHo1tJV2t8BafuXoFOiEXcu44mMyIHc021kKRPBlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746181704; c=relaxed/simple; bh=SEU8CqxPdXWm5kBs+itfyCdnnlLFQ0gV+s9EvH0h3a4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cca699BrTE+1x2Jw1FEDiWFNFNg8azaI5irhJAm1SIlTJYMIqYUoPXrnwX5NiicYF8jFMmL0/PnifzWludqWjD4XuE/wkocDYzg6x88xDTiHaHPOOc1Arb7XnM77KPQkPwV8PuxU7u0z1D9F09ICnsaXzYcu+C/uJthu5Wd/jWY= 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=H64ScWfx; 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="H64ScWfx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1746181702; 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=QSbhw2lx3uIU9bt71Ke9bjoVhiyqLGEvU1SMMBHqrLU=; b=H64ScWfxSM7cF+QCqeuldvCfQnV5iv/rxuLuU2M06TyvrdBDVdfvLjxJbiE9I6wZAdZ3Gm mNU2SEC7sst43cb1pSzqdwLWtk5rsocUrVnFYUu6K3GEF6vxlKE76/QLbP29u+y/1+MLZy tlolETy7gRGUeShMloRFcNgvZtlGDko= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-XNJrutY8OmSaordA2DXI_w-1; Fri, 02 May 2025 06:28:20 -0400 X-MC-Unique: XNJrutY8OmSaordA2DXI_w-1 X-Mimecast-MFC-AGG-ID: XNJrutY8OmSaordA2DXI_w_1746181700 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-3a064c45f03so797463f8f.0 for ; Fri, 02 May 2025 03:28:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746181700; x=1746786500; 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=QSbhw2lx3uIU9bt71Ke9bjoVhiyqLGEvU1SMMBHqrLU=; b=XOtKd3b6ILaDXEbS0lHEa12hKpqZnK8PV8MSPRIBHTl13Z2HcljxuQk0MydxwZv0H6 pusWqsdiBYNiXiQPbFYaI3CBDWdZydU3TXqRfn5qljzfDVuMq8RuA5BiUKROSTOrh8vI Xe/WM1lVsaQImh+O0uDIqKXyI23axKE787zwPpvTk6164nO7K3zyNJky1jS9ErNLlZMl OsoFGhFEC8q0OWOWpORfASYcw1XYIf1gqF89U0dC5Ci7QazOxdlr8elMiiLvqANWKsM7 etKA+IZdTqwQigSDFCvABcvHTGo8iv70fkv0yb15q/OuC8NdejTHHnhlKY5T7eX6uj3F Wq9w== X-Forwarded-Encrypted: i=1; AJvYcCWW0ANNGN/aEvE2y2idn6GN1an6ArkyS5QMwkJylqhJwE7SD7/p4f6LMVsIm+wy5/tR+Uc=@vger.kernel.org X-Gm-Message-State: AOJu0Yz0v0wXmiwkj9aOe+D8ixbclMCW9fA/xi9qSiBq3211w1w5f5pf XGMsNfkBpurD+HmqECntaH2VcfKWEmsP+BhlxMd5OPFXqSs4hA9QfFrieFk8+68OfmC3RS0PjES 41GVrm6xb+yAkYFlwht6ZQLL7Jtf92NL1iEo0blh3EeKfs0SL5g== X-Gm-Gg: ASbGncv3H1gw+iI/X3qdybXAh6wXkI2g+wv7Rnpr5Ie401R0a2hLKtYG/Ty/hRxEG8C tqJ+YL0umI1248sfB13IsqiBWIGl/OvMsqmYLRL4aHhyBjJico/QOUzVxl5ThzGW76cHT8OZEVZ RaHb9KfWDGYNQgm8XfkA51K/2xAnwyicdzGDRR11DY9n8si+BfeQdlrYAuDHNQoLi/7JAYNT+Zx Ro3i7gZsoK2m5/1Pe8B9B6cs0Dh/dYRv6OfX+erpf3d4ztmu6FkuunAxzyYwFnhA2NGMy3RfIca Y/hx3W3Fr/xdgiEzlPg= X-Received: by 2002:a05:6000:1a85:b0:3a0:8524:b480 with SMTP id ffacd0b85a97d-3a09402cacbmr5066378f8f.2.1746181699724; Fri, 02 May 2025 03:28:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWyOVTRRGEVNWXO/iDfooNor6IST3SO4x3a3xxs7csOvOKwxwfMPv7xS3Tnv2MrR9Li9kpkg== X-Received: by 2002:a05:6000:1a85:b0:3a0:8524:b480 with SMTP id ffacd0b85a97d-3a09402cacbmr5066344f8f.2.1746181699348; Fri, 02 May 2025 03:28:19 -0700 (PDT) Received: from ?IPV6:2a0d:3344:246d:aa10::f39? ([2a0d:3344:246d:aa10::f39]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-441b2ad784asm85337125e9.7.2025.05.02.03.28.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 May 2025 03:28:18 -0700 (PDT) Message-ID: <74e11512-934b-446c-94cf-93bf97eff9fb@redhat.com> Date: Fri, 2 May 2025 12:28:17 +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 v3] 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: <20250428-vsock-vmtest-v3-1-181af6163f3e@gmail.com> Content-Language: en-US From: Paolo Abeni In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/30/25 3:06 PM, Stefano Garzarella wrote: > On Mon, Apr 28, 2025 at 04:48:11PM -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: >> >> $ tools/testing/selftests/vsock/vmtest.sh > > I tried and it's working, but I have a lot of these messages in the > output: > dmesg: read kernel buffer failed: Operation not permitted > > I'm on Fedora 41: > > $ uname -r > 6.14.4-200.fc41.x86_64 This sounds like the test tripping on selinux. I think this problem should not be handled by the script itself. [...] > ERROR: trailing whitespace > #174: FILE: tools/testing/selftests/vsock/vmtest.sh:47: > +^Ivm_server_host_client^IRun vsock_test in server mode on the VM and in client mode on the host.^I$ > > WARNING: line length of 104 exceeds 100 columns > #174: FILE: tools/testing/selftests/vsock/vmtest.sh:47: > + vm_server_host_client Run vsock_test in server mode on the VM and in client mode on the host. > > ERROR: trailing whitespace > #175: FILE: tools/testing/selftests/vsock/vmtest.sh:48: > +^Ivm_client_host_server^IRun vsock_test in client mode on the VM and in server mode on the host.^I$ > > WARNING: line length of 104 exceeds 100 columns > #175: FILE: tools/testing/selftests/vsock/vmtest.sh:48: > + vm_client_host_server Run vsock_test in client mode on the VM and in server mode on the host. > > ERROR: trailing whitespace > #176: FILE: tools/testing/selftests/vsock/vmtest.sh:49: > +^Ivm_loopback^I^IRun vsock_test using the loopback transport in the VM.^I$ > > ERROR: trailing whitespace > #443: FILE: tools/testing/selftests/vsock/vmtest.sh:316: > +IFS="^I$ > > total: 4 errors, 4 warnings, 0 checks, 382 lines checked > I almost forgot: I think it's better to avoid the special formatting and replies on review for proper updating of the script's help. Thanks, Paolo