• J
    Add a hint message to loadvm and exits on failure · 827beacb
    Jose Ricardo Ziviani 提交于
    This patch adds a small hint for the failure case of the load snapshot
    process. It may be useful for users to remember that the VM
    configuration has changed between the save and load processes.
    
    (qemu) loadvm vm-20180903083641
    Unknown savevm section or instance 'cpu_common' 4.
    Make sure that your current VM setup matches your saved VM setup, including any hotplugged devices
    Error -22 while loading VM state
    (qemu) device_add host-spapr-cpu-core,core-id=4
    (qemu) loadvm vm-20180903083641
    (qemu) c
    (qemu) info status
    VM status: running
    
    It also exits Qemu if the snapshot cannot be loaded before reaching the
    main loop (-loadvm in the command line).
    
    $ qemu-system-ppc64 ... -loadvm vm-20180903083641
    qemu-system-ppc64: Unknown savevm section or instance 'cpu_common' 4.
    Make sure that your current VM setup matches your saved VM setup, including any hotplugged devices
    qemu-system-ppc64: Error -22 while loading VM state
    $
    Signed-off-by: NJose Ricardo Ziviani <joserz@linux.ibm.com>
    Message-Id: <20180903162613.15877-1-joserz@linux.ibm.com>
    Reviewed-by: NJuan Quintela <quintela@redhat.com>
    Signed-off-by: NJuan Quintela <quintela@redhat.com>
    Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
    827beacb
vl.c 133.8 KB