From cd00a8233ad43be269908db5bdc28c5961a9dce9 Mon Sep 17 00:00:00 2001 From: Xi Wang Date: Sun, 17 Oct 2021 22:33:39 -0700 Subject: port virtio_disk to virtio spec 1.0+ The legacy interface is confusing. It's better to make virtio_disk conform to the virtio spec. This is supported in QEMU since 4.2 by disabling force-legacy for virtio-mmio. --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 328f9c6..1dfc1db 100644 --- a/Makefile +++ b/Makefile @@ -157,6 +157,7 @@ CPUS := 3 endif QEMUOPTS = -machine virt -bios none -kernel $K/kernel -m 128M -smp $(CPUS) -nographic +QEMUOPTS += -global virtio-mmio.force-legacy=false QEMUOPTS += -drive file=fs.img,if=none,format=raw,id=x0 QEMUOPTS += -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -- cgit v1.2.3