Disable populate-on-demand for HVMs. 0.0.44
authorQuentin Smith <quentin@mit.edu>
Sun, 21 Jul 2013 17:15:04 +0000 (13:15 -0400)
committerQuentin Smith <quentin@mit.edu>
Sun, 21 Jul 2013 17:15:25 +0000 (13:15 -0400)
debian/changelog
invirt-database

index b9f370a..6a51dc2 100644 (file)
@@ -1,3 +1,9 @@
+invirt-xen-config (0.0.44) unstable; urgency=low
+
+  * Disable populate-on-demand for HVMs.
+
+ -- Quentin Smith <quentin@mit.edu>  Sun, 21 Jul 2013 13:14:53 -0400
+
 invirt-xen-config (0.0.43+nmu1) precise; urgency=low
 
   * Use config-package-dev.
 invirt-xen-config (0.0.43+nmu1) precise; urgency=low
 
   * Use config-package-dev.
index 599d0b7..095fe4d 100644 (file)
@@ -23,7 +23,11 @@ if 'cdrom_image' in locals():
     check(cdrom is not None)
 
 memory = machine.memory
     check(cdrom is not None)
 
 memory = machine.memory
-maxmem = '2048'
+if machine_type.hvm:
+    # Disable populate-on-demand
+    maxmem = memory
+else:
+    maxmem = '2048'
 check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name))
 name = prefix + machine_name
 check(re.match('^[0-9a-f-]+$', machine.uuid))
 check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name))
 name = prefix + machine_name
 check(re.match('^[0-9a-f-]+$', machine.uuid))