Now that virtio driver copying is localized in a single function and the
auxiliary guestfs handle doesn't leak outside of it (and thus an extra
qemu instance doesn't survive beyond that function's runtime) there's no
need in the forced GC which used to trigger closing of that handle and
termination of that qemu instance.
Signed-off-by: Roman Kagan <rkagan(a)virtuozzo.com>
---
no changes since v2
changes since v1:
- former patch #1
v2v/v2v.ml | 8 --------
1 file changed, 8 deletions(-)
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 4d621b8..fe16131 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -319,14 +319,6 @@ let rec main () =
if verbose () then
printf "%s%!" (string_of_target_buses target_buses);
- (* Force a GC here, to ensure that we're using the minimum resources
- * as we go into the copy stage. The particular reason is that
- * Windows conversion may have opened a second libguestfs handle
- * pointing to the virtio-win ISO, which is only closed when the
- * handle is GC'd.
- *)
- Gc.compact ();
-
let delete_target_on_exit = ref true in
let targets =
--
2.4.3