[go PATCH 1/2] Add VIR_DOMAIN_JOB_MEMORY_PAGE_SIZE constant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 domain.go       | 6 ++++++
 domain_compat.h | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/domain.go b/domain.go
index b83bfc3..5183726 100644
--- a/domain.go
+++ b/domain.go
@@ -2860,6 +2860,8 @@ type DomainJobInfo struct {
 	MemBps                    uint64
 	MemDirtyRateSet           bool
 	MemDirtyRate              uint64
+	MemPageSizeSet            bool
+	MemPageSize               uint64
 	MemIterationSet           bool
 	MemIteration              uint64
 	DiskTotalSet              bool
@@ -2992,6 +2994,10 @@ func getDomainJobInfoFieldInfo(params *DomainJobInfo) map[string]typedParamsFiel
 			set: &params.MemDirtyRateSet,
 			ul:  &params.MemDirtyRate,
 		},
+		C.VIR_DOMAIN_JOB_MEMORY_PAGE_SIZE: typedParamsFieldInfo{
+			set: &params.MemPageSizeSet,
+			ul:  &params.MemPageSize,
+		},
 		C.VIR_DOMAIN_JOB_MEMORY_ITERATION: typedParamsFieldInfo{
 			set: &params.MemIterationSet,
 			ul:  &params.MemIteration,
diff --git a/domain_compat.h b/domain_compat.h
index 0f66e8b..afef84d 100644
--- a/domain_compat.h
+++ b/domain_compat.h
@@ -971,4 +971,10 @@ int virDomainManagedSaveDefineXMLCompat(virDomainPtr domain,
 					const char *dxml,
 					unsigned int flags);
 
+/* 3.9.0 */
+
+#ifndef VIR_DOMAIN_JOB_MEMORY_PAGE_SIZE
+#define VIR_DOMAIN_JOB_MEMORY_PAGE_SIZE "memory_page_size"
+#endif
+
 #endif /* LIBVIRT_GO_DOMAIN_COMPAT_H__ */
-- 
2.13.6

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux