KVM: actually support different disk types
authorGuido Trotter <ultrotter@google.com>
Mon, 9 Feb 2009 15:16:20 +0000 (15:16 +0000)
committerGuido Trotter <ultrotter@google.com>
Mon, 9 Feb 2009 15:16:20 +0000 (15:16 +0000)
commit1213604d604c19e58c058b0ba435ab66941a489f
treeafba2777793d1c2b5d9d19ec17e4e32b8b21aad8
parent5155ede75798344a2321b1da1cf6850b3161bb90
KVM: actually support different disk types

By passing the relevant if= value to the disk we support different disk
types. The only change is that we'll translate "paravirtual" to
"virtio" to keep only one "paravirtualized" value, around ganeti. The
if= value is calculated outside the disks loop, as it's the same for all
disks (as currently ganeti doesn't support per-disk params).

Reviewed-by: iustinp
lib/hypervisor/hv_kvm.py