Skip to content
  • Jason Baron's avatar
    memory: add -machine dump-guest-core=on|off · ddb97f1d
    Jason Baron authored
    
    
    Add a new '[,dump-guest-core=on|off]' option to the '-machine' option. When
    'dump-guest-core=off' is specified, guest memory is omitted from the core dump.
    The default behavior continues to be to include guest memory when a core dump is
    triggered. In my testing, this brought the core dump size down from 384MB to 6MB
    on a 2GB guest.
    
    Is anything additional required to preserve this setting for migration or
    savevm? I don't believe so.
    
    Changelog:
    v3:
        Eliminate globals as per Anthony's suggestion
        set no dump from qemu_ram_remap() as well
    v2:
        move the option from -m to -machine, rename option dump -> dump-guest-core
    
    Signed-off-by: default avatarJason Baron <jbaron@redhat.com>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    ddb97f1d