Revision 2313086a monitor.c

b/monitor.c
1496 1496
    }
1497 1497
}
1498 1498

  
1499
#ifdef HAS_AUDIO
1499 1500
static void do_stop_capture(Monitor *mon, int n)
1500 1501
{
1501 1502
    int i;
......
1511 1512
    }
1512 1513
}
1513 1514

  
1514
#ifdef HAS_AUDIO
1515 1515
static void do_wav_capture(Monitor *mon, const char *path,
1516 1516
                           int has_freq, int freq,
1517 1517
                           int has_bits, int bits,
......
1659 1659
    }
1660 1660
}
1661 1661

  
1662
/* Please update qemu-doc.texi when adding or changing commands */
1663 1662
static const mon_cmd_t mon_cmds[] = {
1664
    { "help|?", "s?", help_cmd,
1665
      "[cmd]", "show the help" },
1666
    { "commit", "s", do_commit,
1667
      "device|all", "commit changes to the disk images (if -snapshot is used) or backing files" },
1668
    { "info", "s?", do_info,
1669
      "[subcommand]", "show various information about the system state" },
1670
    { "q|quit", "", do_quit,
1671
      "", "quit the emulator" },
1672
    { "eject", "-fB", do_eject,
1673
      "[-f] device", "eject a removable medium (use -f to force it)" },
1674
    { "change", "BFs?", do_change,
1675
      "device filename [format]", "change a removable medium, optional format" },
1676
    { "screendump", "F", do_screen_dump,
1677
      "filename", "save screen into PPM image 'filename'" },
1678
    { "logfile", "F", do_logfile,
1679
      "filename", "output logs to 'filename'" },
1680
    { "log", "s", do_log,
1681
      "item1[,...]", "activate logging of the specified items to '/tmp/qemu.log'" },
1682
    { "savevm", "s?", do_savevm,
1683
      "[tag|id]", "save a VM snapshot. If no tag or id are provided, a new snapshot is created" },
1684
    { "loadvm", "s", do_loadvm,
1685
      "tag|id", "restore a VM snapshot from its tag or id" },
1686
    { "delvm", "s", do_delvm,
1687
      "tag|id", "delete a VM snapshot from its tag or id" },
1688
    { "singlestep", "s?", do_singlestep,
1689
      "[on|off]", "run emulation in singlestep mode or switch to normal mode", },
1690
    { "stop", "", do_stop,
1691
      "", "stop emulation", },
1692
    { "c|cont", "", do_cont,
1693
      "", "resume emulation", },
1694
    { "gdbserver", "s?", do_gdbserver,
1695
      "[device]", "start gdbserver on given device (default 'tcp::1234'), stop with 'none'", },
1696
    { "x", "/l", do_memory_dump,
1697
      "/fmt addr", "virtual memory dump starting at 'addr'", },
1698
    { "xp", "/l", do_physical_memory_dump,
1699
      "/fmt addr", "physical memory dump starting at 'addr'", },
1700
    { "p|print", "/l", do_print,
1701
      "/fmt expr", "print expression value (use $reg for CPU register access)", },
1702
    { "i", "/ii.", do_ioport_read,
1703
      "/fmt addr", "I/O port read" },
1704

  
1705
    { "sendkey", "si?", do_sendkey,
1706
      "keys [hold_ms]", "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)" },
1707
    { "system_reset", "", do_system_reset,
1708
      "", "reset the system" },
1709
    { "system_powerdown", "", do_system_powerdown,
1710
      "", "send system power down event" },
1711
    { "sum", "ii", do_sum,
1712
      "addr size", "compute the checksum of a memory region" },
1713
    { "usb_add", "s", do_usb_add,
1714
      "device", "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')" },
1715
    { "usb_del", "s", do_usb_del,
1716
      "device", "remove USB device 'bus.addr'" },
1717
    { "cpu", "i", do_cpu_set,
1718
      "index", "set the default CPU" },
1719
    { "mouse_move", "sss?", do_mouse_move,
1720
      "dx dy [dz]", "send mouse move events" },
1721
    { "mouse_button", "i", do_mouse_button,
1722
      "state", "change mouse button state (1=L, 2=M, 4=R)" },
1723
    { "mouse_set", "i", do_mouse_set,
1724
      "index", "set which mouse device receives events" },
1725
#ifdef HAS_AUDIO
1726
    { "wavcapture", "si?i?i?", do_wav_capture,
1727
      "path [frequency [bits [channels]]]",
1728
      "capture audio to a wave file (default frequency=44100 bits=16 channels=2)" },
1729
#endif
1730
    { "stopcapture", "i", do_stop_capture,
1731
      "capture index", "stop capture" },
1732
    { "memsave", "lis", do_memory_save,
1733
      "addr size file", "save to disk virtual memory dump starting at 'addr' of size 'size'", },
1734
    { "pmemsave", "lis", do_physical_memory_save,
1735
      "addr size file", "save to disk physical memory dump starting at 'addr' of size 'size'", },
1736
    { "boot_set", "s", do_boot_set,
1737
      "bootdevice", "define new values for the boot device list" },
1738
#if defined(TARGET_I386)
1739
    { "nmi", "i", do_inject_nmi,
1740
      "cpu", "inject an NMI on the given CPU", },
1741
#endif
1742
    { "migrate", "-ds", do_migrate,
1743
      "[-d] uri", "migrate to URI (using -d to not wait for completion)" },
1744
    { "migrate_cancel", "", do_migrate_cancel,
1745
      "", "cancel the current VM migration" },
1746
    { "migrate_set_speed", "s", do_migrate_set_speed,
1747
      "value", "set maximum speed (in bytes) for migrations" },
1748
#if defined(TARGET_I386)
1749
    { "drive_add", "ss", drive_hot_add, "pci_addr=[[<domain>:]<bus>:]<slot>\n"
1750
                                         "[file=file][,if=type][,bus=n]\n"
1751
                                        "[,unit=m][,media=d][index=i]\n"
1752
                                        "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
1753
                                        "[snapshot=on|off][,cache=on|off]",
1754
                                        "add drive to PCI storage controller" },
1755
    { "pci_add", "sss", pci_device_hot_add, "pci_addr=auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...", "hot-add PCI device" },
1756
    { "pci_del", "s", pci_device_hot_remove, "pci_addr=[[<domain>:]<bus>:]<slot>", "hot remove PCI device" },
1757
#endif
1758
    { "host_net_add", "ss?", net_host_device_add,
1759
      "tap|user|socket|vde|dump [options]", "add host VLAN client" },
1760
    { "host_net_remove", "is", net_host_device_remove,
1761
      "vlan_id name", "remove host VLAN client" },
1762
#ifdef CONFIG_SLIRP
1763
    { "host_net_redir", "ss?", net_slirp_redir,
1764
      "[tcp|udp]:host-port:[guest-host]:guest-port", "redirect TCP or UDP connections from host to guest (requires -net user)\n"
1765
      "host_net_redir remove [tcp:|udp:]host-port -- remove redirection\n"
1766
      "host_net_redir list -- show all redirections" },
1767
#endif
1768
    { "balloon", "i", do_balloon,
1769
      "target", "request VM to change it's memory allocation (in MB)" },
1770
    { "set_link", "ss", do_set_link,
1771
      "name up|down", "change the link status of a network adapter" },
1772
    { "watchdog_action", "s", do_watchdog_action,
1773
      "[reset|shutdown|poweroff|pause|debug|none]", "change watchdog action" },
1774
    { "acl", "sss?i?", do_acl, "<command> <aclname> [<match> [<index>]]\n",
1775
                               "acl show vnc.username\n"
1776
                               "acl policy vnc.username deny\n"
1777
                               "acl allow vnc.username fred\n"
1778
                               "acl deny vnc.username bob\n"
1779
                               "acl reset vnc.username\n" },
1663
#include "qemu-monitor.h"
1780 1664
    { NULL, NULL, },
1781 1665
};
1782 1666

  
1783
/* Please update qemu-doc.texi when adding or changing commands */
1667
/* Please update qemu-monitor.hx when adding or changing commands */
1784 1668
static const mon_cmd_t info_cmds[] = {
1785 1669
    { "version", "", do_info_version,
1786 1670
      "", "show the version of QEMU" },

Also available in: Unified diff