summaryrefslogtreecommitdiff
path: root/src/vz
diff options
context:
space:
mode:
authorMartin Kletzander <mkletzan@redhat.com>2017-03-29 15:52:31 +0200
committerMartin Kletzander <mkletzan@redhat.com>2017-05-09 13:12:40 +0200
commit72e04d2800e9da026fc81ad845b98035e5f605b4 (patch)
treebcf714b3ea7d9634b2abcd0be3ef06ca694b216b /src/vz
parent4ad6a73bfc5ba8b54ec1d05c2e78086550d3b2ed (diff)
downloadlibvirt-72e04d2800e9da026fc81ad845b98035e5f605b4.tar.gz
Init host cache info in drivers
Added only in drivers that were already calling virCapabilitiesInitNUMA(). Instead of refactoring all the callers to behave the same way in case of error, just follow what the callers are doing for all the functions. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Diffstat (limited to 'src/vz')
-rw-r--r--src/vz/vz_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c
index 059e7c9f4d..9a429f495e 100644
--- a/src/vz/vz_driver.c
+++ b/src/vz/vz_driver.c
@@ -118,6 +118,8 @@ vzBuildCapabilities(void)
if (virCapabilitiesInitNUMA(caps) < 0)
goto error;
+ if (virCapabilitiesInitCaches(caps) < 0)
+ goto error;
verify(ARRAY_CARDINALITY(archs) == ARRAY_CARDINALITY(emulators));