Commit 2416603e authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Drivers: hv: Update the ring buffer structure to match win8 functionality

Update the ringbuffer structure to support win8 functionality.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 610071c3
...@@ -325,14 +325,28 @@ struct hv_ring_buffer { ...@@ -325,14 +325,28 @@ struct hv_ring_buffer {
u32 interrupt_mask; u32 interrupt_mask;
/* Pad it to PAGE_SIZE so that data starts on page boundary */ /*
u8 reserved[4084]; * Win8 uses some of the reserved bits to implement
* interrupt driven flow management. On the send side
/* NOTE: * we can request that the receiver interrupt the sender
* The interrupt_mask field is used only for channels but since our * when the ring transitions from being full to being able
* vmbus connection also uses this data structure and its data starts * to handle a message of size "pending_send_sz".
* here, we commented out this field. *
* Add necessary state for this enhancement.
*/ */
u32 pending_send_sz;
u32 reserved1[12];
union {
struct {
u32 feat_pending_send_sz:1;
};
u32 value;
} feature_bits;
/* Pad it to PAGE_SIZE so that data starts on page boundary */
u8 reserved2[4028];
/* /*
* Ring data starts here + RingDataStartOffset * Ring data starts here + RingDataStartOffset
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment