diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2012-12-01 09:46:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 14:34:37 -0500 |
commit | b3bf60c7b4665d40b8eae2217b54c4745f49f470 (patch) | |
tree | 8d07f29611a65b6b4b06ab95365aadcd77fdf399 /include/linux/hyperv.h | |
parent | eafa7072e7cd806dff42b705284ca26189e527a4 (diff) |
Drivers: hv: Manage signaling state on a per-connection basis
The current code has a global handle for supporting signaling of the host
from guest. Make this a per-channel attribute as on some versions of the
host we can signal on per-channel handle.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r-- | include/linux/hyperv.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index e72502689cdc..c6e2c44a1be9 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h | |||
@@ -897,6 +897,27 @@ struct vmbus_close_msg { | |||
897 | struct vmbus_channel_close_channel msg; | 897 | struct vmbus_channel_close_channel msg; |
898 | }; | 898 | }; |
899 | 899 | ||
900 | /* Define connection identifier type. */ | ||
901 | union hv_connection_id { | ||
902 | u32 asu32; | ||
903 | struct { | ||
904 | u32 id:24; | ||
905 | u32 reserved:8; | ||
906 | } u; | ||
907 | }; | ||
908 | |||
909 | /* Definition of the hv_signal_event hypercall input structure. */ | ||
910 | struct hv_input_signal_event { | ||
911 | union hv_connection_id connectionid; | ||
912 | u16 flag_number; | ||
913 | u16 rsvdz; | ||
914 | }; | ||
915 | |||
916 | struct hv_input_signal_event_buffer { | ||
917 | u64 align8; | ||
918 | struct hv_input_signal_event event; | ||
919 | }; | ||
920 | |||
900 | struct vmbus_channel { | 921 | struct vmbus_channel { |
901 | struct list_head listentry; | 922 | struct list_head listentry; |
902 | 923 | ||
@@ -946,6 +967,10 @@ struct vmbus_channel { | |||
946 | */ | 967 | */ |
947 | 968 | ||
948 | bool batched_reading; | 969 | bool batched_reading; |
970 | |||
971 | bool is_dedicated_interrupt; | ||
972 | struct hv_input_signal_event_buffer sig_buf; | ||
973 | struct hv_input_signal_event *sig_event; | ||
949 | }; | 974 | }; |
950 | 975 | ||
951 | static inline void set_channel_read_state(struct vmbus_channel *c, bool state) | 976 | static inline void set_channel_read_state(struct vmbus_channel *c, bool state) |