kvm: qemu: pass virtio disk geometry via config space
commit8b06467c4c735e59b940e50724746c64ca581ae2
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)
tree3bee190b7adbd9176e7dd78bd3c3fab9d0a44ab6
parent1560ed71efc1d2807521fba1690d733e8aff619d
kvm: qemu: 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>
qemu/hw/pc.c
qemu/hw/virtio-blk.c