Peter Xu <pet...@redhat.com> 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": > { "class": "GenericError", > "desc": "Postcopy is not supported: Host backend files need to be TMPFS > or HUGETLBFS only" } } > > Signed-off-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com> queued.