]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu: Introduce virCPUGetHostIsSupported
authorJiri Denemark <jdenemar@redhat.com>
Tue, 11 Apr 2017 18:45:07 +0000 (20:45 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 19 Apr 2017 14:36:38 +0000 (16:36 +0200)
commitbf1a881715c905c67f7d38dcd5bd6c2afbff1f9b
tree1f11187d3ff1db9c0717a2132a4d0d5ed895c103
parent232d87c7dd081d126a079fb45178e0be096cc680
cpu: Introduce virCPUGetHostIsSupported

Sometimes we want to call virCPUGetHost only when it is implemented for
a given architecture to avoid logging expected and possibly misleading
errors. The new virCPUGetHostIsSupported API may be used to guard such
calls to virCPUGetHost.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/cpu/cpu.c
src/cpu/cpu.h
src/libvirt_private.syms