From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Ur4xqSYL; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id D9E585A004E for ; Fri, 23 Aug 2024 14:32:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724416359; 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=dy6ERScXn15nVhnN5aoelUTIcZ1ZbjK4Ru4otAVgZ4Q=; b=Ur4xqSYL+m2IbrSSMg/5cO56l5wvHS27OeHSwXPvRU3vCW0U9uXtDmFLSRI9eW6i8lNhsk WvycqFUvGNl5vArHgyeU2Y4qV7GtThiBWKiM1cbXuyGdttVahfGBJ7azT6rl4ttKyGWIwF RKgsXj8DfJphO5UmgTX12t5tYebG1F0= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-137-tK6MhLp-PFSMYn12H267wg-1; Fri, 23 Aug 2024 08:32:38 -0400 X-MC-Unique: tK6MhLp-PFSMYn12H267wg-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-37193ed09b2so1640714f8f.1 for ; Fri, 23 Aug 2024 05:32:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724416355; x=1725021155; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dy6ERScXn15nVhnN5aoelUTIcZ1ZbjK4Ru4otAVgZ4Q=; b=k5oeXmRWtvMKJuzT15/sv0WSXiXpofcf16v4FAM/32r3PaU2izqJKvOOatrVpJKWxV 3PBkKk6d8C4RHodXLE0zTZxWGmwUDHsEM5N6vS0PYlFF6qikP+oBQYzZVQ4AVIxtjpXz 4xii7R7g8vtUdEkVPPVEf41KNxZ89YSBI/HUV51Lr17c+/VAKKc+Qd180RpZU1NoTjEE HyRduiWXdQffNT6w13NsprjzLlSCtDq1U1q4JaygYnF1qsrPorq8I30omiVlH3hFZs8f kq5IAhoLfAGucRqUyAAjtMRGF98FCJh6GWvSUGtuPqchS3HGupVBCQEAo9Lxp/P4vgDE AYIQ== X-Gm-Message-State: AOJu0YyR847xxgKebwkkeXlm2l/hNtTg+mmEjnjhPJbKP+IXiWYdJWUy OJZlIzQXFBJYs6XHgG482h0+G7ZXDdWka7oRUhyXaWGtP59QxktzGnkCkkHeXOiHWprIRzFNvFo unRNxVyp8pXp0P0sNH8aLtt9QcTuAylbBu62eTH3huxKjgbsm4vBemWpIJs7RmU02MNnOfB9S4p wMzp9JIWThqtxvcJSk0JglNSxruIapaZtE X-Received: by 2002:a5d:6dcc:0:b0:360:866f:5083 with SMTP id ffacd0b85a97d-373110070acmr1121329f8f.32.1724416355589; Fri, 23 Aug 2024 05:32:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRaEfod8v/rSaSZ9HGkvto+pImvcLO+IbanND8ddUMPvR8bqifn3qvOKqtSfCxgd/z9Tg26g== X-Received: by 2002:a5d:6dcc:0:b0:360:866f:5083 with SMTP id ffacd0b85a97d-373110070acmr1121317f8f.32.1724416355096; Fri, 23 Aug 2024 05:32:35 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3730813c3d2sm4063022f8f.26.2024.08.23.05.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 05:32:34 -0700 (PDT) Date: Fri, 23 Aug 2024 14:32:32 +0200 From: Stefano Brivio To: passt-dev@passt.top Subject: Re: [PATCH v3 0/4] Add vhost-user support to passt. (part 3) Message-ID: <20240823143232.048ac263@elisabeth> In-Reply-To: <20240822185300.46dd34f1@elisabeth> References: <20240815155024.827956-1-lvivier@redhat.com> <20240821004114.008ddc08@elisabeth> <20240822185300.46dd34f1@elisabeth> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: 3OLAZLKAHRPHBDC2VEQMBGSQILSAEMDL X-Message-ID-Hash: 3OLAZLKAHRPHBDC2VEQMBGSQILSAEMDL X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Laurent Vivier X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Thu, 22 Aug 2024 18:53:00 +0200 Stefano Brivio wrote: > On Wed, 21 Aug 2024 00:41:14 +0200 > Stefano Brivio wrote: > > > On Thu, 15 Aug 2024 17:50:19 +0200 > > Laurent Vivier wrote: > > > > > This series of patches adds vhost-user support to passt > > > and then allows passt to connect to QEMU network backend using > > > virtqueue rather than a socket. > > > > > > With QEMU, rather than using to connect: > > > > > > -netdev stream,id=s,server=off,addr.type=unix,addr.path=/tmp/passt_1.socket > > > > > > we will use: > > > > > > -chardev socket,id=chr0,path=/tmp/passt_1.socket > > > -netdev vhost-user,id=netdev0,chardev=chr0 > > > -device virtio-net,netdev=netdev0 > > > -object memory-backend-memfd,id=memfd0,share=on,size=$RAMSIZE > > > -numa node,memdev=memfd0 > > > > > > The memory backend is needed to share data between passt and QEMU. > > > > > > Performance comparison between "-netdev stream" and "-netdev vhost-user": > > > > By the way, I attached a quick patch adding vhost-user-based tests to > > the usual throughput and latency tests. > > > > UDP doesn't work (I didn't look into that at all), TCP does. > > Complete/fixed patch attached. The only part of UDP that's not working > is actually over IPv6 -- it works over IPv4. ...guest to host, that is. The other direction works. -- Stefano