Launch qemu with a USB XHCI controller and USB tablet device

This commit is contained in:
Josh Holtrop 2022-04-13 21:55:06 -04:00
parent 53e2e52bbe
commit bf9a005dbc

View File

@ -125,6 +125,6 @@ task "run", desc: "Run HOS in QEMU" do
Dir.mktmpdir do |tmpdir| Dir.mktmpdir do |tmpdir|
img = hello_env.expand("^/hos.img") img = hello_env.expand("^/hos.img")
FileUtils.cp(img, tmpdir) FileUtils.cp(img, tmpdir)
sh %W[qemu-system-x86_64 -bios OVMF.fd -drive file=#{tmpdir}/hos.img,format=raw] sh %W[qemu-system-x86_64 -bios OVMF.fd -drive file=#{tmpdir}/hos.img,format=raw -device qemu-xhci -device usb-tablet]
end end
end end