mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 12:41:37 +00:00
kvm tools: Cleanup virtio block device configuration
This patch removes obsolete virtio block device configuration bits that are no longer used. Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
0d374e8e20
commit
e199f440e8
+1
-12
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user