[PATCH] [Kimchi] Bug fix: Use 256MB of memory on feature tests due restriction on Power machines

On Power machines the amount of memory must be aligned with 256MB. So adjust all feature tests according to it to avoid issues. Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com> --- model/featuretests.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/model/featuretests.py b/model/featuretests.py index ba728e1..23e7eeb 100644 --- a/model/featuretests.py +++ b/model/featuretests.py @@ -34,7 +34,7 @@ FEATURETEST_POOL_NAME = "FEATURETEST_POOL" ISO_STREAM_XML = """ <domain type='%(domain)s'> <name>%(name)s</name> - <memory unit='KiB'>1048576</memory> + <memory unit='MiB'>256</memory> <os> <type arch='%(arch)s'>hvm</type> <boot dev='cdrom'/> @@ -56,7 +56,7 @@ ISO_STREAM_XML = """ SIMPLE_VM_XML = """ <domain type='%(domain)s'> <name>%(name)s</name> - <memory unit='KiB'>10240</memory> + <memory unit='MiB'>256</memory> <os> <type arch='%(arch)s'>hvm</type> <boot dev='hd'/> @@ -66,15 +66,15 @@ SIMPLE_VM_XML = """ MAXMEM_VM_XML = """ <domain type='%(domain)s'> <name>%(name)s</name> - <maxMemory slots='1' unit='KiB'>20480</maxMemory> - <memory unit='KiB'>10240</memory> + <maxMemory slots='1' unit='MiB'>512</maxMemory> + <memory unit='MiB'>256</memory> <os> <type arch='%(arch)s'>hvm</type> <boot dev='hd'/> </os> <cpu> <numa> - <cell id='0' cpus='0' memory='10240' unit='KiB'/> + <cell id='0' cpus='0' memory='256' unit='MiB'/> </numa> </cpu> <features> @@ -85,7 +85,7 @@ MAXMEM_VM_XML = """ DEV_MEM_XML = """ <memory model='dimm'> <target> - <size unit='KiB'>10240</size> + <size unit='MiB'>256</size> <node>0</node> </target> </memory>""" -- 2.5.5

Reviewed-by: Paulo Vital <pvital@linux.vnet.ibm.com> On Apr 06 01:12PM, Aline Manera wrote:
On Power machines the amount of memory must be aligned with 256MB. So adjust all feature tests according to it to avoid issues.
Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com> --- model/featuretests.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/model/featuretests.py b/model/featuretests.py index ba728e1..23e7eeb 100644 --- a/model/featuretests.py +++ b/model/featuretests.py @@ -34,7 +34,7 @@ FEATURETEST_POOL_NAME = "FEATURETEST_POOL" ISO_STREAM_XML = """ <domain type='%(domain)s'> <name>%(name)s</name> - <memory unit='KiB'>1048576</memory> + <memory unit='MiB'>256</memory> <os> <type arch='%(arch)s'>hvm</type> <boot dev='cdrom'/> @@ -56,7 +56,7 @@ ISO_STREAM_XML = """ SIMPLE_VM_XML = """ <domain type='%(domain)s'> <name>%(name)s</name> - <memory unit='KiB'>10240</memory> + <memory unit='MiB'>256</memory> <os> <type arch='%(arch)s'>hvm</type> <boot dev='hd'/> @@ -66,15 +66,15 @@ SIMPLE_VM_XML = """ MAXMEM_VM_XML = """ <domain type='%(domain)s'> <name>%(name)s</name> - <maxMemory slots='1' unit='KiB'>20480</maxMemory> - <memory unit='KiB'>10240</memory> + <maxMemory slots='1' unit='MiB'>512</maxMemory> + <memory unit='MiB'>256</memory> <os> <type arch='%(arch)s'>hvm</type> <boot dev='hd'/> </os> <cpu> <numa> - <cell id='0' cpus='0' memory='10240' unit='KiB'/> + <cell id='0' cpus='0' memory='256' unit='MiB'/> </numa> </cpu> <features> @@ -85,7 +85,7 @@ MAXMEM_VM_XML = """ DEV_MEM_XML = """ <memory model='dimm'> <target> - <size unit='KiB'>10240</size> + <size unit='MiB'>256</size> <node>0</node> </target> </memory>""" -- 2.5.5
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Paulo Ricardo Paz Vital Linux Technology Center, IBM Systems http://www.ibm.com/linux/ltc/
participants (2)
-
Aline Manera
-
Paulo Ricardo Paz Vital