virtio_blk: add block topology support
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Feb 2010 20:22:25 +0000 (14:22 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:26 +0000 (13:52 +1030)
commit69740c8ba878f58bc3c71f74618fc2cd1da990da
tree95a86d35fe234db2fd08b10cab0400ad1b2e56dd
parentd57ed95da483418e8b0433da693c9168dd0a2df6
virtio_blk: add block topology support

Allow reading various alignment values from the config page.  This
allows the guest to much better align I/O requests depending on the
storage topology.

Note that the formats for the config values appear a bit messed up,
but we follow the formats used by ATA and SCSI so they are expected in
the storage world.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c
include/linux/virtio_blk.h