guest: fix order in _XML_PROP_ORDER
re-order xml values according to libvirt code. a) move "blkiotune" "memtune" ahead of "memoryBacking" b) move "resource" ahead of "pm" Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
parent
be63db61ad
commit
d3d76beb5b
|
@ -3,10 +3,6 @@
|
|||
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||
<memory>65536</memory>
|
||||
<currentMemory>65536</currentMemory>
|
||||
<vcpu>1</vcpu>
|
||||
<numatune>
|
||||
<memory mode="preferred" nodeset="1-3,5"/>
|
||||
</numatune>
|
||||
<blkiotune>
|
||||
<weight>200</weight>
|
||||
<device>
|
||||
|
@ -14,6 +10,10 @@
|
|||
<weight>300</weight>
|
||||
</device>
|
||||
</blkiotune>
|
||||
<vcpu>1</vcpu>
|
||||
<numatune>
|
||||
<memory mode="preferred" nodeset="1-3,5"/>
|
||||
</numatune>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/foo/bar</loader>
|
||||
|
@ -148,10 +148,6 @@
|
|||
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||
<memory>65536</memory>
|
||||
<currentMemory>65536</currentMemory>
|
||||
<vcpu>1</vcpu>
|
||||
<numatune>
|
||||
<memory mode="preferred" nodeset="1-3,5"/>
|
||||
</numatune>
|
||||
<blkiotune>
|
||||
<weight>200</weight>
|
||||
<device>
|
||||
|
@ -159,6 +155,10 @@
|
|||
<weight>300</weight>
|
||||
</device>
|
||||
</blkiotune>
|
||||
<vcpu>1</vcpu>
|
||||
<numatune>
|
||||
<memory mode="preferred" nodeset="1-3,5"/>
|
||||
</numatune>
|
||||
<os>
|
||||
<type arch="i686">hvm</type>
|
||||
<loader>/foo/bar</loader>
|
||||
|
|
|
@ -81,20 +81,6 @@
|
|||
</seclabel>
|
||||
<title>Hey title changed!</title>
|
||||
<description>Hey desc changed&</description>
|
||||
<memoryBacking>
|
||||
<hugepages/>
|
||||
<nosharepages/>
|
||||
<locked/>
|
||||
</memoryBacking>
|
||||
<resource>
|
||||
<partition>/virtualmachines/production</partition>
|
||||
</resource>
|
||||
<memtune>
|
||||
<hard_limit>2048</hard_limit>
|
||||
<soft_limit>200</soft_limit>
|
||||
<swap_hard_limit>400</swap_hard_limit>
|
||||
<min_guarantee>500</min_guarantee>
|
||||
</memtune>
|
||||
<blkiotune>
|
||||
<weight>200</weight>
|
||||
<device>
|
||||
|
@ -102,9 +88,23 @@
|
|||
<weight>300</weight>
|
||||
</device>
|
||||
</blkiotune>
|
||||
<memtune>
|
||||
<hard_limit>2048</hard_limit>
|
||||
<soft_limit>200</soft_limit>
|
||||
<swap_hard_limit>400</swap_hard_limit>
|
||||
<min_guarantee>500</min_guarantee>
|
||||
</memtune>
|
||||
<memoryBacking>
|
||||
<hugepages/>
|
||||
<nosharepages/>
|
||||
<locked/>
|
||||
</memoryBacking>
|
||||
<bootloader>pygrub</bootloader>
|
||||
<idmap>
|
||||
<uid start="0" target="1000" count="10"/>
|
||||
<gid start="0" target="1000" count="10"/>
|
||||
</idmap>
|
||||
<resource>
|
||||
<partition>/virtualmachines/production</partition>
|
||||
</resource>
|
||||
</domain>
|
||||
|
|
|
@ -94,9 +94,9 @@ class Guest(XMLBuilder):
|
|||
|
||||
_XML_ROOT_NAME = "domain"
|
||||
_XML_PROP_ORDER = ["type", "name", "uuid", "title", "description",
|
||||
"maxmemory", "memory", "memoryBacking", "vcpus", "resource", "curvcpus",
|
||||
"memtune", "numatune", "blkiotune", "bootloader", "os", "idmap",
|
||||
"features", "cpu", "clock", "on_poweroff", "on_reboot", "on_crash", "pm",
|
||||
"maxmemory", "memory", "blkiotune", "memtune", "memoryBacking",
|
||||
"vcpus", "curvcpus", "numatune", "bootloader", "os", "idmap", "features",
|
||||
"cpu", "clock", "on_poweroff", "on_reboot", "on_crash", "resource", "pm",
|
||||
"emulator", "_devices", "seclabel"]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue