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)
This commit is contained in:
Ryan Harper 2008-04-16 13:56:37 -05:00 • committed by Rusty Russell
commit 48e4043d45
2 changed files with 27 additions and 4 deletions