diff options
author | Xi Wang <[email protected]> | 2021-10-17 22:33:39 -0700 |
---|---|---|
committer | Xi Wang <[email protected]> | 2021-10-17 23:05:09 -0700 |
commit | cd00a8233ad43be269908db5bdc28c5961a9dce9 (patch) | |
tree | 2a0f10fd40586bbfb3f057610d5d710c4938ff9a /Makefile | |
parent | a1da53a5a12e21b44a2c79d962a437fa2107627c (diff) | |
download | xv6-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-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |