diff --git a/README.md b/README.md index bb68227..1afaf9a 100644 --- a/README.md +++ b/README.md @@ -58,4 +58,6 @@ We do use Docker as part of our continuous build processes. However, we have cho ### Builds are slow. Can they be sped up? Virtualization is inherently slower than running on bare metal. We consider the speed overhead worth it for complete isolation of the build environment. However, if you are considering using repliqate for -something more speed-sensitive then you may want to consider enabling and using qemu with [kvm](https://wiki.qemu.org/Features/KVM) enabled. \ No newline at end of file +something more speed-sensitive then you may want to consider enabling and using qemu with [kvm](https://wiki.qemu.org/Features/KVM) enabled. + +Note: This is now enabled by default. To disable kvm acceleration see the note in `src/main.rs` diff --git a/src/main.rs b/src/main.rs index fdfa47e..fa05514 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,6 +63,7 @@ impl QemuProcess { "nic", "-net", "user", + // comment out the below line to disable kvm acceleration "-accel","kvm", "-drive", format!("if=virtio,format=qcow2,file={}", path).as_str(),