@@ -81,6 +81,8 @@ DEFINE_MUTEX(rtas_ibm_get_vpd_lock);
8181DEFINE_MUTEX (rtas_ibm_get_indices_lock );
8282DEFINE_MUTEX (rtas_ibm_set_dynamic_indicator_lock );
8383DEFINE_MUTEX (rtas_ibm_get_dynamic_sensor_state_lock );
84+ DEFINE_MUTEX (rtas_ibm_receive_hvpipe_msg_lock );
85+ DEFINE_MUTEX (rtas_ibm_send_hvpipe_msg_lock );
8486
8587/* RTAS use home made raw locking instead of spin_lock_irqsave
8688 * because those can be called from within really nasty contexts
@@ -1012,6 +1014,8 @@ static struct rtas_filter rtas_filters[] __ro_after_init = {
10121014 { "ibm,update-properties" , -1 , 0 , -1 , -1 , -1 , 4096 },
10131015#endif
10141016 { "ibm,physical-attestation" , -1 , 0 , 1 , -1 , -1 },
1017+ { "ibm,receive-hvpipe-msg" , -1 , 0 , 1 , -1 , -1 },
1018+ { "ibm,send-hvpipe-msg" , -1 , 1 , -1 , -1 , -1 },
10151019};
10161020
10171021static bool in_rmo_buf (u32 base , u32 end )
@@ -1134,6 +1138,12 @@ static struct mutex *find_rtas_mutex(int token)
11341138 if (token == rtas_token ("ibm,physical-attestation" ))
11351139 return & rtas_ibm_physical_attestation_lock ;
11361140
1141+ if (token == rtas_token ("ibm,receive-hvpipe-msg" ))
1142+ return & rtas_ibm_receive_hvpipe_msg_lock ;
1143+
1144+ if (token == rtas_token ("ibm,send-hvpipe-msg" ))
1145+ return & rtas_ibm_send_hvpipe_msg_lock ;
1146+
11371147 return NULL ;
11381148}
11391149
0 commit comments