mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
migration: No need to return the size of the cache
After the previous commits, we make sure that the value passed is right, or we just drop an error. So now we return if there is one error or we have setup correctly the value passed. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> -- Improve error messasge Return 0 always for success
This commit is contained in:
parent
2a313e5cf6
commit
c9dede2d48
3 changed files with 7 additions and 11 deletions
|
@ -1406,14 +1406,12 @@ void qmp_migrate_continue(MigrationStatus state, Error **errp)
|
|||
void qmp_migrate_set_cache_size(int64_t value, Error **errp)
|
||||
{
|
||||
MigrationState *s = migrate_get_current();
|
||||
int64_t new_size;
|
||||
|
||||
new_size = xbzrle_cache_resize(value, errp);
|
||||
if (new_size < 0) {
|
||||
if (xbzrle_cache_resize(value, errp) < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
s->xbzrle_cache_size = new_size;
|
||||
s->xbzrle_cache_size = value;
|
||||
}
|
||||
|
||||
int64_t qmp_query_migrate_cache_size(Error **errp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue