diff options
author | Pankaj Raghav <pankydev8@gmail.com> | 2022-03-28 21:19:30 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-03-30 19:31:12 +0300 |
commit | 820a6537255db2e72663c4a3cfd12d6527a7b035 (patch) | |
tree | 5d170cfafcf4e7539d9897398f32dd40f0a2d036 /Meta | |
parent | 36363b1a37593bbdfb1bd31e67fc72fb05523c2b (diff) | |
download | serenity-820a6537255db2e72663c4a3cfd12d6527a7b035.zip |
Meta: Use 4k logical and physical blocks for nvme in QEMU
4k logical blocks are better for block devices in QEMU as they align
with the underlying filesystem which typically has 4k logical blocks
such as our EXT2 filesystem.
Diffstat (limited to 'Meta')
-rwxr-xr-x | Meta/run.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/run.sh b/Meta/run.sh index 4508c054d5..6979232ee1 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -212,7 +212,7 @@ else if [ "$SERENITY_NVME_ENABLE" -eq 1 ]; then SERENITY_BOOT_DRIVE="-drive file=${SERENITY_DISK_IMAGE},format=raw,index=0,media=disk,if=none,id=disk" SERENITY_BOOT_DRIVE="$SERENITY_BOOT_DRIVE -device i82801b11-bridge,id=bridge4 -device sdhci-pci,bus=bridge4" - SERENITY_BOOT_DRIVE="$SERENITY_BOOT_DRIVE -device nvme,serial=deadbeef,drive=disk,bus=bridge4" + SERENITY_BOOT_DRIVE="$SERENITY_BOOT_DRIVE -device nvme,serial=deadbeef,drive=disk,bus=bridge4,logical_block_size=4096,physical_block_size=4096" SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE root=/dev/nvme0n1" else SERENITY_BOOT_DRIVE="-drive file=${SERENITY_DISK_IMAGE},format=raw,index=0,media=disk,id=disk" |