aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2013-10-07 16:14:52 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2013-10-07 16:14:52 -0400
commitb45082f02abb2790a5f6c1ff46dbd9232d3b6cb5 (patch)
treec2e3a0d4692c27156a3bb42a54befbe9200303b5
parent506faaf476efe158dd3226f29460b5e02313f726 (diff)
downloadkvm-manager-b45082f02abb2790a5f6c1ff46dbd9232d3b6cb5.tar.gz
kvm-manager-b45082f02abb2790a5f6c1ff46dbd9232d3b6cb5.tar.bz2
use cache=none to avoid data copies and bus traffic (see https://support.mayfirst.org/ticket/7904)
-rwxr-xr-xkvm-manager4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvm-manager b/kvm-manager
index 574737b..8cbd974 100755
--- a/kvm-manager
+++ b/kvm-manager
@@ -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"