mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 08:05:16 +00:00
qemu_vhost_user: don't raise error for unknown features
Similar to what was done for qemu_firmware.c in 61d95a1073, don't report an error for unknown vhost-user features, just log it and correctly continue on Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
3a95187289
commit
d81ac24014
@ -280,6 +280,7 @@ qemuVhostUserGPUFillCapabilities(qemuVhostUser *vu,
|
||||
qemuVhostUserGPU *gpu = &vu->capabilities.gpu;
|
||||
virJSONValue *featuresJSON;
|
||||
size_t nfeatures;
|
||||
size_t nparsed = 0;
|
||||
size_t i;
|
||||
g_autoptr(qemuVhostUserGPUFeature) features = NULL;
|
||||
|
||||
@ -299,17 +300,16 @@ qemuVhostUserGPUFillCapabilities(qemuVhostUser *vu,
|
||||
int tmp;
|
||||
|
||||
if ((tmp = qemuVhostUserGPUFeatureTypeFromString(tmpStr)) <= 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("unknown feature %s"),
|
||||
tmpStr);
|
||||
VIR_DEBUG("ignoring unknown QEMU vhost-user feature '%s'", tmpStr);
|
||||
continue;
|
||||
}
|
||||
|
||||
features[i] = tmp;
|
||||
features[nparsed] = tmp;
|
||||
nparsed++;
|
||||
}
|
||||
|
||||
gpu->features = g_steal_pointer(&features);
|
||||
gpu->nfeatures = nfeatures;
|
||||
gpu->nfeatures = nparsed;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user