Re: [PATCH v3] migration: Allow postcopy_ram_supported_by_host() to report err

2023-04-26 Thread Juan Quintela
Peter Xu wrote: > Instead of print it to STDERR, bring the error upwards so that it can be > reported via QMP responses. > > E.g.: > > { "execute": "migrate-set-capabilities" , > "arguments": { "capabilities": > [ { "capability": "postcopy-ram", "state": true } ] } } > > { "error": > { "clas

[PATCH v3] migration: Allow postcopy_ram_supported_by_host() to report err

2023-04-25 Thread Peter Xu
Instead of print it to STDERR, bring the error upwards so that it can be reported via QMP responses. E.g.: { "execute": "migrate-set-capabilities" , "arguments": { "capabilities": [ { "capability": "postcopy-ram", "state": true } ] } } { "error": { "class": "GenericError", "desc": "Pos