|
0 |
-- a/savevm.c |
0 |
++ b/savevm.c |
Lines 2018-2025
int load_vmstate(const char *name)
|
Link Here
|
---|
|
2018 |
ret = bdrv_snapshot_find(bs_vm_state, &sn, name); |
2018 |
ret = bdrv_snapshot_find(bs_vm_state, &sn, name); |
2019 |
if (ret < 0) { |
2019 |
if (ret < 0) { |
2020 |
return ret; |
2020 |
return ret; |
2021 |
} else if (sn.vm_state_size == 0) { |
|
|
2022 |
return -EINVAL; |
2023 |
} |
2021 |
} |
2024 |
|
2022 |
|
2025 |
/* Verify if there is any device that doesn't support snapshots and is |
2023 |
/* Verify if there is any device that doesn't support snapshots and is |
Lines 2060-2065
int load_vmstate(const char *name)
|
Link Here
|
---|
|
2060 |
} |
2058 |
} |
2061 |
} |
2059 |
} |
2062 |
|
2060 |
|
|
|
2061 |
if (sn.vm_state_size == 0) |
2062 |
return -EINVAL; |
2063 |
|
2063 |
/* restore the VM state */ |
2064 |
/* restore the VM state */ |
2064 |
f = qemu_fopen_bdrv(bs_vm_state, 0); |
2065 |
f = qemu_fopen_bdrv(bs_vm_state, 0); |
2065 |
if (!f) { |
2066 |
if (!f) { |