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 CBBC92E0935 for ; Tue, 7 Oct 2025 13:06:41 +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=1759842403; cv=none; b=u4CuM3UDRn4VLDhvDlb0qeBOr+9fe0KJjedtoAwcpnsszEvqLjM+nr6MZUpW7jW86/HYAQZOh9VZ3HXoJa9xhncEMlnMN9kYOdfrD1b6thGWD2QV3JIqTUAxn8mhFzbeBJQ7ZUXFzY4a9+2mj5vSewtPq64IL4BEOY/WXBcggH8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759842403; c=relaxed/simple; bh=jH8USJFHz+TatYvQZyvEvjcRufE0ISgWbue5iU4IKbU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tKa6XTELhTPqLb54whhANJAwDR3XKS9TUaNlACjrsG4o56JwPVF/QGlZ4OJM2InepeZCysmO/9yrGr50FWLYk0Zv1XlzHIxe0tuMTA8DdtEKm5MwwQsGBx2rj97UAqlq+izfSfR+BJMe80HH8WlEg4gupU0QNn15nhLObYXgeig= 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=B2CGQdy6; 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="B2CGQdy6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1759842400; 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=aT4NoVByCHa+UoA8fJzK7MRZDygxEBVSeNmApVyKU04=; b=B2CGQdy6szIISuFtevP6bAKjlbGYubqUOv9Al731o7hv8yXLogYqs0oesyO9f5syavIsi1 8iwak/JLAhPPbUn7777NYJb2frcCTcncr5XQxM853edY/zaHys1VP9pC2RqtGxdGTzFzNH HCMvIM9RHIyJiAEXgSn63DPE5gJ+woM= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-281-13BoF1p0OoK1U4tSRjAaQA-1; Tue, 07 Oct 2025 09:06:38 -0400 X-MC-Unique: 13BoF1p0OoK1U4tSRjAaQA-1 X-Mimecast-MFC-AGG-ID: 13BoF1p0OoK1U4tSRjAaQA_1759842397 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9FE811956095; Tue, 7 Oct 2025 13:06:36 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.45.225.223]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 2FA321800446; Tue, 7 Oct 2025 13:06:32 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: mst@redhat.com Cc: Yongji Xie , virtualization@lists.linux.dev, linux-kernel@vger.kernel.org, =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Maxime Coquelin , Xuan Zhuo , Dragos Tatulea DE , jasowang@redhat.com Subject: [RFC 2/2] vduse: lift restriction about net devices with CVQ Date: Tue, 7 Oct 2025 15:06:22 +0200 Message-ID: <20251007130622.144762-3-eperezma@redhat.com> In-Reply-To: <20251007130622.144762-1-eperezma@redhat.com> References: <20251007130622.144762-1-eperezma@redhat.com> Precedence: bulk X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Now that the virtio_net driver is able to recover from a stall virtqueue, let's lift the restriction. Signed-off-by: Eugenio Pérez --- drivers/vdpa/vdpa_user/vduse_dev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/vdpa/vdpa_user/vduse_dev.c b/drivers/vdpa/vdpa_user/vduse_dev.c index e7bced0b5542..95d2b898171d 100644 --- a/drivers/vdpa/vdpa_user/vduse_dev.c +++ b/drivers/vdpa/vdpa_user/vduse_dev.c @@ -1726,9 +1726,6 @@ static bool features_is_valid(struct vduse_dev_config *config) if ((config->device_id == VIRTIO_ID_BLOCK) && (config->features & BIT_ULL(VIRTIO_BLK_F_CONFIG_WCE))) return false; - else if ((config->device_id == VIRTIO_ID_NET) && - (config->features & BIT_ULL(VIRTIO_NET_F_CTRL_VQ))) - return false; if ((config->device_id == VIRTIO_ID_NET) && !(config->features & BIT_ULL(VIRTIO_F_VERSION_1))) -- 2.51.0