One Hat Cyber Team
Your IP :
216.73.216.115
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
virt-manager
/
virtinst
/
domain
/
View File Name :
cputune.py
# Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. # # This work is licensed under the GNU GPLv2 or later. # See the COPYING file in the top-level directory. from ..xmlbuilder import XMLBuilder, XMLProperty, XMLChildProperty class _VCPUPin(XMLBuilder): """ Class for generating <cputune> child <vcpupin> XML """ XML_NAME = "vcpupin" _XML_PROP_ORDER = ["vcpu", "cpuset"] vcpu = XMLProperty("./@vcpu", is_int=True) cpuset = XMLProperty("./@cpuset") class _CacheCPU(XMLBuilder): """ Class for generating <cachetune> child <cache> XML """ XML_NAME = "cache" _XML_PROP_ORDER = ["level", "id", "type", "size", "unit"] level = XMLProperty("./@level", is_int=True) id = XMLProperty("./@id", is_int=True) type = XMLProperty("./@type") size = XMLProperty("./@size", is_int=True) unit = XMLProperty("./@unit") class _CacheTuneCPU(XMLBuilder): """ Class for generating <cputune> child <cachetune> XML """ XML_NAME = "cachetune" _XML_PROP_ORDER = ["vcpus", "caches"] vcpus = XMLProperty("./@vcpus") caches = XMLChildProperty(_CacheCPU) class _NodeCPU(XMLBuilder): """ Class for generating <memorytune> child <node> XML """ XML_NAME = "node" _XML_PROP_ORDER = ["id", "bandwidth"] id = XMLProperty("./@id", is_int=True) bandwidth = XMLProperty("./@bandwidth", is_int=True) class _MemoryTuneCPU(XMLBuilder): """ Class for generating <cputune> child <memorytune> XML """ XML_NAME = "memorytune" vcpus = XMLProperty("./@vcpus") nodes = XMLChildProperty(_NodeCPU) class DomainCputune(XMLBuilder): """ Class for generating <cpu> XML """ XML_NAME = "cputune" _XML_PROP_ORDER = ["vcpus", "cachetune", "memorytune"] vcpus = XMLChildProperty(_VCPUPin) cachetune = XMLChildProperty(_CacheTuneCPU) memorytune = XMLChildProperty(_MemoryTuneCPU)