libvirtpy 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- libvirtpy/__init__.py +5 -0
- libvirtpy/client/__init__.py +54 -0
- libvirtpy/client/_bases.py +326 -0
- libvirtpy/client/_runner.py +57 -0
- libvirtpy/client/aio.py +5922 -0
- libvirtpy/client/client.py +5695 -0
- libvirtpy/client/operations/__init__.py +631 -0
- libvirtpy/client/operations/_common.py +495 -0
- libvirtpy/client/operations/checkpoint.py +196 -0
- libvirtpy/client/operations/connection.py +93 -0
- libvirtpy/client/operations/connection_extra.py +256 -0
- libvirtpy/client/operations/domain.py +306 -0
- libvirtpy/client/operations/domain_agent.py +115 -0
- libvirtpy/client/operations/domain_block.py +368 -0
- libvirtpy/client/operations/domain_info.py +400 -0
- libvirtpy/client/operations/domain_lifecycle.py +338 -0
- libvirtpy/client/operations/domain_migration.py +164 -0
- libvirtpy/client/operations/domain_network.py +113 -0
- libvirtpy/client/operations/domain_tuning.py +494 -0
- libvirtpy/client/operations/host.py +246 -0
- libvirtpy/client/operations/host_interface.py +100 -0
- libvirtpy/client/operations/interface_extra.py +45 -0
- libvirtpy/client/operations/network.py +135 -0
- libvirtpy/client/operations/network_info.py +155 -0
- libvirtpy/client/operations/network_port.py +142 -0
- libvirtpy/client/operations/node_device.py +76 -0
- libvirtpy/client/operations/node_device_info.py +189 -0
- libvirtpy/client/operations/nwfilter.py +67 -0
- libvirtpy/client/operations/nwfilter_binding.py +74 -0
- libvirtpy/client/operations/secret.py +93 -0
- libvirtpy/client/operations/secret_extra.py +24 -0
- libvirtpy/client/operations/snapshot.py +100 -0
- libvirtpy/client/operations/snapshot_tree.py +114 -0
- libvirtpy/client/operations/storage.py +267 -0
- libvirtpy/client/operations/storage_info.py +188 -0
- libvirtpy/client/operations/streams.py +201 -0
- libvirtpy/client/references.py +249 -0
- libvirtpy/client/subscribing.py +88 -0
- libvirtpy/client/testing/__init__.py +24 -0
- libvirtpy/client/testing/_common.py +167 -0
- libvirtpy/client/testing/_domains.py +294 -0
- libvirtpy/client/testing/_objects.py +205 -0
- libvirtpy/client/testing/_state.py +246 -0
- libvirtpy/client/testing/_storage.py +171 -0
- libvirtpy/client/testing/async_transport.py +30 -0
- libvirtpy/client/testing/fake.py +81 -0
- libvirtpy/client/transport.py +87 -0
- libvirtpy/client/types.py +59 -0
- libvirtpy/client/wire.py +436 -0
- libvirtpy/client/wire_aio.py +348 -0
- libvirtpy/errors.py +7 -0
- libvirtpy/py.typed +0 -0
- libvirtpy/rpc/__init__.py +1 -0
- libvirtpy/rpc/aio.py +387 -0
- libvirtpy/rpc/cpumap.py +48 -0
- libvirtpy/rpc/errors.py +186 -0
- libvirtpy/rpc/events.py +259 -0
- libvirtpy/rpc/options.py +66 -0
- libvirtpy/rpc/procedure.py +27 -0
- libvirtpy/rpc/protocol/__init__.py +0 -0
- libvirtpy/rpc/protocol/procedures.py +5163 -0
- libvirtpy/rpc/protocol/typed_hints.py +210 -0
- libvirtpy/rpc/protocol/types.py +9299 -0
- libvirtpy/rpc/remote.py +295 -0
- libvirtpy/rpc/remote_aio.py +106 -0
- libvirtpy/rpc/sasl.py +467 -0
- libvirtpy/rpc/session.py +424 -0
- libvirtpy/rpc/sockets.py +251 -0
- libvirtpy/rpc/stream.py +323 -0
- libvirtpy/rpc/subscription.py +451 -0
- libvirtpy/rpc/sync.py +460 -0
- libvirtpy/rpc/typed_params.py +97 -0
- libvirtpy/rpc/uri.py +85 -0
- libvirtpy/rpc/xdr.py +552 -0
- libvirtpy/xml/__init__.py +49 -0
- libvirtpy/xml/_base.py +145 -0
- libvirtpy/xml/_shared/__init__.py +1 -0
- libvirtpy/xml/_shared/metadata.py +67 -0
- libvirtpy/xml/_shared/network.py +108 -0
- libvirtpy/xml/_shared/storage.py +131 -0
- libvirtpy/xml/_shared/sysinfo.py +83 -0
- libvirtpy/xml/_types.py +197 -0
- libvirtpy/xml/_xml_element.py +134 -0
- libvirtpy/xml/backup/__init__.py +25 -0
- libvirtpy/xml/backup/backup.py +89 -0
- libvirtpy/xml/backup/checkpoint.py +48 -0
- libvirtpy/xml/capabilities/__init__.py +43 -0
- libvirtpy/xml/capabilities/domain.py +436 -0
- libvirtpy/xml/capabilities/host.py +413 -0
- libvirtpy/xml/capabilities/storagepool.py +59 -0
- libvirtpy/xml/domain/__init__.py +493 -0
- libvirtpy/xml/domain/blkiotune.py +81 -0
- libvirtpy/xml/domain/clock.py +79 -0
- libvirtpy/xml/domain/cpu.py +265 -0
- libvirtpy/xml/domain/devices/__init__.py +495 -0
- libvirtpy/xml/domain/devices/address.py +152 -0
- libvirtpy/xml/domain/devices/audio.py +204 -0
- libvirtpy/xml/domain/devices/chardev.py +197 -0
- libvirtpy/xml/domain/devices/common.py +75 -0
- libvirtpy/xml/domain/devices/controller.py +262 -0
- libvirtpy/xml/domain/devices/devices.py +79 -0
- libvirtpy/xml/domain/devices/disk.py +471 -0
- libvirtpy/xml/domain/devices/filesystem.py +206 -0
- libvirtpy/xml/domain/devices/graphics.py +245 -0
- libvirtpy/xml/domain/devices/hostdev.py +221 -0
- libvirtpy/xml/domain/devices/input.py +89 -0
- libvirtpy/xml/domain/devices/interface.py +459 -0
- libvirtpy/xml/domain/devices/iommu.py +54 -0
- libvirtpy/xml/domain/devices/memballoon.py +42 -0
- libvirtpy/xml/domain/devices/memory_device.py +101 -0
- libvirtpy/xml/domain/devices/misc.py +169 -0
- libvirtpy/xml/domain/devices/nvram.py +20 -0
- libvirtpy/xml/domain/devices/shmem.py +46 -0
- libvirtpy/xml/domain/devices/sound.py +42 -0
- libvirtpy/xml/domain/devices/tpm.py +103 -0
- libvirtpy/xml/domain/devices/usb.py +86 -0
- libvirtpy/xml/domain/devices/video.py +101 -0
- libvirtpy/xml/domain/domain.py +157 -0
- libvirtpy/xml/domain/features.py +312 -0
- libvirtpy/xml/domain/iothread.py +41 -0
- libvirtpy/xml/domain/launch_security.py +82 -0
- libvirtpy/xml/domain/memory.py +149 -0
- libvirtpy/xml/domain/misc.py +113 -0
- libvirtpy/xml/domain/namespaces.py +96 -0
- libvirtpy/xml/domain/numa.py +140 -0
- libvirtpy/xml/domain/os.py +267 -0
- libvirtpy/xml/domain/qemu.py +102 -0
- libvirtpy/xml/domain/seclabel.py +29 -0
- libvirtpy/xml/domain/storage_source.py +466 -0
- libvirtpy/xml/domain/sysinfo.py +34 -0
- libvirtpy/xml/interface/__init__.py +17 -0
- libvirtpy/xml/interface/interface.py +153 -0
- libvirtpy/xml/network/__init__.py +101 -0
- libvirtpy/xml/network/network.py +311 -0
- libvirtpy/xml/network/port.py +84 -0
- libvirtpy/xml/nodedev/__init__.py +13 -0
- libvirtpy/xml/nodedev/nodedev.py +490 -0
- libvirtpy/xml/nwfilter/__init__.py +81 -0
- libvirtpy/xml/nwfilter/binding.py +51 -0
- libvirtpy/xml/nwfilter/filter.py +92 -0
- libvirtpy/xml/nwfilter/rules.py +534 -0
- libvirtpy/xml/secret/__init__.py +11 -0
- libvirtpy/xml/secret/secret.py +36 -0
- libvirtpy/xml/snapshot/__init__.py +29 -0
- libvirtpy/xml/snapshot/snapshot.py +136 -0
- libvirtpy/xml/storage/__init__.py +75 -0
- libvirtpy/xml/storage/pool.py +219 -0
- libvirtpy/xml/storage/volume.py +102 -0
- libvirtpy/xml/sysinfo.py +40 -0
- libvirtpy-0.1.0.dist-info/METADATA +109 -0
- libvirtpy-0.1.0.dist-info/RECORD +154 -0
- libvirtpy-0.1.0.dist-info/WHEEL +4 -0
- libvirtpy-0.1.0.dist-info/licenses/LICENSE +501 -0
- libvirtpy-0.1.0.dist-info/licenses/NOTICE +23 -0
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
"""Models for ``<domain>`` XML. See https://libvirt.org/formatdomain.html"""
|
|
2
|
+
|
|
3
|
+
from libvirtpy.xml._shared.metadata import (
|
|
4
|
+
Metadata,
|
|
5
|
+
)
|
|
6
|
+
from libvirtpy.xml._shared.network import (
|
|
7
|
+
Bandwidth,
|
|
8
|
+
BandwidthLimit,
|
|
9
|
+
FilterParameter,
|
|
10
|
+
FilterRef,
|
|
11
|
+
Inbound,
|
|
12
|
+
Outbound,
|
|
13
|
+
Route,
|
|
14
|
+
VirtualPort,
|
|
15
|
+
VirtualPortParameters,
|
|
16
|
+
Vlan,
|
|
17
|
+
VlanTag,
|
|
18
|
+
)
|
|
19
|
+
from libvirtpy.xml._shared.storage import (
|
|
20
|
+
HostPciAddress,
|
|
21
|
+
ScsiAdapter,
|
|
22
|
+
ScsiParentAddress,
|
|
23
|
+
StorageCipher,
|
|
24
|
+
StorageEncryption,
|
|
25
|
+
StorageIvgen,
|
|
26
|
+
StorageSecret,
|
|
27
|
+
)
|
|
28
|
+
from libvirtpy.xml._shared.sysinfo import (
|
|
29
|
+
FwcfgEntry,
|
|
30
|
+
OemStringEntry,
|
|
31
|
+
SmbiosEntry,
|
|
32
|
+
SysinfoBaseBoard,
|
|
33
|
+
SysinfoBios,
|
|
34
|
+
SysinfoChassis,
|
|
35
|
+
SysinfoGroup,
|
|
36
|
+
SysinfoOemStrings,
|
|
37
|
+
SysinfoSystem,
|
|
38
|
+
)
|
|
39
|
+
from libvirtpy.xml.domain.blkiotune import (
|
|
40
|
+
BlkioDevice,
|
|
41
|
+
Blkiotune,
|
|
42
|
+
ThrottleGroup,
|
|
43
|
+
ThrottleGroups,
|
|
44
|
+
)
|
|
45
|
+
from libvirtpy.xml.domain.clock import (
|
|
46
|
+
Catchup,
|
|
47
|
+
Clock,
|
|
48
|
+
Timer,
|
|
49
|
+
)
|
|
50
|
+
from libvirtpy.xml.domain.cpu import (
|
|
51
|
+
CacheTune,
|
|
52
|
+
CacheTuneCache,
|
|
53
|
+
CacheTuneMonitor,
|
|
54
|
+
Cpu,
|
|
55
|
+
CpuCache,
|
|
56
|
+
CpuFeature,
|
|
57
|
+
CpuModel,
|
|
58
|
+
CpuTopology,
|
|
59
|
+
Cputune,
|
|
60
|
+
EmulatorPin,
|
|
61
|
+
EmulatorSched,
|
|
62
|
+
EnergyTune,
|
|
63
|
+
EnergyTuneMonitor,
|
|
64
|
+
IothreadPin,
|
|
65
|
+
IothreadSched,
|
|
66
|
+
MaxPhysAddr,
|
|
67
|
+
MemoryTune,
|
|
68
|
+
MemoryTuneMonitor,
|
|
69
|
+
MemoryTuneNode,
|
|
70
|
+
Vcpu,
|
|
71
|
+
VcpuInfo,
|
|
72
|
+
VcpuPin,
|
|
73
|
+
Vcpus,
|
|
74
|
+
VcpuSched,
|
|
75
|
+
)
|
|
76
|
+
from libvirtpy.xml.domain.domain import (
|
|
77
|
+
CrashAction,
|
|
78
|
+
Domain,
|
|
79
|
+
LifecycleAction,
|
|
80
|
+
LockFailureAction,
|
|
81
|
+
)
|
|
82
|
+
from libvirtpy.xml.domain.features import (
|
|
83
|
+
Aia,
|
|
84
|
+
Apic,
|
|
85
|
+
AsyncTeardown,
|
|
86
|
+
Capabilities,
|
|
87
|
+
Cfpc,
|
|
88
|
+
DirtyRing,
|
|
89
|
+
Features,
|
|
90
|
+
FeatureState,
|
|
91
|
+
Gic,
|
|
92
|
+
Hpt,
|
|
93
|
+
Hyperv,
|
|
94
|
+
Ibs,
|
|
95
|
+
Ioapic,
|
|
96
|
+
KvmFeatures,
|
|
97
|
+
Msrs,
|
|
98
|
+
Sbbc,
|
|
99
|
+
Smm,
|
|
100
|
+
SmmTseg,
|
|
101
|
+
Spinlocks,
|
|
102
|
+
Stimer,
|
|
103
|
+
Tcg,
|
|
104
|
+
Tlbflush,
|
|
105
|
+
VendorId,
|
|
106
|
+
XenFeatures,
|
|
107
|
+
XenPassthrough,
|
|
108
|
+
)
|
|
109
|
+
from libvirtpy.xml.domain.iothread import (
|
|
110
|
+
DefaultIothread,
|
|
111
|
+
IothreadId,
|
|
112
|
+
IothreadIds,
|
|
113
|
+
IothreadPoll,
|
|
114
|
+
)
|
|
115
|
+
from libvirtpy.xml.domain.launch_security import (
|
|
116
|
+
LaunchSecurity,
|
|
117
|
+
S390PvLaunchSecurity,
|
|
118
|
+
SevLaunchSecurity,
|
|
119
|
+
SevSnpLaunchSecurity,
|
|
120
|
+
TdxLaunchSecurity,
|
|
121
|
+
TdxQuoteGenerationService,
|
|
122
|
+
)
|
|
123
|
+
from libvirtpy.xml.domain.memory import (
|
|
124
|
+
CurrentMemory,
|
|
125
|
+
HardLimit,
|
|
126
|
+
HugePage,
|
|
127
|
+
HugePages,
|
|
128
|
+
MaxMemory,
|
|
129
|
+
Memory,
|
|
130
|
+
MemoryAccess,
|
|
131
|
+
MemoryAllocation,
|
|
132
|
+
MemoryBacking,
|
|
133
|
+
MemorySource,
|
|
134
|
+
MemTune,
|
|
135
|
+
MinGuarantee,
|
|
136
|
+
SoftLimit,
|
|
137
|
+
SwapHardLimit,
|
|
138
|
+
)
|
|
139
|
+
from libvirtpy.xml.domain.misc import (
|
|
140
|
+
GidRange,
|
|
141
|
+
Idmap,
|
|
142
|
+
Iommufd,
|
|
143
|
+
Keywrap,
|
|
144
|
+
KeywrapCipher,
|
|
145
|
+
Perf,
|
|
146
|
+
PerfEvent,
|
|
147
|
+
Pm,
|
|
148
|
+
PmSuspend,
|
|
149
|
+
Resource,
|
|
150
|
+
ResourceFibrechannel,
|
|
151
|
+
UidRange,
|
|
152
|
+
)
|
|
153
|
+
from libvirtpy.xml.domain.namespaces import (
|
|
154
|
+
BHYVE_NAMESPACE,
|
|
155
|
+
LXC_NAMESPACE,
|
|
156
|
+
VMWARE_NAMESPACE,
|
|
157
|
+
XEN_NAMESPACE,
|
|
158
|
+
BhyveArg,
|
|
159
|
+
BhyveCommandline,
|
|
160
|
+
LxcNamespace,
|
|
161
|
+
LxcShare,
|
|
162
|
+
VmwareDatacenterPath,
|
|
163
|
+
XenArg,
|
|
164
|
+
XenCommandline,
|
|
165
|
+
)
|
|
166
|
+
from libvirtpy.xml.domain.numa import (
|
|
167
|
+
Numa,
|
|
168
|
+
NumaBandwidth,
|
|
169
|
+
NumaCache,
|
|
170
|
+
NumaCacheLine,
|
|
171
|
+
NumaCacheSize,
|
|
172
|
+
NumaCell,
|
|
173
|
+
NumaDistances,
|
|
174
|
+
NumaInterconnects,
|
|
175
|
+
NumaLatency,
|
|
176
|
+
NumaMemNode,
|
|
177
|
+
NumaSibling,
|
|
178
|
+
NumaTune,
|
|
179
|
+
NumaTuneMemory,
|
|
180
|
+
)
|
|
181
|
+
from libvirtpy.xml.domain.os import (
|
|
182
|
+
Bios,
|
|
183
|
+
BlockNvram,
|
|
184
|
+
Boot,
|
|
185
|
+
BootMenu,
|
|
186
|
+
CtlNvram,
|
|
187
|
+
DirNvram,
|
|
188
|
+
FileNvram,
|
|
189
|
+
InitEnv,
|
|
190
|
+
Loader,
|
|
191
|
+
NetworkNvram,
|
|
192
|
+
NvmeNvram,
|
|
193
|
+
Nvram,
|
|
194
|
+
Os,
|
|
195
|
+
OsAcpi,
|
|
196
|
+
OsAcpiTable,
|
|
197
|
+
OsFirmware,
|
|
198
|
+
OsFirmwareFeature,
|
|
199
|
+
OsType,
|
|
200
|
+
Smbios,
|
|
201
|
+
Varstore,
|
|
202
|
+
VhostUserNvram,
|
|
203
|
+
VhostVdpaNvram,
|
|
204
|
+
VolumeNvram,
|
|
205
|
+
)
|
|
206
|
+
from libvirtpy.xml.domain.qemu import (
|
|
207
|
+
QEMU_NAMESPACE,
|
|
208
|
+
QemuArg,
|
|
209
|
+
QemuCapabilities,
|
|
210
|
+
QemuCapability,
|
|
211
|
+
QemuCommandline,
|
|
212
|
+
QemuDeprecation,
|
|
213
|
+
QemuEnv,
|
|
214
|
+
QemuOverride,
|
|
215
|
+
QemuOverrideDevice,
|
|
216
|
+
QemuOverrideProperty,
|
|
217
|
+
)
|
|
218
|
+
from libvirtpy.xml.domain.seclabel import (
|
|
219
|
+
Seclabel,
|
|
220
|
+
)
|
|
221
|
+
from libvirtpy.xml.domain.storage_source import (
|
|
222
|
+
BlockDataStore,
|
|
223
|
+
BlockSource,
|
|
224
|
+
BlockStorage,
|
|
225
|
+
CookieList,
|
|
226
|
+
CtlDataStore,
|
|
227
|
+
CtlSource,
|
|
228
|
+
CtlStorage,
|
|
229
|
+
DataStore,
|
|
230
|
+
DeviceSeclabel,
|
|
231
|
+
DirDataStore,
|
|
232
|
+
DirSource,
|
|
233
|
+
DirStorage,
|
|
234
|
+
DiskFormat,
|
|
235
|
+
FileDataStore,
|
|
236
|
+
FileSource,
|
|
237
|
+
FileStorage,
|
|
238
|
+
MetadataCache,
|
|
239
|
+
MetadataCacheMaxSize,
|
|
240
|
+
NetworkAuth,
|
|
241
|
+
NetworkDataStore,
|
|
242
|
+
NetworkHost,
|
|
243
|
+
NetworkSource,
|
|
244
|
+
NetworkStorage,
|
|
245
|
+
NvmeAddress,
|
|
246
|
+
NvmeDataStore,
|
|
247
|
+
NvmeSource,
|
|
248
|
+
NvmeStorage,
|
|
249
|
+
Reconnect,
|
|
250
|
+
Reservations,
|
|
251
|
+
ReservationSource,
|
|
252
|
+
SourceSlice,
|
|
253
|
+
SourceSlices,
|
|
254
|
+
VhostUserDataStore,
|
|
255
|
+
VhostUserSource,
|
|
256
|
+
VhostUserStorage,
|
|
257
|
+
VhostVdpaDataStore,
|
|
258
|
+
VhostVdpaSource,
|
|
259
|
+
VhostVdpaStorage,
|
|
260
|
+
VolumeDataStore,
|
|
261
|
+
VolumeSource,
|
|
262
|
+
VolumeStorage,
|
|
263
|
+
)
|
|
264
|
+
from libvirtpy.xml.domain.sysinfo import (
|
|
265
|
+
Sysinfo,
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
__all__ = [
|
|
269
|
+
"BHYVE_NAMESPACE",
|
|
270
|
+
"LXC_NAMESPACE",
|
|
271
|
+
"QEMU_NAMESPACE",
|
|
272
|
+
"VMWARE_NAMESPACE",
|
|
273
|
+
"XEN_NAMESPACE",
|
|
274
|
+
"Aia",
|
|
275
|
+
"Apic",
|
|
276
|
+
"AsyncTeardown",
|
|
277
|
+
"Bandwidth",
|
|
278
|
+
"BandwidthLimit",
|
|
279
|
+
"BhyveArg",
|
|
280
|
+
"BhyveCommandline",
|
|
281
|
+
"Bios",
|
|
282
|
+
"BlkioDevice",
|
|
283
|
+
"Blkiotune",
|
|
284
|
+
"BlockDataStore",
|
|
285
|
+
"BlockNvram",
|
|
286
|
+
"BlockSource",
|
|
287
|
+
"BlockStorage",
|
|
288
|
+
"Boot",
|
|
289
|
+
"BootMenu",
|
|
290
|
+
"CacheTune",
|
|
291
|
+
"CacheTuneCache",
|
|
292
|
+
"CacheTuneMonitor",
|
|
293
|
+
"Capabilities",
|
|
294
|
+
"Catchup",
|
|
295
|
+
"Cfpc",
|
|
296
|
+
"Clock",
|
|
297
|
+
"CookieList",
|
|
298
|
+
"Cpu",
|
|
299
|
+
"CpuCache",
|
|
300
|
+
"CpuFeature",
|
|
301
|
+
"CpuModel",
|
|
302
|
+
"CpuTopology",
|
|
303
|
+
"Cputune",
|
|
304
|
+
"CrashAction",
|
|
305
|
+
"CtlDataStore",
|
|
306
|
+
"CtlNvram",
|
|
307
|
+
"CtlSource",
|
|
308
|
+
"CtlStorage",
|
|
309
|
+
"CurrentMemory",
|
|
310
|
+
"DataStore",
|
|
311
|
+
"DefaultIothread",
|
|
312
|
+
"DeviceSeclabel",
|
|
313
|
+
"DirDataStore",
|
|
314
|
+
"DirNvram",
|
|
315
|
+
"DirSource",
|
|
316
|
+
"DirStorage",
|
|
317
|
+
"DirtyRing",
|
|
318
|
+
"DiskFormat",
|
|
319
|
+
"Domain",
|
|
320
|
+
"EmulatorPin",
|
|
321
|
+
"EmulatorSched",
|
|
322
|
+
"EnergyTune",
|
|
323
|
+
"EnergyTuneMonitor",
|
|
324
|
+
"FeatureState",
|
|
325
|
+
"Features",
|
|
326
|
+
"FileDataStore",
|
|
327
|
+
"FileNvram",
|
|
328
|
+
"FileSource",
|
|
329
|
+
"FileStorage",
|
|
330
|
+
"FilterParameter",
|
|
331
|
+
"FilterRef",
|
|
332
|
+
"FwcfgEntry",
|
|
333
|
+
"Gic",
|
|
334
|
+
"GidRange",
|
|
335
|
+
"HardLimit",
|
|
336
|
+
"HostPciAddress",
|
|
337
|
+
"Hpt",
|
|
338
|
+
"HugePage",
|
|
339
|
+
"HugePages",
|
|
340
|
+
"Hyperv",
|
|
341
|
+
"Ibs",
|
|
342
|
+
"Idmap",
|
|
343
|
+
"Inbound",
|
|
344
|
+
"InitEnv",
|
|
345
|
+
"Ioapic",
|
|
346
|
+
"Iommufd",
|
|
347
|
+
"IothreadId",
|
|
348
|
+
"IothreadIds",
|
|
349
|
+
"IothreadPin",
|
|
350
|
+
"IothreadPoll",
|
|
351
|
+
"IothreadSched",
|
|
352
|
+
"Keywrap",
|
|
353
|
+
"KeywrapCipher",
|
|
354
|
+
"KvmFeatures",
|
|
355
|
+
"LaunchSecurity",
|
|
356
|
+
"LifecycleAction",
|
|
357
|
+
"Loader",
|
|
358
|
+
"LockFailureAction",
|
|
359
|
+
"LxcNamespace",
|
|
360
|
+
"LxcShare",
|
|
361
|
+
"MaxMemory",
|
|
362
|
+
"MaxPhysAddr",
|
|
363
|
+
"MemTune",
|
|
364
|
+
"Memory",
|
|
365
|
+
"MemoryAccess",
|
|
366
|
+
"MemoryAllocation",
|
|
367
|
+
"MemoryBacking",
|
|
368
|
+
"MemorySource",
|
|
369
|
+
"MemoryTune",
|
|
370
|
+
"MemoryTuneMonitor",
|
|
371
|
+
"MemoryTuneNode",
|
|
372
|
+
"Metadata",
|
|
373
|
+
"MetadataCache",
|
|
374
|
+
"MetadataCacheMaxSize",
|
|
375
|
+
"MinGuarantee",
|
|
376
|
+
"Msrs",
|
|
377
|
+
"NetworkAuth",
|
|
378
|
+
"NetworkDataStore",
|
|
379
|
+
"NetworkHost",
|
|
380
|
+
"NetworkNvram",
|
|
381
|
+
"NetworkSource",
|
|
382
|
+
"NetworkStorage",
|
|
383
|
+
"Numa",
|
|
384
|
+
"NumaBandwidth",
|
|
385
|
+
"NumaCache",
|
|
386
|
+
"NumaCacheLine",
|
|
387
|
+
"NumaCacheSize",
|
|
388
|
+
"NumaCell",
|
|
389
|
+
"NumaDistances",
|
|
390
|
+
"NumaInterconnects",
|
|
391
|
+
"NumaLatency",
|
|
392
|
+
"NumaMemNode",
|
|
393
|
+
"NumaSibling",
|
|
394
|
+
"NumaTune",
|
|
395
|
+
"NumaTuneMemory",
|
|
396
|
+
"NvmeAddress",
|
|
397
|
+
"NvmeDataStore",
|
|
398
|
+
"NvmeNvram",
|
|
399
|
+
"NvmeSource",
|
|
400
|
+
"NvmeStorage",
|
|
401
|
+
"Nvram",
|
|
402
|
+
"OemStringEntry",
|
|
403
|
+
"Os",
|
|
404
|
+
"OsAcpi",
|
|
405
|
+
"OsAcpiTable",
|
|
406
|
+
"OsFirmware",
|
|
407
|
+
"OsFirmwareFeature",
|
|
408
|
+
"OsType",
|
|
409
|
+
"Outbound",
|
|
410
|
+
"Perf",
|
|
411
|
+
"PerfEvent",
|
|
412
|
+
"Pm",
|
|
413
|
+
"PmSuspend",
|
|
414
|
+
"QemuArg",
|
|
415
|
+
"QemuCapabilities",
|
|
416
|
+
"QemuCapability",
|
|
417
|
+
"QemuCommandline",
|
|
418
|
+
"QemuDeprecation",
|
|
419
|
+
"QemuEnv",
|
|
420
|
+
"QemuOverride",
|
|
421
|
+
"QemuOverrideDevice",
|
|
422
|
+
"QemuOverrideProperty",
|
|
423
|
+
"Reconnect",
|
|
424
|
+
"ReservationSource",
|
|
425
|
+
"Reservations",
|
|
426
|
+
"Resource",
|
|
427
|
+
"ResourceFibrechannel",
|
|
428
|
+
"Route",
|
|
429
|
+
"S390PvLaunchSecurity",
|
|
430
|
+
"Sbbc",
|
|
431
|
+
"ScsiAdapter",
|
|
432
|
+
"ScsiParentAddress",
|
|
433
|
+
"Seclabel",
|
|
434
|
+
"SevLaunchSecurity",
|
|
435
|
+
"SevSnpLaunchSecurity",
|
|
436
|
+
"Smbios",
|
|
437
|
+
"SmbiosEntry",
|
|
438
|
+
"Smm",
|
|
439
|
+
"SmmTseg",
|
|
440
|
+
"SoftLimit",
|
|
441
|
+
"SourceSlice",
|
|
442
|
+
"SourceSlices",
|
|
443
|
+
"Spinlocks",
|
|
444
|
+
"Stimer",
|
|
445
|
+
"StorageCipher",
|
|
446
|
+
"StorageEncryption",
|
|
447
|
+
"StorageIvgen",
|
|
448
|
+
"StorageSecret",
|
|
449
|
+
"SwapHardLimit",
|
|
450
|
+
"Sysinfo",
|
|
451
|
+
"SysinfoBaseBoard",
|
|
452
|
+
"SysinfoBios",
|
|
453
|
+
"SysinfoChassis",
|
|
454
|
+
"SysinfoGroup",
|
|
455
|
+
"SysinfoOemStrings",
|
|
456
|
+
"SysinfoSystem",
|
|
457
|
+
"Tcg",
|
|
458
|
+
"TdxLaunchSecurity",
|
|
459
|
+
"TdxQuoteGenerationService",
|
|
460
|
+
"ThrottleGroup",
|
|
461
|
+
"ThrottleGroups",
|
|
462
|
+
"Timer",
|
|
463
|
+
"Tlbflush",
|
|
464
|
+
"UidRange",
|
|
465
|
+
"Varstore",
|
|
466
|
+
"Vcpu",
|
|
467
|
+
"VcpuInfo",
|
|
468
|
+
"VcpuPin",
|
|
469
|
+
"VcpuSched",
|
|
470
|
+
"Vcpus",
|
|
471
|
+
"VendorId",
|
|
472
|
+
"VhostUserDataStore",
|
|
473
|
+
"VhostUserNvram",
|
|
474
|
+
"VhostUserSource",
|
|
475
|
+
"VhostUserStorage",
|
|
476
|
+
"VhostVdpaDataStore",
|
|
477
|
+
"VhostVdpaNvram",
|
|
478
|
+
"VhostVdpaSource",
|
|
479
|
+
"VhostVdpaStorage",
|
|
480
|
+
"VirtualPort",
|
|
481
|
+
"VirtualPortParameters",
|
|
482
|
+
"Vlan",
|
|
483
|
+
"VlanTag",
|
|
484
|
+
"VmwareDatacenterPath",
|
|
485
|
+
"VolumeDataStore",
|
|
486
|
+
"VolumeNvram",
|
|
487
|
+
"VolumeSource",
|
|
488
|
+
"VolumeStorage",
|
|
489
|
+
"XenArg",
|
|
490
|
+
"XenCommandline",
|
|
491
|
+
"XenFeatures",
|
|
492
|
+
"XenPassthrough",
|
|
493
|
+
]
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""``<blkiotune>`` and ``<throttlegroups>``: block I/O tuning of the guest.
|
|
2
|
+
|
|
3
|
+
See https://libvirt.org/formatdomain.html#blkio-tuning
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from pydantic_xml import element
|
|
7
|
+
|
|
8
|
+
from libvirtpy.xml._base import LibvirtXmlModel
|
|
9
|
+
|
|
10
|
+
__all__ = ["BlkioDevice", "Blkiotune", "ThrottleGroup", "ThrottleGroups"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class BlkioDevice(LibvirtXmlModel, tag="device"):
|
|
14
|
+
"""``<device>``: weight and limits for one host block device."""
|
|
15
|
+
|
|
16
|
+
path: str = element(tag="path")
|
|
17
|
+
weight: int | None = element(tag="weight", default=None, ge=0)
|
|
18
|
+
read_iops_sec: int | None = element(tag="read_iops_sec", default=None, ge=0)
|
|
19
|
+
write_iops_sec: int | None = element(tag="write_iops_sec", default=None, ge=0)
|
|
20
|
+
read_bytes_sec: int | None = element(tag="read_bytes_sec", default=None, ge=0)
|
|
21
|
+
write_bytes_sec: int | None = element(tag="write_bytes_sec", default=None, ge=0)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Blkiotune(LibvirtXmlModel, tag="blkiotune"):
|
|
25
|
+
"""``<blkiotune>``: the default weight and per-device settings."""
|
|
26
|
+
|
|
27
|
+
weight: int | None = element(tag="weight", default=None, ge=0)
|
|
28
|
+
devices: list[BlkioDevice] = element(tag="device", default_factory=list)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ThrottleGroup(LibvirtXmlModel, tag="throttlegroup"):
|
|
32
|
+
"""``<throttlegroup>``: a named set of I/O limits shared by disks."""
|
|
33
|
+
|
|
34
|
+
group_name: str | None = element(tag="group_name", default=None)
|
|
35
|
+
total_bytes_sec: int | None = element(tag="total_bytes_sec", default=None, ge=0)
|
|
36
|
+
read_bytes_sec: int | None = element(tag="read_bytes_sec", default=None, ge=0)
|
|
37
|
+
write_bytes_sec: int | None = element(tag="write_bytes_sec", default=None, ge=0)
|
|
38
|
+
total_iops_sec: int | None = element(tag="total_iops_sec", default=None, ge=0)
|
|
39
|
+
read_iops_sec: int | None = element(tag="read_iops_sec", default=None, ge=0)
|
|
40
|
+
write_iops_sec: int | None = element(tag="write_iops_sec", default=None, ge=0)
|
|
41
|
+
total_bytes_sec_max: int | None = element(
|
|
42
|
+
tag="total_bytes_sec_max", default=None, ge=0
|
|
43
|
+
)
|
|
44
|
+
read_bytes_sec_max: int | None = element(
|
|
45
|
+
tag="read_bytes_sec_max", default=None, ge=0
|
|
46
|
+
)
|
|
47
|
+
write_bytes_sec_max: int | None = element(
|
|
48
|
+
tag="write_bytes_sec_max", default=None, ge=0
|
|
49
|
+
)
|
|
50
|
+
total_iops_sec_max: int | None = element(
|
|
51
|
+
tag="total_iops_sec_max", default=None, ge=0
|
|
52
|
+
)
|
|
53
|
+
read_iops_sec_max: int | None = element(tag="read_iops_sec_max", default=None, ge=0)
|
|
54
|
+
write_iops_sec_max: int | None = element(
|
|
55
|
+
tag="write_iops_sec_max", default=None, ge=0
|
|
56
|
+
)
|
|
57
|
+
size_iops_sec: int | None = element(tag="size_iops_sec", default=None, ge=0)
|
|
58
|
+
total_bytes_sec_max_length: int | None = element(
|
|
59
|
+
tag="total_bytes_sec_max_length", default=None, ge=0
|
|
60
|
+
)
|
|
61
|
+
read_bytes_sec_max_length: int | None = element(
|
|
62
|
+
tag="read_bytes_sec_max_length", default=None, ge=0
|
|
63
|
+
)
|
|
64
|
+
write_bytes_sec_max_length: int | None = element(
|
|
65
|
+
tag="write_bytes_sec_max_length", default=None, ge=0
|
|
66
|
+
)
|
|
67
|
+
total_iops_sec_max_length: int | None = element(
|
|
68
|
+
tag="total_iops_sec_max_length", default=None, ge=0
|
|
69
|
+
)
|
|
70
|
+
read_iops_sec_max_length: int | None = element(
|
|
71
|
+
tag="read_iops_sec_max_length", default=None, ge=0
|
|
72
|
+
)
|
|
73
|
+
write_iops_sec_max_length: int | None = element(
|
|
74
|
+
tag="write_iops_sec_max_length", default=None, ge=0
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class ThrottleGroups(LibvirtXmlModel, tag="throttlegroups"):
|
|
79
|
+
"""``<throttlegroups>``: the throttle groups of the domain. Since 9.0.0."""
|
|
80
|
+
|
|
81
|
+
groups: list[ThrottleGroup] = element(tag="throttlegroup", default_factory=list)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"""``<clock>``: guest time keeping.
|
|
2
|
+
|
|
3
|
+
``Clock`` and ``Timer`` are single models: their variants (by ``offset`` and by
|
|
4
|
+
timer ``name``) differ by one or two optional attributes only.
|
|
5
|
+
|
|
6
|
+
See https://libvirt.org/formatdomain.html#time-keeping
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import Literal
|
|
10
|
+
|
|
11
|
+
from pydantic_xml import attr, element
|
|
12
|
+
|
|
13
|
+
from libvirtpy.xml._base import LibvirtXmlModel
|
|
14
|
+
from libvirtpy.xml._types import YesNo
|
|
15
|
+
|
|
16
|
+
__all__ = ["Catchup", "Clock", "Timer"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class Catchup(LibvirtXmlModel, tag="catchup"):
|
|
20
|
+
"""``<catchup>``: how a ``tickpolicy='catchup'`` timer catches up."""
|
|
21
|
+
|
|
22
|
+
threshold: int | None = attr(name="threshold", default=None, ge=0)
|
|
23
|
+
slew: int | None = attr(name="slew", default=None, ge=0)
|
|
24
|
+
limit: int | None = attr(name="limit", default=None, ge=0)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class Timer(LibvirtXmlModel, tag="timer"):
|
|
28
|
+
"""``<timer>``: one guest timer device."""
|
|
29
|
+
|
|
30
|
+
name: Literal[
|
|
31
|
+
"platform",
|
|
32
|
+
"rtc",
|
|
33
|
+
"tsc",
|
|
34
|
+
"hpet",
|
|
35
|
+
"pit",
|
|
36
|
+
"armvtimer",
|
|
37
|
+
"kvmclock",
|
|
38
|
+
"hypervclock",
|
|
39
|
+
] = attr(name="name")
|
|
40
|
+
track: Literal["boot", "guest", "wall", "realtime"] | None = attr(
|
|
41
|
+
name="track", default=None, description="Only for ``platform`` and ``rtc``."
|
|
42
|
+
)
|
|
43
|
+
tickpolicy: Literal["delay", "catchup", "merge", "discard"] | None = attr(
|
|
44
|
+
name="tickpolicy", default=None
|
|
45
|
+
)
|
|
46
|
+
frequency: int | None = attr(
|
|
47
|
+
name="frequency", default=None, ge=0, description="Hz; only for ``tsc``."
|
|
48
|
+
)
|
|
49
|
+
mode: Literal["auto", "native", "emulate", "paravirt", "smpsafe"] | None = attr(
|
|
50
|
+
name="mode", default=None, description="Only for ``tsc``."
|
|
51
|
+
)
|
|
52
|
+
present: YesNo | None = attr(name="present", default=None)
|
|
53
|
+
catchup: Catchup | None = element(tag="catchup", default=None)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class Clock(LibvirtXmlModel, tag="clock"):
|
|
57
|
+
"""``<clock>``: how the guest clock is synchronized to the host."""
|
|
58
|
+
|
|
59
|
+
offset: Literal["localtime", "utc", "timezone", "variable", "absolute"] = attr(
|
|
60
|
+
name="offset"
|
|
61
|
+
)
|
|
62
|
+
adjustment: str | None = attr(
|
|
63
|
+
name="adjustment",
|
|
64
|
+
default=None,
|
|
65
|
+
description="Seconds to add, e.g. ``-3600``, or ``reset``. Kept as text.",
|
|
66
|
+
)
|
|
67
|
+
timezone: str | None = attr(
|
|
68
|
+
name="timezone", default=None, description="For ``offset='timezone'``."
|
|
69
|
+
)
|
|
70
|
+
basis: Literal["utc", "localtime"] | None = attr(
|
|
71
|
+
name="basis", default=None, description="For ``offset='variable'``."
|
|
72
|
+
)
|
|
73
|
+
start: int | None = attr(
|
|
74
|
+
name="start",
|
|
75
|
+
default=None,
|
|
76
|
+
ge=0,
|
|
77
|
+
description="Epoch seconds, for ``offset='absolute'``.",
|
|
78
|
+
)
|
|
79
|
+
timers: list[Timer] = element(tag="timer", default_factory=list)
|