Skip to contentSkip to conversation

shared rings. rsp_cons, rsp_events, req_prod, req_events docs, charts, timelines?

DISCUSSION Konrad Rzeszutek Wilk 2 participants 3 messages May 16, 2011

lore
Share & tools
lore
#0 lore raw

The current ring implementation uses these values and then macros such as RING_HAS_UNCONSUMED_REQUESTS, FINAL_RING_CHECK, etc to determine whether to continue or how to control the flow. Looking way back in the history at c/s 8153 it used to have a 'server_is_sleeping' value to determine whether to kick the back (now called 'req_event'), and the 'rsp_event' (unchanged) to kick the frontend.

Anyhow, are there any diagrams or design docs documenting how these simple four shared values help to control the pipeline and interrupt generation? Or how they evolved over time to become what they are right now?

#1 lore raw
Quoted 10 lines · Konrad Rzeszutek Wilk

The current ring implementation uses these values and then macros such as RING_HAS_UNCONSUMED_REQUESTS, FINAL_RING_CHECK, etc to determine whether to continue or how to control the flow. Looking way back in the history at c/s 8153 it used to have a 'server_is_sleeping' value to determine whether to kick the back (now called 'req_event'), and the 'rsp_event' (unchanged) to kick the frontend.

Anyhow, are there any diagrams or design docs documenting how these simple four shared values help to control the pipeline and interrupt generation? Or how they evolved over time to become what they are right now?

Iirc, I've known these headers since late xen 2.x versions and never saw it done differently (i.e. req/rsp_event, and symmetrically).

Never saw dedicated documentation either, but found the header comments and sources sufficient.

Do you just want documentation to point at, or is there something not clear about them?

Daniel

#2 lore raw
Quoted 12 lines · Daniel Stodden
Quoted 10 lines · Konrad Rzeszutek Wilk

The current ring implementation uses these values and then macros such as RING_HAS_UNCONSUMED_REQUESTS, FINAL_RING_CHECK, etc to determine whether to continue or how to control the flow. Looking way back in the history at c/s 8153 it used to have a 'server_is_sleeping' value to determine whether to kick the back (now called 'req_event'), and the 'rsp_event' (unchanged) to kick the frontend.

Anyhow, are there any diagrams or design docs documenting how these simple four shared values help to control the pipeline and interrupt generation? Or how they evolved over time to become what they are right now?

Quoted 8 lines

Iirc, I've known these headers since late xen 2.x versions and never saw it done differently (i.e. req/rsp_event, and symmetrically).

Never saw dedicated documentation either, but found the header comments and sources sufficient.

Do you just want documentation to point at, or is there something not clear about them?

I was hoping to be able to double-check what I groked from the code. Figured an example of the flow between frontend and backend over some time with different scenarios would exist somwhere.