Fix automatic memory assignment.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 1 Feb 2008 20:50:02 +0000 (20:50 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 1 Feb 2008 20:50:02 +0000 (20:50 +0000)
virt-p2v.ml

index 7801a21..a6ff2f0 100755 (executable)
@@ -1078,8 +1078,8 @@ MAC address:  %s"
     | Some arch -> arch in
   let memory =
     match state.memory with
-    | Some memory -> memory
-    | None -> system_memory in
+    | Some 0 | None -> system_memory
+    | Some memory -> memory in
   let vcpus =
     match state.vcpus with
     | Some 0 | None -> system_nr_cpus