From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BBA5748935 for ; Tue, 14 Oct 2025 15:26:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0CA040650; Tue, 14 Oct 2025 15:26:49 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 724EA406B6 for ; Tue, 14 Oct 2025 15:26:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1760448408; 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=YGSxrAI5rhRL63uxSK0s7hU0r3GRnGXhBm7zgxD4owY=; b=WAUVqoXyOLUJnSunsmZyLfiiOdeHEabhM0T7f3pzuj1EU8uFREoLbEivJbXWZQn4Y6uKOC B3onN2+NJp7ahUvW0A5i63yHJSxfIRmM160VZ3/GOjHkXdPzxpXxxqgg+J/K41+YklQhKi Op6TJ69rcqyJL+GGInt8FNtWneIkKbU= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-222-dwEDe6JfNm6VmQw86QXJig-1; Tue, 14 Oct 2025 09:26:45 -0400 X-MC-Unique: dwEDe6JfNm6VmQw86QXJig-1 X-Mimecast-MFC-AGG-ID: dwEDe6JfNm6VmQw86QXJig_1760448404 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-58175ebd87bso3133459e87.0 for ; Tue, 14 Oct 2025 06:26:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760448403; x=1761053203; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YGSxrAI5rhRL63uxSK0s7hU0r3GRnGXhBm7zgxD4owY=; b=C3K7ndJvkvrqaP9IPtT0FP4eNH8m4RHEmaB999ik9nmKMg9HnfWzx8gt+COnqWs3Sk aCjt8huO90C8/bkZnllNd59d1b3rwL/G24U2RgZzRYcD1Rekn37jiZsYskgyywolCUFP InrMHt7DHeBQEaYHrcmuL6JL2ZjQA2XkdPvVDI9ri/+s/lURTIm/2ustNEZXmMWS+Wfc pkgOjDZWUtk9T43vHDpWKsmBd5opqFYagxuTEzS2kJK9+bQdJqzddNFZP/QZvd2rMtSb 858mDoXKbRhCdEwwGt5adKMD0afJKxTp/fuAUaVuIdnjooh903JmCNXfo+QgZNwMRZRz JT+w== X-Forwarded-Encrypted: i=1; AJvYcCX7fAneS6fYzvK4PDpMIlhFGmG//JI9Pi9qtgLV4E+cEDCRtKAWZTLfUERg+n7XaWG9UoUlwm8=@dpdk.org X-Gm-Message-State: AOJu0YwMV1pAnG/6/LF5ofjaBqwhWdnVkwZ81D5h8iZRNG8Dw5BA7Ozi TBH/MLXzmqXegDMm2e3lF35v8It1e+G03xeXhUa/FFVPzIbgtL/gJRZlo+0PSu0rXZw4MEaj0I0 uZExoK5eRX2hFfDjdQ6pW0P+z5+cH2ae8A7z4BPquVaWYwgWlQPYKEYfhGoxrfHZOIPAvVythOV hSmzhArwQYVDXEK/8W7wR0rEFLMNQOw6Z6UA== X-Gm-Gg: ASbGncv3BKizWy1XQNqvsoHaPjRX82Od2Ht/il6lDPytsUuSNQFzszIlcVwEJx5PKxg J8iir1dbizWhILhdzOckWGFmX11u6ck6X9qYZILcH7j0N7S7byN3wk+76G6jC3aNLX6oZdBANVl 32Mo7qexihCbR94IX2odM= X-Received: by 2002:a05:6512:104b:b0:590:651b:10e1 with SMTP id 2adb3069b0e04-5906d9e8a49mr7269529e87.44.1760448403199; Tue, 14 Oct 2025 06:26:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEuM2SuiD+yN6ROmjE0K4cO4SlcCxN7yQP0l80QVJckTX3IQylgw0ptY6wMgWZKxbn06JK2O6nLqdpK3H8tiY= X-Received: by 2002:a05:6512:104b:b0:590:651b:10e1 with SMTP id 2adb3069b0e04-5906d9e8a49mr7269505e87.44.1760448402542; Tue, 14 Oct 2025 06:26:42 -0700 (PDT) MIME-Version: 1.0 References: <20251007144754.1690606-1-maxime.coquelin@redhat.com> In-Reply-To: <20251007144754.1690606-1-maxime.coquelin@redhat.com> From: Maxime Coquelin Date: Tue, 14 Oct 2025 15:26:31 +0200 X-Gm-Features: AS18NWAlTHTX7Stl3CbpT8j2PVrhpydu2gOY98z_NwubqoAs_eeMZTMD2eyjZUA Message-ID: Subject: Re: [PATCH v2] net/virtio-user: fix used ring address calculation To: Maxime Coquelin Cc: dev@dpdk.org, amorenoz@redhat.com, david.marchand@redhat.com, chenbox@nvidia.com, stable@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: mSe8Odq3myc3pqlvQ870g_ylvWgMRE_8e8M1ni4UhHo_1760448404 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Tue, Oct 7, 2025 at 4:48=E2=80=AFPM Maxime Coquelin wrote: > > This patch fixes the used ring address calculation, to > avoid Vhost-vDPA backends (such as VDUSE) to fail while > trying to translate it. > > Fixes: 666ef294ddf7 ("net/virtio-user: share descriptor IOVA to backend") > Cc: stable@dpdk.org > > Reported-by: Adrian Moreno > Signed-off-by: Maxime Coquelin > --- > > Changes in v2: > - Refactor addresses calculation (David) > > --- > > > .../net/virtio/virtio_user/virtio_user_dev.c | 30 ++++++++----------- > 1 file changed, 13 insertions(+), 17 deletions(-) > Adding David's Ack as the only change I did was adding his suggestion (and I checked with him): Acked-by: David Marchand Thanks, Maxime