summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXi Wang <[email protected]>2021-10-17 22:33:39 -0700
committerXi Wang <[email protected]>2021-10-17 23:05:09 -0700
commitcd00a8233ad43be269908db5bdc28c5961a9dce9 (patch)
tree2a0f10fd40586bbfb3f057610d5d710c4938ff9a /Makefile
parenta1da53a5a12e21b44a2c79d962a437fa2107627c (diff)
downloadxv6-labs-cd00a8233ad43be269908db5bdc28c5961a9dce9.tar.gz
xv6-labs-cd00a8233ad43be269908db5bdc28c5961a9dce9.tar.bz2
xv6-labs-cd00a8233ad43be269908db5bdc28c5961a9dce9.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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