Skip to content

Commit

Permalink
Merge pull request #375 from no92/qmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke authored Sep 18, 2024
2 parents 0c70bc9 + 37473b3 commit a498934
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/vm-util.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ def do_qemu(args):
qemu_args += ["-chardev", f"socket,id=usb-redir-chardev{num},port={port},host={host}"]
qemu_args += ["-device", f"usb-redir,chardev=usb-redir-chardev{num},id=usb-redir{num},bus=xhci.0"]

if args.qmp:
qemu_args += ["-qmp", "tcp:0.0.0.0:4444,server"]

# TODO: Support virtio-console via:
# -chardev file,id=virtio-trace,path=virtio-trace.bin
# -device virtio-serial -device virtconsole,chardev=virtio-trace
Expand Down Expand Up @@ -354,6 +357,7 @@ def do_qemu(args):
qemu_parser.add_argument("--usb-passthrough-pcap", type=str, action='append')
qemu_parser.add_argument("--usb-redir", type=str, action='append')
qemu_parser.add_argument("--cmd", type=str)
qemu_parser.add_argument("--qmp", action="store_true")
qemu_parser.add_argument("--use-system-qemu", action="store_true")

# ---------------------------------------------------------------------------------------
Expand Down

0 comments on commit a498934

Please sign in to comment.