From: 韩春晓 <chunxiaohan@ustc.edu>
To: xen-devel@lists.xensource.com
Subject: blkback driver I/O request size in Xen 3.3.0
Date: Wed, 15 Apr 2009 16:45:54 +0800 (CST) [thread overview]
Message-ID: <448118.21151239785154493.JavaMail.coremail@mail.ustc.edu> (raw)
Hi,all
In the vbd blkback driver(linux/drivers/xen/blkback/blkback.c),
when function dispatch_rw_block_io() try to do the real I/O job,
it will do a sanity check on I/O request sent from DomU in the following code fragment:
...
430 for (i = 0; i < nseg; i++) {
431 uint32_t flags;
432
433 seg[i].nsec = req->seg[i].last_sect -
434 req->seg[i].first_sect + 1;
435
436 if ((req->seg[i].last_sect >= (PAGE_SIZE >> 9)) ||
437 (req->seg[i].last_sect < req->seg[i].first_sect))
438 goto fail_response;
...
L436 check whether the number of sectors in a segment of the I/O request exceeds (PAGE_SIZE >> 9), which is 8 in x86, does that means vbd blkback driver would not handle I/O request larger than 4k, I'm a newbie to Xen, so would someone kindly explain the reason behind this, thanks.
Best Regards.
Han
reply other threads:[~2009-04-15 8:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=448118.21151239785154493.JavaMail.coremail@mail.ustc.edu \
--to=chunxiaohan@ustc.edu \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.