Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354991
b: refs/heads/master
c: abbf3b2
h: refs/heads/master
i:
  354989: 2ceb223
  354987: 4d98c78
  354983: bf98116
  354975: 7095a53
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jan 17, 2013
1 parent b92b538 commit eb23bc0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 917ea427c78670958488f7f304e4629c325969a4
refs/heads/master: abbf3b2aa090b4a6bf22c935924b6467990266da
2 changes: 1 addition & 1 deletion trunk/drivers/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,
open_msg->ringbuffer_gpadlhandle = newchannel->ringbuffer_gpadlhandle;
open_msg->downstream_ringbuffer_pageoffset = send_ringbuffer_size >>
PAGE_SHIFT;
open_msg->server_contextarea_gpadlhandle = 0;
open_msg->target_vp = newchannel->target_vp;

if (userdatalen > MAX_USER_DEFINED_BYTES) {
err = -EINVAL;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/hv/channel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ static void vmbus_onoffer(struct vmbus_channel_message_header *hdr)
offer->connection_id;
}

newchannel->target_vp = 0;

memcpy(&newchannel->offermsg, offer,
sizeof(struct vmbus_channel_offer_channel));
newchannel->monitor_grp = (u8)offer->monitorid / 32;
Expand Down
21 changes: 19 additions & 2 deletions trunk/include/linux/hyperv.h
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,15 @@ struct vmbus_channel_open_channel {
/* GPADL for the channel's ring buffer. */
u32 ringbuffer_gpadlhandle;

/* GPADL for the channel's server context save area. */
u32 server_contextarea_gpadlhandle;
/*
* Starting with win8, this field will be used to specify
* the target virtual processor on which to deliver the interrupt for
* the host to guest communication.
* Prior to win8, incoming channel interrupts would only
* be delivered on cpu 0. Setting this value to 0 would
* preserve the earlier behavior.
*/
u32 target_vp;

/*
* The upstream ring buffer begins at offset zero in the memory
Expand Down Expand Up @@ -971,6 +978,16 @@ struct vmbus_channel {
bool is_dedicated_interrupt;
struct hv_input_signal_event_buffer sig_buf;
struct hv_input_signal_event *sig_event;

/*
* Starting with win8, this field will be used to specify
* the target virtual processor on which to deliver the interrupt for
* the host to guest communication.
* Prior to win8, incoming channel interrupts would only
* be delivered on cpu 0. Setting this value to 0 would
* preserve the earlier behavior.
*/
u32 target_vp;
};

static inline void set_channel_read_state(struct vmbus_channel *c, bool state)
Expand Down

0 comments on commit eb23bc0

Please sign in to comment.