]> gitweb.fluxo.info Git - kvm-manager.git/commitdiff
use cache=none to avoid data copies and bus traffic (see https://support.mayfirst...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 7 Oct 2013 20:14:52 +0000 (16:14 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 7 Oct 2013 20:14:52 +0000 (16:14 -0400)
kvm-manager

index 574737b5e86a90eb78b424f9dea1adacc0d9ca06..8cbd974a23324471128962c7a90b101a0fdbeb85 100755 (executable)
@@ -71,11 +71,11 @@ up() {
 
     index=0
     # set up the disks, if needed:
-    [ -z "$HDA" ] || KVMARGS="$KVMARGS -drive file=$HDA,if=virtio,index=$index,format=raw$first_disk_extra_args"
+    [ -z "$HDA" ] || KVMARGS="$KVMARGS -drive file=$HDA,if=virtio,cache=none,index=$index,format=raw$first_disk_extra_args"
     # loop here on everything after HDA:
     for disk in HD{B..Z}; do
        index=$(( $index + 1 ))
-       [ \! -b "${!disk}" ] || KVMARGS="$KVMARGS -drive file=${!disk},if=virtio,index=$index,format=raw"
+       [ \! -b "${!disk}" ] || KVMARGS="$KVMARGS -drive file=${!disk},if=virtio,cache=none,index=$index,format=raw"
     done
 
     LOGNAME="$OWNERHOME/vms/$VMNAME/console"