diff options
author | Eli Cohen <elic@nvidia.com> | 2021-05-31 19:04:04 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-07-03 04:50:56 -0400 |
commit | e13cd45d352dedac53529fb49e7d7e293f74fb90 (patch) | |
tree | fbb2d24124322b2151e997f73a0d3b40a0fb7101 /include | |
parent | 71ab6a7cfbae27f86a3901daab10bfe13b3a1e3a (diff) | |
download | linux-stable-e13cd45d352dedac53529fb49e7d7e293f74fb90.tar.gz linux-stable-e13cd45d352dedac53529fb49e7d7e293f74fb90.tar.bz2 linux-stable-e13cd45d352dedac53529fb49e7d7e293f74fb90.zip |
vdpa/mlx5: Support creating resources with uid == 0
Currently all resources must be created with uid != 0 which is essential
when userspace processes are allocating virtquueue resources. Since this
is a kernel implementation, it is perfectly legal to open resources with
uid == 0.
In case firmware supports, avoid allocating user context.
Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210531160404.31368-1-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx5/mlx5_ifc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index b4546e29e561..b0009aa3647f 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -1512,7 +1512,9 @@ struct mlx5_ifc_cmd_hca_cap_bits { u8 uar_4k[0x1]; u8 reserved_at_241[0x9]; u8 uar_sz[0x6]; - u8 reserved_at_250[0x8]; + u8 reserved_at_248[0x2]; + u8 umem_uid_0[0x1]; + u8 reserved_at_250[0x5]; u8 log_pg_sz[0x8]; u8 bf[0x1]; |