From b45082f02abb2790a5f6c1ff46dbd9232d3b6cb5 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 7 Oct 2013 16:14:52 -0400 Subject: use cache=none to avoid data copies and bus traffic (see https://support.mayfirst.org/ticket/7904) --- kvm-manager | 4 ++-- 1 file 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" -- cgit v1.2.3