Revision 783e9b48 qmp-commands.hx

b/qmp-commands.hx
604 604
EQMP
605 605

  
606 606
    {
607
        .name       = "dump-guest-memory",
608
        .args_type  = "paging:b,protocol:s,begin:i?,end:i?",
609
        .params     = "-p protocol [begin] [length]",
610
        .help       = "dump guest memory to file",
611
        .user_print = monitor_user_noop,
612
        .mhandler.cmd_new = qmp_marshal_input_dump_guest_memory,
613
    },
614

  
615
SQMP
616
dump
617

  
618

  
619
Dump guest memory to file. The file can be processed with crash or gdb.
620

  
621
Arguments:
622

  
623
- "paging": do paging to get guest's memory mapping (json-bool)
624
- "protocol": destination file(started with "file:") or destination file
625
              descriptor (started with "fd:") (json-string)
626
- "begin": the starting physical address. It's optional, and should be specified
627
           with length together (json-int)
628
- "length": the memory size, in bytes. It's optional, and should be specified
629
            with begin together (json-int)
630

  
631
Example:
632

  
633
-> { "execute": "dump-guest-memory", "arguments": { "protocol": "fd:dump" } }
634
<- { "return": {} }
635

  
636
Notes:
637

  
638
(1) All boolean arguments default to false
639

  
640
EQMP
641

  
642
    {
607 643
        .name       = "netdev_add",
608 644
        .args_type  = "netdev:O",
609 645
        .params     = "[user|tap|socket],id=str[,prop=value][,...]",

Also available in: Unified diff