* doubt: Block IO multiple ring protocol
@ 2007-11-15 7:54 Kaushik Bhandankar
0 siblings, 0 replies; only message in thread
From: Kaushik Bhandankar @ 2007-11-15 7:54 UTC (permalink / raw)
To: Xen-devel
Hello,
Looking at linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c, I had
following doubts (also looked at the following changeset which
introduces multiple ring protocols:
http://lists.xensource.com/archives/html/xen-changelog/2007-01/msg00413.html)
1) When a block IO request is made by guest, do_block_io_op() obtains
the 'req' from appropriate ring based on blk_protocol (and invokes
dispatch_rw_block_io()) but the "req_cons" is incremented for the
"common" ring.. Where is the "req_cons" being incremented for the
corresponding ring (native, x86_32 or x86_64) ?
2) For sending back the response, make_response() copies the "resp" on
the appropriate ring based on blk_protocol but increments the
"rsp_prod_pvt" for the "common" ring. Where is the "rsp_prod_pvt" being
incremented for the corresponding ring (native, x86_32 or x86_64) ?
Looking at xen/include/public/io/ring.h, I couldnt really figure things
out looking at the macros? Am not really sure how the counters get
incremented/decremented for each protocol ring during block
request/response phase ...Any hint is appreciated....
--Kaushik
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-15 7:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-15 7:54 doubt: Block IO multiple ring protocol Kaushik Bhandankar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.