aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/virtio-blk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 8dd3c7ac52..9a0c0674fc 100644
--- a/hw/virtio-blk.c
+++ b/hw/virtio-blk.c
@@ -299,6 +299,7 @@ static void virtio_blk_update_config(VirtIODevice *vdev, uint8_t *config)
stw_raw(&blkcfg.cylinders, cylinders);
blkcfg.heads = heads;
blkcfg.sectors = secs;
+ blkcfg.size_max = 0;
memcpy(config, &blkcfg, sizeof(blkcfg));
}