Pass virtio disk geometry via config space
commit90306dea7acc7f6e3c57389072ab066263099da1
authorRyan Harper <ryanh@us.ibm.com>
Wed, 16 Apr 2008 18:56:59 +0000 (16 13:56 -0500)
committerAvi Kivity <avi@qumranet.com>
Fri, 18 Apr 2008 16:22:49 +0000 (18 19:22 +0300)
treede9ff93514ac0495b9b7df6b3d01515822f4b47d
parent95c698af7ebdde0e8f24e8921e9085f2bec8a026
Pass virtio disk geometry via config space

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.

[avi: pack the structure]

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/pc.c
hw/virtio-blk.c