• O
    block_resize: Implement qemu monitor functions · 4fa36f13
    Osier Yang 提交于
    Implements functions for both HMP and QMP mode.
    
    For HMP mode, qemu uses "M" as the units by default, so the passed "sized"
    is divided by 1024.
    
    For QMP mode, qemu uses "Bytes" as the units by default, the passed "sized"
    is multiplied by 1024.
    
    All of the monitor functions return -1 on failure, 0 on success, or -2 if
    not supported.
    4fa36f13
qemu_monitor.h 20.0 KB