Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx> --- src/cpu/cpu_x86.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index dcf9c25..ed9b010 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -2652,8 +2652,11 @@ x86HasFeature(const virCPUData *data, return -1; if (!(feature = x86FeatureFind(map, name)) && - !(feature = x86FeatureFindInternal(name))) + !(feature = x86FeatureFindInternal(name))) { + virReportError(VIR_ERR_INTERNAL_ERROR, + _("unknown CPU feature %s"), name); goto cleanup; + } ret = x86DataIsSubset(&data->data.x86, &feature->data) ? 1 : 0; -- 2.9.2 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list