Introduced in libvirt 5.4.0 by commit <a699b19f6c3>.
Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=1683516
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
libvirt-override.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libvirt-override.c b/libvirt-override.c
index 3310b54..c76c447 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -414,6 +414,14 @@ libvirt_virDomainMemoryStats(PyObject *self ATTRIBUTE_UNUSED,
key = libvirt_constcharPtrWrap("disk_caches");
break;
#endif /* LIBVIR_CHECK_VERSION(4, 6, 0) */
+#if LIBVIR_CHECK_VERSION(5, 4, 0)
+ case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC:
+ key = libvirt_constcharPtrWrap("hugetlb_pgalloc");
+ break;
+ case VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL:
+ key = libvirt_constcharPtrWrap("hugetlb_pgfail");
+ break;
+#endif /* LIBVIR_CHECK_VERSION(5, 4, 0) */
default:
continue;
}
--
2.21.0