]> git.proxmox.com Git - qemu.git/blame - qemu-monitor.hx
Introduce QList unit-tests
[qemu.git] / qemu-monitor.hx
CommitLineData
2313086a
BS
1HXCOMM Use DEFHEADING() to define headings in both help text and texi
2HXCOMM Text between STEXI and ETEXI are copied to texi version and
3HXCOMM discarded from C version
4HXCOMM DEF(command, args, callback, arg_string, help) is used to construct
5HXCOMM monitor commands
6HXCOMM HXCOMM can be used for comments, discarded from both texi and C
7
8STEXI
9@table @option
10ETEXI
11
4d76d2ba 12 { "help|?", "name:s?", do_help_cmd, "[cmd]", "show the help" },
2313086a
BS
13STEXI
14@item help or ? [@var{cmd}]
15Show the help for all commands or just for command @var{cmd}.
16ETEXI
17
075e36b8 18 { "commit", "device:B", do_commit,
2313086a
BS
19 "device|all", "commit changes to the disk images (if -snapshot is used) or backing files" },
20STEXI
21@item commit
22Commit changes to the disk images (if -snapshot is used) or backing files.
23ETEXI
24
4d76d2ba 25 { "info", "item:s?", do_info,
2313086a
BS
26 "[subcommand]", "show various information about the system state" },
27STEXI
28@item info @var{subcommand}
29Show various information about the system state.
30
31@table @option
32@item info version
33show the version of QEMU
34@item info network
35show the various VLANs and the associated devices
36@item info chardev
37show the character devices
38@item info block
39show the block devices
40@item info block
41show block device statistics
42@item info registers
43show the cpu registers
44@item info cpus
45show infos for each CPU
46@item info history
47show the command line history
48@item info irq
49show the interrupts statistics (if available)
50@item info pic
51show i8259 (PIC) state
52@item info pci
53show emulated PCI device info
54@item info tlb
55show virtual to physical memory mappings (i386 only)
56@item info mem
57show the active virtual memory mappings (i386 only)
58@item info hpet
59show state of HPET (i386 only)
2313086a
BS
60@item info kvm
61show KVM information
62@item info usb
63show USB devices plugged on the virtual USB hub
64@item info usbhost
65show all USB host devices
66@item info profile
67show profiling information
68@item info capture
69show information about active capturing
70@item info snapshots
71show list of VM snapshots
72@item info status
73show the current VM status (running|paused)
74@item info pcmcia
75show guest PCMCIA status
76@item info mice
77show which guest mouse is receiving events
78@item info vnc
79show the vnc server status
80@item info name
81show the current VM name
82@item info uuid
83show the current VM UUID
84@item info cpustats
85show CPU statistics
6dbe553f
JK
86@item info usernet
87show user network stack connection states
2313086a
BS
88@item info migrate
89show migration status
90@item info balloon
91show balloon information
92@item info qtree
93show device tree
94@end table
95ETEXI
96
97 { "q|quit", "", do_quit,
98 "", "quit the emulator" },
99STEXI
100@item q or quit
101Quit the emulator.
102ETEXI
103
4d76d2ba 104 { "eject", "force:-f,filename:B", do_eject,
2313086a
BS
105 "[-f] device", "eject a removable medium (use -f to force it)" },
106STEXI
107@item eject [-f] @var{device}
108Eject a removable medium (use -f to force it).
109ETEXI
110
4d76d2ba 111 { "change", "device:B,target:F,arg:s?", do_change,
2313086a
BS
112 "device filename [format]", "change a removable medium, optional format" },
113STEXI
114@item change @var{device} @var{setting}
115
116Change the configuration of a device.
117
118@table @option
119@item change @var{diskdevice} @var{filename} [@var{format}]
120Change the medium for a removable disk device to point to @var{filename}. eg
121
122@example
123(qemu) change ide1-cd0 /path/to/some.iso
124@end example
125
126@var{format} is optional.
127
128@item change vnc @var{display},@var{options}
129Change the configuration of the VNC server. The valid syntax for @var{display}
130and @var{options} are described at @ref{sec_invocation}. eg
131
132@example
133(qemu) change vnc localhost:1
134@end example
135
136@item change vnc password [@var{password}]
137
138Change the password associated with the VNC server. If the new password is not
139supplied, the monitor will prompt for it to be entered. VNC passwords are only
140significant up to 8 letters. eg
141
142@example
143(qemu) change vnc password
144Password: ********
145@end example
146
147@end table
148ETEXI
149
4d76d2ba 150 { "screendump", "filename:F", do_screen_dump,
2313086a
BS
151 "filename", "save screen into PPM image 'filename'" },
152STEXI
153@item screendump @var{filename}
154Save screen into PPM image @var{filename}.
155ETEXI
156
4d76d2ba 157 { "logfile", "filename:F", do_logfile,
2313086a
BS
158 "filename", "output logs to 'filename'" },
159STEXI
160@item logfile @var{filename}
161Output logs to @var{filename}.
162ETEXI
163
4d76d2ba 164 { "log", "items:s", do_log,
2313086a
BS
165 "item1[,...]", "activate logging of the specified items to '/tmp/qemu.log'" },
166STEXI
167@item log @var{item1}[,...]
168Activate logging of the specified items to @file{/tmp/qemu.log}.
169ETEXI
170
4d76d2ba 171 { "savevm", "name:s?", do_savevm,
2313086a
BS
172 "[tag|id]", "save a VM snapshot. If no tag or id are provided, a new snapshot is created" },
173STEXI
174@item savevm [@var{tag}|@var{id}]
175Create a snapshot of the whole virtual machine. If @var{tag} is
176provided, it is used as human readable identifier. If there is already
177a snapshot with the same tag or ID, it is replaced. More info at
178@ref{vm_snapshots}.
179ETEXI
180
4d76d2ba 181 { "loadvm", "name:s", do_loadvm,
2313086a
BS
182 "tag|id", "restore a VM snapshot from its tag or id" },
183STEXI
184@item loadvm @var{tag}|@var{id}
185Set the whole virtual machine to the snapshot identified by the tag
186@var{tag} or the unique snapshot ID @var{id}.
187ETEXI
188
4d76d2ba 189 { "delvm", "name:s", do_delvm,
2313086a
BS
190 "tag|id", "delete a VM snapshot from its tag or id" },
191STEXI
192@item delvm @var{tag}|@var{id}
193Delete the snapshot identified by @var{tag} or @var{id}.
194ETEXI
195
4d76d2ba 196 { "singlestep", "option:s?", do_singlestep,
2313086a
BS
197 "[on|off]", "run emulation in singlestep mode or switch to normal mode", },
198STEXI
199@item singlestep [off]
200Run the emulation in single step mode.
201If called with option off, the emulation returns to normal mode.
202ETEXI
203
204 { "stop", "", do_stop,
205 "", "stop emulation", },
206STEXI
207@item stop
208Stop emulation.
209ETEXI
210
211 { "c|cont", "", do_cont,
212 "", "resume emulation", },
213STEXI
214@item c or cont
215Resume emulation.
216ETEXI
217
4d76d2ba 218 { "gdbserver", "device:s?", do_gdbserver,
2313086a
BS
219 "[device]", "start gdbserver on given device (default 'tcp::1234'), stop with 'none'", },
220STEXI
221@item gdbserver [@var{port}]
222Start gdbserver session (default @var{port}=1234)
223ETEXI
224
4d76d2ba 225 { "x", "fmt:/,addr:l", do_memory_dump,
2313086a
BS
226 "/fmt addr", "virtual memory dump starting at 'addr'", },
227STEXI
228@item x/fmt @var{addr}
229Virtual memory dump starting at @var{addr}.
230ETEXI
231
4d76d2ba 232 { "xp", "fmt:/,addr:l", do_physical_memory_dump,
2313086a
BS
233 "/fmt addr", "physical memory dump starting at 'addr'", },
234STEXI
235@item xp /@var{fmt} @var{addr}
236Physical memory dump starting at @var{addr}.
237
238@var{fmt} is a format which tells the command how to format the
239data. Its syntax is: @option{/@{count@}@{format@}@{size@}}
240
241@table @var
242@item count
243is the number of items to be dumped.
244
245@item format
246can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
247c (char) or i (asm instruction).
248
249@item size
250can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86,
251@code{h} or @code{w} can be specified with the @code{i} format to
252respectively select 16 or 32 bit code instruction size.
253
254@end table
255
256Examples:
257@itemize
258@item
259Dump 10 instructions at the current instruction pointer:
260@example
261(qemu) x/10i $eip
2620x90107063: ret
2630x90107064: sti
2640x90107065: lea 0x0(%esi,1),%esi
2650x90107069: lea 0x0(%edi,1),%edi
2660x90107070: ret
2670x90107071: jmp 0x90107080
2680x90107073: nop
2690x90107074: nop
2700x90107075: nop
2710x90107076: nop
272@end example
273
274@item
275Dump 80 16 bit values at the start of the video memory.
276@smallexample
277(qemu) xp/80hx 0xb8000
2780x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
2790x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
2800x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
2810x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
2820x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
2830x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
2840x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
2850x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
2860x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
2870x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
288@end smallexample
289@end itemize
290ETEXI
291
4d76d2ba 292 { "p|print", "fmt:/,val:l", do_print,
2313086a
BS
293 "/fmt expr", "print expression value (use $reg for CPU register access)", },
294STEXI
295@item p or print/@var{fmt} @var{expr}
296
297Print expression value. Only the @var{format} part of @var{fmt} is
298used.
299ETEXI
300
4d76d2ba 301 { "i", "fmt:/,addr:i,index:i.", do_ioport_read,
2313086a
BS
302 "/fmt addr", "I/O port read" },
303STEXI
304Read I/O port.
305ETEXI
306
4d76d2ba 307 { "o", "fmt:/,addr:i,val:i", do_ioport_write,
f114784f
JK
308 "/fmt addr value", "I/O port write" },
309STEXI
310Write to I/O port.
311ETEXI
2313086a 312
4d76d2ba 313 { "sendkey", "string:s,hold_time:i?", do_sendkey,
2313086a
BS
314 "keys [hold_ms]", "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)" },
315STEXI
316@item sendkey @var{keys}
317
318Send @var{keys} to the emulator. @var{keys} could be the name of the
319key or @code{#} followed by the raw value in either decimal or hexadecimal
320format. Use @code{-} to press several keys simultaneously. Example:
321@example
322sendkey ctrl-alt-f1
323@end example
324
325This command is useful to send keys that your graphical user interface
326intercepts at low level, such as @code{ctrl-alt-f1} in X Window.
327ETEXI
328
329 { "system_reset", "", do_system_reset,
330 "", "reset the system" },
331STEXI
332@item system_reset
333
334Reset the system.
335ETEXI
336
337 { "system_powerdown", "", do_system_powerdown,
338 "", "send system power down event" },
339STEXI
340@item system_powerdown
341
342Power down the system (if supported).
343ETEXI
344
4d76d2ba 345 { "sum", "start:i,size:i", do_sum,
2313086a
BS
346 "addr size", "compute the checksum of a memory region" },
347STEXI
348@item sum @var{addr} @var{size}
349
350Compute the checksum of a memory region.
351ETEXI
352
4d76d2ba 353 { "usb_add", "devname:s", do_usb_add,
2313086a
BS
354 "device", "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')" },
355STEXI
356@item usb_add @var{devname}
357
358Add the USB device @var{devname}. For details of available devices see
359@ref{usb_devices}
360ETEXI
361
4d76d2ba 362 { "usb_del", "devname:s", do_usb_del,
2313086a
BS
363 "device", "remove USB device 'bus.addr'" },
364STEXI
365@item usb_del @var{devname}
366
367Remove the USB device @var{devname} from the QEMU virtual USB
368hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
369command @code{info usb} to see the devices you can remove.
370ETEXI
371
3418bd25
GH
372 { "device_add", "config:s", do_device_add,
373 "device", "add device, like -device on the command line" },
374STEXI
375@item device_add @var{config}
376
377Add device.
378ETEXI
379
380 { "device_del", "id:s", do_device_del,
381 "device", "remove device" },
382STEXI
383@item device_del @var{id}
384
385Remove device @var{id}.
386ETEXI
387
388 { "cpu", "index:i", do_cpu_set, "index", "set the default CPU" },
389
2313086a
BS
390STEXI
391Set the default CPU.
392ETEXI
393
4d76d2ba 394 { "mouse_move", "dx_str:s,dy_str:s,dz_str:s?", do_mouse_move,
2313086a
BS
395 "dx dy [dz]", "send mouse move events" },
396STEXI
397@item mouse_move @var{dx} @var{dy} [@var{dz}]
398Move the active mouse to the specified coordinates @var{dx} @var{dy}
399with optional scroll axis @var{dz}.
400ETEXI
401
4d76d2ba 402 { "mouse_button", "button_state:i", do_mouse_button,
2313086a
BS
403 "state", "change mouse button state (1=L, 2=M, 4=R)" },
404STEXI
405@item mouse_button @var{val}
406Change the active mouse button state @var{val} (1=L, 2=M, 4=R).
407ETEXI
408
4d76d2ba 409 { "mouse_set", "index:i", do_mouse_set,
2313086a
BS
410 "index", "set which mouse device receives events" },
411STEXI
412@item mouse_set @var{index}
413Set which mouse device receives events at given @var{index}, index
414can be obtained with
415@example
416info mice
417@end example
418ETEXI
419
420#ifdef HAS_AUDIO
e0fed6cc 421 { "wavcapture", "path:F,freq:i?,bits:i?,nchannels:i?", do_wav_capture,
2313086a
BS
422 "path [frequency [bits [channels]]]",
423 "capture audio to a wave file (default frequency=44100 bits=16 channels=2)" },
424#endif
425STEXI
426@item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]]
427Capture audio into @var{filename}. Using sample rate @var{frequency}
428bits per sample @var{bits} and number of channels @var{channels}.
429
430Defaults:
431@itemize @minus
432@item Sample rate = 44100 Hz - CD quality
433@item Bits = 16
434@item Number of channels = 2 - Stereo
435@end itemize
436ETEXI
437
438#ifdef HAS_AUDIO
4d76d2ba 439 { "stopcapture", "n:i", do_stop_capture,
2313086a
BS
440 "capture index", "stop capture" },
441#endif
442STEXI
443@item stopcapture @var{index}
444Stop capture with a given @var{index}, index can be obtained with
445@example
446info capture
447@end example
448ETEXI
449
4d76d2ba 450 { "memsave", "val:l,size:i,filename:s", do_memory_save,
2313086a
BS
451 "addr size file", "save to disk virtual memory dump starting at 'addr' of size 'size'", },
452STEXI
453@item memsave @var{addr} @var{size} @var{file}
454save to disk virtual memory dump starting at @var{addr} of size @var{size}.
455ETEXI
456
4d76d2ba 457 { "pmemsave", "val:l,size:i,filename:s", do_physical_memory_save,
2313086a
BS
458 "addr size file", "save to disk physical memory dump starting at 'addr' of size 'size'", },
459STEXI
460@item pmemsave @var{addr} @var{size} @var{file}
461save to disk physical memory dump starting at @var{addr} of size @var{size}.
462ETEXI
463
4d76d2ba 464 { "boot_set", "bootdevice:s", do_boot_set,
2313086a
BS
465 "bootdevice", "define new values for the boot device list" },
466STEXI
467@item boot_set @var{bootdevicelist}
468
469Define new values for the boot device list. Those values will override
470the values specified on the command line through the @code{-boot} option.
471
472The values that can be specified here depend on the machine type, but are
473the same that can be specified in the @code{-boot} command line option.
474ETEXI
475
476#if defined(TARGET_I386)
4d76d2ba 477 { "nmi", "cpu_index:i", do_inject_nmi,
2313086a
BS
478 "cpu", "inject an NMI on the given CPU", },
479#endif
480STEXI
481@item nmi @var{cpu}
482Inject an NMI on the given CPU (x86 only).
483ETEXI
484
4d76d2ba 485 { "migrate", "detach:-d,uri:s", do_migrate,
2313086a
BS
486 "[-d] uri", "migrate to URI (using -d to not wait for completion)" },
487STEXI
488@item migrate [-d] @var{uri}
489Migrate to @var{uri} (using -d to not wait for completion).
490ETEXI
491
492 { "migrate_cancel", "", do_migrate_cancel,
493 "", "cancel the current VM migration" },
494STEXI
495@item migrate_cancel
496Cancel the current VM migration.
497ETEXI
498
4d76d2ba 499 { "migrate_set_speed", "value:s", do_migrate_set_speed,
2313086a
BS
500 "value", "set maximum speed (in bytes) for migrations" },
501STEXI
502@item migrate_set_speed @var{value}
503Set maximum speed to @var{value} (in bytes) for migrations.
2ea42952
GC
504ETEXI
505
4d76d2ba 506 { "migrate_set_downtime", "value:s", do_migrate_set_downtime,
2ea42952
GC
507 "value", "set maximum tolerated downtime (in seconds) for migrations" },
508
509STEXI
510@item migrate_set_downtime @var{second}
511Set maximum tolerated downtime (in seconds) for migration.
2313086a
BS
512ETEXI
513
514#if defined(TARGET_I386)
4d76d2ba
LC
515 { "drive_add", "pci_addr:s,opts:s", drive_hot_add,
516 "[[<domain>:]<bus>:]<slot>\n"
517 "[file=file][,if=type][,bus=n]\n"
2313086a
BS
518 "[,unit=m][,media=d][index=i]\n"
519 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
520 "[snapshot=on|off][,cache=on|off]",
521 "add drive to PCI storage controller" },
522#endif
523STEXI
524@item drive_add
525Add drive to PCI storage controller.
526ETEXI
527
528#if defined(TARGET_I386)
4d76d2ba 529 { "pci_add", "pci_addr:s,type:s,opts:s?", pci_device_hot_add, "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...", "hot-add PCI device" },
2313086a
BS
530#endif
531STEXI
532@item pci_add
533Hot-add PCI device.
534ETEXI
535
536#if defined(TARGET_I386)
4d76d2ba 537 { "pci_del", "pci_addr:s", do_pci_device_hot_remove, "[[<domain>:]<bus>:]<slot>", "hot remove PCI device" },
2313086a
BS
538#endif
539STEXI
540@item pci_del
541Hot remove PCI device.
542ETEXI
543
4d76d2ba 544 { "host_net_add", "device:s,opts:s?", net_host_device_add,
2313086a
BS
545 "tap|user|socket|vde|dump [options]", "add host VLAN client" },
546STEXI
547@item host_net_add
548Add host VLAN client.
549ETEXI
550
4d76d2ba 551 { "host_net_remove", "vlan_id:i,device:s", net_host_device_remove,
2313086a
BS
552 "vlan_id name", "remove host VLAN client" },
553STEXI
554@item host_net_remove
555Remove host VLAN client.
556ETEXI
557
558#ifdef CONFIG_SLIRP
4d76d2ba 559 { "hostfwd_add", "arg1:s,arg2:s?,arg3:s?", net_slirp_hostfwd_add,
f13b572c 560 "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
f3546deb 561 "redirect TCP or UDP connections from host to guest (requires -net user)" },
4d76d2ba 562 { "hostfwd_remove", "arg1:s,arg2:s?,arg3:s?", net_slirp_hostfwd_remove,
f13b572c 563 "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
3c6a0580 564 "remove host-to-guest TCP or UDP redirection" },
2313086a
BS
565#endif
566STEXI
567@item host_net_redir
568Redirect TCP or UDP connections from host to guest (requires -net user).
569ETEXI
570
4d76d2ba 571 { "balloon", "value:i", do_balloon,
2313086a
BS
572 "target", "request VM to change it's memory allocation (in MB)" },
573STEXI
574@item balloon @var{value}
575Request VM to change its memory allocation to @var{value} (in MB).
576ETEXI
577
4d76d2ba 578 { "set_link", "name:s,up_or_down:s", do_set_link,
2313086a
BS
579 "name up|down", "change the link status of a network adapter" },
580STEXI
581@item set_link @var{name} [up|down]
582Set link @var{name} up or down.
583ETEXI
584
4d76d2ba 585 { "watchdog_action", "action:s", do_watchdog_action,
2313086a
BS
586 "[reset|shutdown|poweroff|pause|debug|none]", "change watchdog action" },
587STEXI
588@item watchdog_action
589Change watchdog action.
590ETEXI
591
4d76d2ba 592 { "acl_show", "aclname:s", do_acl_show, "aclname",
15dfcd45 593 "list rules in the access control list" },
2313086a 594STEXI
15dfcd45
JK
595@item acl_show @var{aclname}
596List all the matching rules in the access control list, and the default
597policy. There are currently two named access control lists,
598@var{vnc.x509dname} and @var{vnc.username} matching on the x509 client
599certificate distinguished name, and SASL username respectively.
600ETEXI
2313086a 601
4d76d2ba 602 { "acl_policy", "aclname:s,policy:s", do_acl_policy, "aclname allow|deny",
15dfcd45
JK
603 "set default access control list policy" },
604STEXI
cbbfacc6 605@item acl_policy @var{aclname} @code{allow|deny}
15dfcd45 606Set the default access control list policy, used in the event that
2313086a 607none of the explicit rules match. The default policy at startup is
15dfcd45
JK
608always @code{deny}.
609ETEXI
610
4d76d2ba 611 { "acl_add", "aclname:s,match:s,policy:s,index:i?", do_acl_add, "aclname match allow|deny [index]",
15dfcd45
JK
612 "add a match rule to the access control list" },
613STEXI
614@item acl_allow @var{aclname} @var{match} @code{allow|deny} [@var{index}]
615Add a match rule to the access control list, allowing or denying access.
616The match will normally be an exact username or x509 distinguished name,
617but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
618allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will
2313086a 619normally be appended to the end of the ACL, but can be inserted
15dfcd45
JK
620earlier in the list if the optional @var{index} parameter is supplied.
621ETEXI
622
4d76d2ba 623 { "acl_remove", "aclname:s,match:s", do_acl_remove, "aclname match",
15dfcd45
JK
624 "remove a match rule from the access control list" },
625STEXI
626@item acl_remove @var{aclname} @var{match}
627Remove the specified match rule from the access control list.
628ETEXI
629
4d76d2ba 630 { "acl_reset", "aclname:s", do_acl_reset, "aclname",
15dfcd45
JK
631 "reset the access control list" },
632STEXI
633@item acl_remove @var{aclname} @var{match}
634Remove all matches from the access control list, and set the default
2313086a 635policy back to @code{deny}.
2313086a
BS
636ETEXI
637
79c4f6b0 638#if defined(TARGET_I386)
4d76d2ba 639 { "mce", "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", do_inject_mce, "cpu bank status mcgstatus addr misc", "inject a MCE on the given CPU"},
79c4f6b0
HY
640#endif
641STEXI
642@item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
643Inject an MCE on the given CPU (x86 only).
f07918fd
MM
644ETEXI
645
4d76d2ba 646 { "getfd", "fdname:s", do_getfd, "getfd name",
f07918fd
MM
647 "receive a file descriptor via SCM rights and assign it a name" },
648STEXI
649@item getfd @var{fdname}
650If a file descriptor is passed alongside this command using the SCM_RIGHTS
651mechanism on unix sockets, it is stored using the name @var{fdname} for
652later use by other monitor commands.
653ETEXI
654
4d76d2ba 655 { "closefd", "fdname:s", do_closefd, "closefd name",
f07918fd
MM
656 "close a file descriptor previously passed via SCM rights" },
657STEXI
658@item closefd @var{fdname}
659Close the file descriptor previously assigned to @var{fdname} using the
660@code{getfd} command. This is only needed if the file descriptor was never
661used by another monitor command.
79c4f6b0
HY
662ETEXI
663
2313086a
BS
664STEXI
665@end table
666ETEXI