From nobody Tue Sep 2 09:47:05 2025 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 CEE4B230BEC for ; Thu, 7 Aug 2025 11:58:09 +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=1754567891; cv=none; b=OP9Clc/5LM/Q/MC5eRgW2/8tHhNlh0T50c8Acc0PxsU2/ouypG/+BHLVYv0uVX9+N5U3w2MBNyNmXh8YrsmsQTgYZ88iCg2WLossXkMsYoo+CumRNPLzMESCPkri/owx96U39lwF0tbQatPFK+7CrSvvn84NIGk76xJiOwyw2/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754567891; c=relaxed/simple; bh=Mq/AfDbkzeahYi6sN3Rcg3Dlb4puLIjsK36j9gN6tVE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iik9VrOiQ/1xyqdvdSj8O9+A9NajOpRy9wcZW7vxrwPLKDBysQArp6I7OxpnWGkfmIk3h9VyTOqEo33fQY5mXLGy5+jC2nZ4WET67invmvZ2C9vk6wznJDnC54k0/IpK1PD6PFCvtGv+FT/+bDN2Oie1yhWDRoEaqevzclyDehY= 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=EOfYhPj9; 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="EOfYhPj9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1754567888; 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=ahzdshQiL3Xzni/Jqm6kcPlFcj6smcBvlHHrtbsnZWI=; b=EOfYhPj9RVQopygMmMtrPqZ1XyaGhdNwm3WQVy2zoLjYmjjdvtuVjZHS1EvY8a0L9jiZgV NF2ZyEQLW/Pp/W3Lqpskh1ibKgLuo4AkfI9pkpCbLw3iEWCdW0nh3FpoGVr5P/RuqkoSAH iQ8VzcdLJYQodNAHWvi129xMMwcNuHk= Received: from mx-prod-mc-05.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-449-Oag-_5MMOTyREqWSAkLCtA-1; Thu, 07 Aug 2025 07:58:05 -0400 X-MC-Unique: Oag-_5MMOTyREqWSAkLCtA-1 X-Mimecast-MFC-AGG-ID: Oag-_5MMOTyREqWSAkLCtA_1754567884 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2C68E1956095; Thu, 7 Aug 2025 11:58:04 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.45.225.48]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 343C230001A5; Thu, 7 Aug 2025 11:57:58 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: "Michael S . Tsirkin " Cc: Cindy Lu , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Yongji Xie , Stefano Garzarella , virtualization@lists.linux.dev, Laurent Vivier , linux-kernel@vger.kernel.org, Xuan Zhuo , jasowang@redhat.com, Maxime Coquelin Subject: [RFC v2 1/7] vduse: add v1 API definition Date: Thu, 7 Aug 2025 13:57:46 +0200 Message-ID: <20250807115752.1663383-2-eperezma@redhat.com> In-Reply-To: <20250807115752.1663383-1-eperezma@redhat.com> References: <20250807115752.1663383-1-eperezma@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 This allows the kernel to detect whether the userspace VDUSE device supports the VQ group and ASID features. VDUSE devices that don't set the V1 API will not receive the new messages, and vdpa device will be created with only one vq group and asid. The next patches implement the new feature incrementally, only enabling the VDUSE device to set the V1 API version by the end of the series. Signed-off-by: Eugenio P=C3=A9rez --- include/uapi/linux/vduse.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/vduse.h b/include/uapi/linux/vduse.h index 68a627d04afa..9a56d0416bfe 100644 --- a/include/uapi/linux/vduse.h +++ b/include/uapi/linux/vduse.h @@ -10,6 +10,10 @@ =20 #define VDUSE_API_VERSION 0 =20 +/* VQ groups and ASID support */ + +#define VDUSE_API_VERSION_1 1 + /* * Get the version of VDUSE API that kernel supported (VDUSE_API_VERSION). * This is used for future extension. --=20 2.50.1