]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Cleanup virtio block device configuration
authorPekka Enberg <penberg@kernel.org>
Wed, 6 Apr 2011 13:25:17 +0000 (16:25 +0300)
committerPekka Enberg <penberg@kernel.org>
Wed, 6 Apr 2011 13:25:17 +0000 (16:25 +0300)
This patch removes obsolete virtio block device configuration bits that are no
longer used.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/blk-virtio.c

index 270817acea1da553d77c5f837dbf8c602f1e9570..48211b5cbeffc4d53fd62c35ca0df2327ba336a0 100644 (file)
@@ -33,23 +33,12 @@ struct device {
        struct virt_queue               virt_queues[NUM_VIRT_QUEUES];
 };
 
-#define DISK_CYLINDERS 1024
-#define DISK_HEADS     64
-#define DISK_SECTORS   32
 #define DISK_SEG_MAX   126
 
 static struct device device = {
        .blk_config             = (struct virtio_blk_config) {
-               .capacity               = DISK_CYLINDERS * DISK_HEADS * DISK_SECTORS,
+               /* VIRTIO_BLK_F_SEG_MAX */
                .seg_max                = DISK_SEG_MAX,
-               /* VIRTIO_BLK_F_GEOMETRY */
-               .geometry               = {
-                       .cylinders              = DISK_CYLINDERS,
-                       .heads                  = DISK_HEADS,
-                       .sectors                = DISK_SECTORS,
-               },
-               /* VIRTIO_BLK_SIZE */
-               .blk_size               = 4096,
        },
        /*
         * Note we don't set VIRTIO_BLK_F_GEOMETRY here so the