From aa52e3980e3868c15a71ee947a225e37049a6199 Mon Sep 17 00:00:00 2001 From: Shaowei Song Date: Tue, 5 Nov 2024 12:41:22 +0000 Subject: [PATCH] Minor fix on virtio-blk's config --- kernel/comps/virtio/src/device/block/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/comps/virtio/src/device/block/mod.rs b/kernel/comps/virtio/src/device/block/mod.rs index d5de196fb..31fbef271 100644 --- a/kernel/comps/virtio/src/device/block/mod.rs +++ b/kernel/comps/virtio/src/device/block/mod.rs @@ -61,7 +61,9 @@ pub struct VirtioBlockConfig { /// The number of 512-byte sectors. capacity: u64, /// The maximum segment size. - size_max: u64, + size_max: u32, + /// The maximum number of segments. + seg_max: u32, /// The geometry of the device. geometry: VirtioBlockGeometry, /// The block size. If `logical_block_size` is not given in qemu cmdline,