libvirt is capable of advertising this separately from
/capabilities/host/migration_features, so if save/restore is supported
but live migration is not, this will do the right thing.
We would have preferred libvirt to advertise
/capabilities/host/migration_features/save
or something, but it doesn't right now, so we continue to use
/capabilities/host/migration_features
to detect save/restore support.
If libvirt changes its feature presentation, then at some future point
we should change osstest too.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Martin Kletzander <mkletzan@redhat.com>
CC: Jim Fehlig <jfehlig@suse.com>
---
v3: Call correct function name.
# local migration is not supported
$rc = 1;
} else {
- $rc = $self->_check_capability('/capabilities/host/migration_features');
+ $rc = $self->_check_capability
+ ('/capabilities/host/migration_features/live');
}
logm("rc=$rc");