Commit 723f5bdd authored by Daniel P. Berrangé's avatar Daniel P. Berrangé

Add VIR_DOMAIN_JOB_MEMORY_POSTCOPY_REQS constant

Signed-off-by: 's avatarDaniel P. Berrangé <berrange@redhat.com>
parent fcf300cf
......@@ -3016,6 +3016,8 @@ type DomainJobInfo struct {
AutoConvergeThrottle int
OperationSet bool
Operation DomainJobOperationType
MemPostcopyReqsSet bool
MemPostcopyReqs uint64
}
// See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetJobInfo
......@@ -3177,6 +3179,10 @@ func getDomainJobInfoFieldInfo(params *DomainJobInfo) map[string]typedParamsFiel
set: &params.OperationSet,
i: (*int)(&params.Operation),
},
C.VIR_DOMAIN_JOB_MEMORY_POSTCOPY_REQS: typedParamsFieldInfo{
set: &params.MemPostcopyReqsSet,
ul: &params.MemPostcopyReqs,
},
}
}
......@@ -4211,12 +4217,12 @@ func (d *Domain) DelIOThread(id uint, flags DomainModificationImpact) error {
// See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetIOThreadParams
type DomainSetIOThreadParams struct {
PollMaxNsSet bool
PollMaxNs uint64
PollGrowSet bool
PollGrow uint
PollShrinkSet bool
PollShrink uint
PollMaxNsSet bool
PollMaxNs uint64
PollGrowSet bool
PollGrow uint
PollShrinkSet bool
PollShrink uint
}
func getSetIOThreadParamsFieldInfo(params *DomainSetIOThreadParams) map[string]typedParamsFieldInfo {
......
......@@ -933,4 +933,10 @@ struct _virDomainInterface {
#define VIR_DOMAIN_IOTHREAD_POLL_MAX_NS "poll_max_ns"
#endif
/* 5.0.0 */
#ifndef VIR_DOMAIN_JOB_MEMORY_POSTCOPY_REQS
#define VIR_DOMAIN_JOB_MEMORY_POSTCOPY_REQS "memory_postcopy_requests"
#endif
#endif /* LIBVIRT_GO_DOMAIN_COMPAT_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment