aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2012-12-01 09:46:48 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 14:39:14 -0500
commitabbf3b2aa090b4a6bf22c935924b6467990266da (patch)
tree4a4f3a84ac7b05b1608c2ee9552c5899de6981bd /include
parent917ea427c78670958488f7f304e4629c325969a4 (diff)
Drivers: hv: Add state to manage incoming channel interrupt load
Add state to bind a channel to a specific VCPU. This will help us better distribute incoming interrupt load. 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')
-rw-r--r--include/linux/hyperv.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index c6e2c44a1be9..8c3cb1fc34d4 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -732,8 +732,15 @@ struct vmbus_channel_open_channel {
732 /* GPADL for the channel's ring buffer. */ 732 /* GPADL for the channel's ring buffer. */
733 u32 ringbuffer_gpadlhandle; 733 u32 ringbuffer_gpadlhandle;
734 734
735 /* GPADL for the channel's server context save area. */ 735 /*
736 u32 server_contextarea_gpadlhandle; 736 * Starting with win8, this field will be used to specify
737 * the target virtual processor on which to deliver the interrupt for
738 * the host to guest communication.
739 * Prior to win8, incoming channel interrupts would only
740 * be delivered on cpu 0. Setting this value to 0 would
741 * preserve the earlier behavior.
742 */
743 u32 target_vp;
737 744
738 /* 745 /*
739 * The upstream ring buffer begins at offset zero in the memory 746 * The upstream ring buffer begins at offset zero in the memory
@@ -971,6 +978,16 @@ struct vmbus_channel {
971 bool is_dedicated_interrupt; 978 bool is_dedicated_interrupt;
972 struct hv_input_signal_event_buffer sig_buf; 979 struct hv_input_signal_event_buffer sig_buf;
973 struct hv_input_signal_event *sig_event; 980 struct hv_input_signal_event *sig_event;
981
982 /*
983 * Starting with win8, this field will be used to specify
984 * the target virtual processor on which to deliver the interrupt for
985 * the host to guest communication.
986 * Prior to win8, incoming channel interrupts would only
987 * be delivered on cpu 0. Setting this value to 0 would
988 * preserve the earlier behavior.
989 */
990 u32 target_vp;
974}; 991};
975 992
976static inline void set_channel_read_state(struct vmbus_channel *c, bool state) 993static inline void set_channel_read_state(struct vmbus_channel *c, bool state)