mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
cpu: Report error for unknown features in x86HasFeature
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
5ac41ef54e
commit
ff559b80d0
@ -2653,8 +2653,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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user