]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: capsInitCPU: fail if we can't initialize host features
authorJán Tomko <jtomko@redhat.com>
Sun, 5 Sep 2021 18:59:27 +0000 (20:59 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 8 Sep 2021 14:19:55 +0000 (16:19 +0200)
commit5f5d698053043369011ff551be0986a22e13d267
treed22a841a5a0108ba35b7aa916bff8329c013227b
parent6b08d4b37d2b2c8a38de037a263c01ee78cee9c4
libxl: capsInitCPU: fail if we can't initialize host features

Introduced by:
  commit 17322e551861a5bc4dd464a7c5399204dc8c7caa
      libxl: describe host cpu features based on hwcaps
with the justification that libxl_hwcaps does not have a stable
format across all version.

Even though the code would return '0' in the case of such failure,
it frees the 'cpu' pointer, while keeping it in caps->host.
Based on that, assume it does not happen in current usage.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_capabilities.c