mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
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.
This commit is contained in:
parent
36363b1a37
commit
820a653725
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue