remove memoryBacking parameters from --memory
Remove some "Memory Backing" parameters from --memory, and keep 'hugepages' for backward compatibility. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
parent
8562c3258e
commit
58a07d04fb
|
@ -470,7 +470,6 @@ c.add_valid("--numatune 1,2,3,5-7,^6") # Simple --numatune
|
|||
c.add_valid("--numatune 1-3,4,mode=strict") # More complex, parser should do the right thing here
|
||||
c.add_valid("--blkiotune weight=100,device_path=/home/test/1.img,device_weight=200") # --blkiotune
|
||||
c.add_valid("--memtune hard_limit=10,soft_limit=20,swap_hard_limit=30,min_guarantee=40") # --memtune
|
||||
c.add_valid("--memory 500,maxmemory=1000,hugepages=off,nosharepages=yes,locked=yes") # --memory nosharepages,locked
|
||||
c.add_valid("--idmap uid_start=0,uid_target=1000,uid_count=10,gid_start=0,gid_target=1000,gid_count=10") # --idmap
|
||||
c.add_compare("--connect %(DEFAULTURI)s --cpuset auto --vcpus 2", "cpuset-auto") # --cpuset=auto actually works
|
||||
c.add_invalid("--vcpus 32 --cpuset=969-1000") # Bogus cpuset
|
||||
|
|
|
@ -80,8 +80,6 @@
|
|||
<description>Hey desc changed&</description>
|
||||
<memoryBacking>
|
||||
<hugepages/>
|
||||
<nosharepages/>
|
||||
<locked/>
|
||||
</memoryBacking>
|
||||
<memtune>
|
||||
<hard_limit>2048</hard_limit>
|
||||
|
|
|
@ -115,8 +115,6 @@ class XMLParseTest(unittest.TestCase):
|
|||
"11111111-2222-3333-4444-555555555555")
|
||||
check("emulator", "/usr/lib/xen/bin/qemu-dm", "/usr/binnnn/fooemu")
|
||||
check("hugepage", False, True)
|
||||
check("nosharepages", False, True)
|
||||
check("locked", False, True)
|
||||
check("type", "kvm", "test")
|
||||
check("bootloader", None, "pygrub")
|
||||
check("on_poweroff", "destroy", "restart")
|
||||
|
|
|
@ -1248,8 +1248,6 @@ class ParserMemory(VirtCLIParser):
|
|||
self.set_param("memory", "memory", setter_cb=set_memory_cb)
|
||||
self.set_param("maxmemory", "maxmemory", setter_cb=set_memory_cb)
|
||||
self.set_param("hugepage", "hugepages", is_onoff=True)
|
||||
self.set_param("nosharepages", "nosharepages", is_onoff=True)
|
||||
self.set_param("locked", "locked", is_onoff=True)
|
||||
|
||||
|
||||
#####################
|
||||
|
|
|
@ -175,8 +175,6 @@ class Guest(XMLBuilder):
|
|||
id = XMLProperty("./@id", is_int=True)
|
||||
type = XMLProperty("./@type", default_cb=lambda s: "xen")
|
||||
hugepage = XMLProperty("./memoryBacking/hugepages", is_bool=True)
|
||||
nosharepages = XMLProperty("./memoryBacking/nosharepages", is_bool=True)
|
||||
locked = XMLProperty("./memoryBacking/locked", is_bool=True)
|
||||
bootloader = XMLProperty("./bootloader")
|
||||
description = XMLProperty("./description")
|
||||
title = XMLProperty("./title")
|
||||
|
|
Loading…
Reference in New Issue