diff options
author | Jiri Denemark <jdenemar@redhat.com> | 2016-06-14 11:12:49 +0200 |
---|---|---|
committer | Jiri Denemark <jdenemar@redhat.com> | 2016-09-22 15:40:08 +0200 |
commit | 1bc8484326ef363dac8ab33fd2a498dae732f492 (patch) | |
tree | 33ce6f99e9d18d8142708d35e5f3f43c47aa5335 /src/libvirt-host.c | |
parent | 84d38307fe6dffa3b207b78167d80ccb6983ad48 (diff) | |
download | libvirt-1bc8484326ef363dac8ab33fd2a498dae732f492.tar.gz |
cpu: Special case models == NULL in cpuGetModels
Some CPU drivers (such as arm) do not provide list of CPUs libvirt
supports and just pass any CPU model from domain XML directly to QEMU.
Such driver need to return models == NULL and success from cpuGetModels.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Diffstat (limited to 'src/libvirt-host.c')
-rw-r--r-- | src/libvirt-host.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libvirt-host.c b/src/libvirt-host.c index 2a3de03115..335798abf7 100644 --- a/src/libvirt-host.c +++ b/src/libvirt-host.c @@ -1005,7 +1005,8 @@ virConnectCompareCPU(virConnectPtr conn, * * Get the list of supported CPU models for a specific architecture. * - * Returns -1 on error, number of elements in @models on success. + * Returns -1 on error, number of elements in @models on success (0 means + * libvirt accepts any CPU model). */ int virConnectGetCPUModelNames(virConnectPtr conn, const char *arch, char ***models, |