Add Get/SetBlockIoTune to go-libvirt API. (#45)

* Add Get/SetBlockIoTune to go-libvirt API.

This adds two libvirt entry points to the go-libvirt API:
virDomainSetBlockIoTune and virDomainGetBlockIoTune. These can be used
to control block device throttling for a VM.
This commit is contained in:
Geoff Hickey
2017-08-31 11:21:31 -04:00
committed by GitHub
parent 85dc33f30e
commit c8e4b6a7b8
4 changed files with 382 additions and 2 deletions

View File

@@ -53,6 +53,8 @@ const (
ProcDomainUndefineFlags = 231
ProcDomainDestroyFlags = 234
ProcDomainReset = 245
ProcDomainSetBlockIOTune = 252
ProcDomainGetBlockIOTune = 253
ProcDomainShutdownFlags = 258
ProcConnectListAllDomains = 273
ProcConnectListAllStoragePools = 281
@@ -78,4 +80,8 @@ const (
// UUIDSize is the length of a UUID, in bytes.
UUIDSize = 16
// TypedParamFieldLength is VIR_TYPED_PARAM_FIELD_LENGTH, and is the maximum
// length of the Field string in virTypedParameter structs.
TypedParamFieldLength = 80
)