diff mbox series

[V3,vfio,01/14] net/mlx5: Introduce ifc bits for pre_copy

Message ID 20221205144838.245287-2-yishaih@nvidia.com (mailing list archive)
State New, archived
Headers show
Series Add migration PRE_COPY support for mlx5 driver | expand

Commit Message

Yishai Hadas Dec. 5, 2022, 2:48 p.m. UTC
From: Shay Drory <shayd@nvidia.com>

Introduce ifc related stuff to enable PRE_COPY of VF during migration.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
---
 include/linux/mlx5/mlx5_ifc.h | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Comments

Alex Williamson Dec. 5, 2022, 3:22 p.m. UTC | #1
On Mon, 5 Dec 2022 16:48:25 +0200
Yishai Hadas <yishaih@nvidia.com> wrote:

> From: Shay Drory <shayd@nvidia.com>
> 
> Introduce ifc related stuff to enable PRE_COPY of VF during migration.
> 
> Signed-off-by: Shay Drory <shayd@nvidia.com>
> Signed-off-by: Yishai Hadas <yishaih@nvidia.com>

This will need an ack from Leon or Saeed to go through the vfio tree.
Thanks,

Alex

> ---
>  include/linux/mlx5/mlx5_ifc.h | 14 +++++++++++---
>  1 file changed, 11 insertions(+), 3 deletions(-)
> 
> diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
> index 5a4e914e2a6f..230a96626a5f 100644
> --- a/include/linux/mlx5/mlx5_ifc.h
> +++ b/include/linux/mlx5/mlx5_ifc.h
> @@ -1882,7 +1882,12 @@ struct mlx5_ifc_cmd_hca_cap_2_bits {
>  	u8	   max_reformat_remove_size[0x8];
>  	u8	   max_reformat_remove_offset[0x8];
>  
> -	u8	   reserved_at_c0[0xe0];
> +	u8	   reserved_at_c0[0x8];
> +	u8	   migration_multi_load[0x1];
> +	u8	   migration_tracking_state[0x1];
> +	u8	   reserved_at_ca[0x16];
> +
> +	u8	   reserved_at_e0[0xc0];
>  
>  	u8	   reserved_at_1a0[0xb];
>  	u8	   log_min_mkey_entity_size[0x5];
> @@ -11918,7 +11923,8 @@ struct mlx5_ifc_query_vhca_migration_state_in_bits {
>  	u8         reserved_at_20[0x10];
>  	u8         op_mod[0x10];
>  
> -	u8         reserved_at_40[0x10];
> +	u8         incremental[0x1];
> +	u8         reserved_at_41[0xf];
>  	u8         vhca_id[0x10];
>  
>  	u8         reserved_at_60[0x20];
> @@ -11944,7 +11950,9 @@ struct mlx5_ifc_save_vhca_state_in_bits {
>  	u8         reserved_at_20[0x10];
>  	u8         op_mod[0x10];
>  
> -	u8         reserved_at_40[0x10];
> +	u8         incremental[0x1];
> +	u8         set_track[0x1];
> +	u8         reserved_at_42[0xe];
>  	u8         vhca_id[0x10];
>  
>  	u8         reserved_at_60[0x20];
Leon Romanovsky Dec. 5, 2022, 4:29 p.m. UTC | #2
On Mon, Dec 05, 2022 at 04:48:25PM +0200, Yishai Hadas wrote:
> From: Shay Drory <shayd@nvidia.com>
> 
> Introduce ifc related stuff to enable PRE_COPY of VF during migration.
> 
> Signed-off-by: Shay Drory <shayd@nvidia.com>
> Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
> ---
>  include/linux/mlx5/mlx5_ifc.h | 14 +++++++++++---
>  1 file changed, 11 insertions(+), 3 deletions(-)
> 

Please take it through vfio tree.

Thanks,
Acked-by: Leon Romanovsky <leonro@nvidia.com>
diff mbox series

Patch

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 5a4e914e2a6f..230a96626a5f 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -1882,7 +1882,12 @@  struct mlx5_ifc_cmd_hca_cap_2_bits {
 	u8	   max_reformat_remove_size[0x8];
 	u8	   max_reformat_remove_offset[0x8];
 
-	u8	   reserved_at_c0[0xe0];
+	u8	   reserved_at_c0[0x8];
+	u8	   migration_multi_load[0x1];
+	u8	   migration_tracking_state[0x1];
+	u8	   reserved_at_ca[0x16];
+
+	u8	   reserved_at_e0[0xc0];
 
 	u8	   reserved_at_1a0[0xb];
 	u8	   log_min_mkey_entity_size[0x5];
@@ -11918,7 +11923,8 @@  struct mlx5_ifc_query_vhca_migration_state_in_bits {
 	u8         reserved_at_20[0x10];
 	u8         op_mod[0x10];
 
-	u8         reserved_at_40[0x10];
+	u8         incremental[0x1];
+	u8         reserved_at_41[0xf];
 	u8         vhca_id[0x10];
 
 	u8         reserved_at_60[0x20];
@@ -11944,7 +11950,9 @@  struct mlx5_ifc_save_vhca_state_in_bits {
 	u8         reserved_at_20[0x10];
 	u8         op_mod[0x10];
 
-	u8         reserved_at_40[0x10];
+	u8         incremental[0x1];
+	u8         set_track[0x1];
+	u8         reserved_at_42[0xe];
 	u8         vhca_id[0x10];
 
 	u8         reserved_at_60[0x20];