]> err.no Git - linux-2.6/commit
virtio: add virtio disk geometry feature
authorRyan Harper <ryanh@us.ibm.com>
Wed, 16 Apr 2008 18:56:37 +0000 (13:56 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 2 May 2008 11:50:51 +0000 (21:50 +1000)
commit48e4043d4529523cbc7fa8dd745bd8e2c45ce1d3
tree15c2784498237de48c222c50b540123d5eeff464
parentc45a6816c19dee67b8f725e6646d428901a6dc24
virtio: add virtio disk geometry feature

Rather than faking up some geometry, allow the backend to push the disk
geometry via virtio pci config option.  Keep the old geo code around for
compatibility.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (modified to single struct)
drivers/block/virtio_blk.c
include/linux/virtio_blk.h