Drivers: hv: vmbus: Drivers: hv: vmbus: Introduce CHANNELMSG_MODIFYCHANNEL_RESPONSE
Introduce the CHANNELMSG_MODIFYCHANNEL_RESPONSE message type, and code to receive and process such a message. Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/20210416143449.16185-3-parri.andrea@gmail.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
This commit is contained in:
committed by
Wei Liu
parent
1df53d212c
commit
870ced0548
@@ -477,6 +477,7 @@ enum vmbus_channel_message_type {
|
||||
CHANNELMSG_TL_CONNECT_REQUEST = 21,
|
||||
CHANNELMSG_MODIFYCHANNEL = 22,
|
||||
CHANNELMSG_TL_CONNECT_RESULT = 23,
|
||||
CHANNELMSG_MODIFYCHANNEL_RESPONSE = 24,
|
||||
CHANNELMSG_COUNT
|
||||
};
|
||||
|
||||
@@ -590,6 +591,13 @@ struct vmbus_channel_open_result {
|
||||
u32 status;
|
||||
} __packed;
|
||||
|
||||
/* Modify Channel Result parameters */
|
||||
struct vmbus_channel_modifychannel_response {
|
||||
struct vmbus_channel_message_header header;
|
||||
u32 child_relid;
|
||||
u32 status;
|
||||
} __packed;
|
||||
|
||||
/* Close channel parameters; */
|
||||
struct vmbus_channel_close_channel {
|
||||
struct vmbus_channel_message_header header;
|
||||
@@ -722,6 +730,7 @@ struct vmbus_channel_msginfo {
|
||||
struct vmbus_channel_gpadl_torndown gpadl_torndown;
|
||||
struct vmbus_channel_gpadl_created gpadl_created;
|
||||
struct vmbus_channel_version_response version_response;
|
||||
struct vmbus_channel_modifychannel_response modify_response;
|
||||
} response;
|
||||
|
||||
u32 msgsize;
|
||||
@@ -1596,7 +1605,7 @@ extern __u32 vmbus_proto_version;
|
||||
|
||||
int vmbus_send_tl_connect_request(const guid_t *shv_guest_servie_id,
|
||||
const guid_t *shv_host_servie_id);
|
||||
int vmbus_send_modifychannel(u32 child_relid, u32 target_vp);
|
||||
int vmbus_send_modifychannel(struct vmbus_channel *channel, u32 target_vp);
|
||||
void vmbus_set_event(struct vmbus_channel *channel);
|
||||
|
||||
/* Get the start of the ring buffer. */
|
||||
|
||||
Reference in New Issue
Block a user