Replace '-enable-kvm' with '-accel kvm' in docs and help texts

The preferred way to select the KVM accelerator is to use "-accel kvm"
these days, so let's be consistent in our documentation and help texts.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1528866321-23886-3-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Thomas Huth 2018-06-13 07:05:19 +02:00 committed by Paolo Bonzini
parent 1fcc6d42e7
commit a1d30f285e
7 changed files with 16 additions and 16 deletions

View File

@ -113,16 +113,16 @@ by using 'x-colo-lost-heartbeat' command.
== Test procedure == == Test procedure ==
1. Startup qemu 1. Startup qemu
Primary: Primary:
# qemu-kvm -enable-kvm -m 2048 -smp 2 -qmp stdio -vnc :7 -name primary \ # qemu-system-x86_64 -accel kvm -m 2048 -smp 2 -qmp stdio -name primary \
-device piix3-usb-uhci \ -device piix3-usb-uhci -vnc :7 \
-device usb-tablet -netdev tap,id=hn0,vhost=off \ -device usb-tablet -netdev tap,id=hn0,vhost=off \
-device virtio-net-pci,id=net-pci0,netdev=hn0 \ -device virtio-net-pci,id=net-pci0,netdev=hn0 \
-drive if=virtio,id=primary-disk0,driver=quorum,read-pattern=fifo,vote-threshold=1,\ -drive if=virtio,id=primary-disk0,driver=quorum,read-pattern=fifo,vote-threshold=1,\
children.0.file.filename=1.raw,\ children.0.file.filename=1.raw,\
children.0.driver=raw -S children.0.driver=raw -S
Secondary: Secondary:
# qemu-kvm -enable-kvm -m 2048 -smp 2 -qmp stdio -vnc :7 -name secondary \ # qemu-system-x86_64 -accel kvm -m 2048 -smp 2 -qmp stdio -name secondary \
-device piix3-usb-uhci \ -device piix3-usb-uhci -vnc :7 \
-device usb-tablet -netdev tap,id=hn0,vhost=off \ -device usb-tablet -netdev tap,id=hn0,vhost=off \
-device virtio-net-pci,id=net-pci0,netdev=hn0 \ -device virtio-net-pci,id=net-pci0,netdev=hn0 \
-drive if=none,id=secondary-disk0,file.filename=1.raw,driver=raw,node-name=node0 \ -drive if=none,id=secondary-disk0,file.filename=1.raw,driver=raw,node-name=node0 \

View File

@ -52,7 +52,7 @@ The ''kvaser_pci'' board/device model is compatible with and has been tested wit
The tested setup was Linux 4.9 kernel on the host and guest side. The tested setup was Linux 4.9 kernel on the host and guest side.
Example for qemu-system-x86_64: Example for qemu-system-x86_64:
qemu-system-x86_64 -enable-kvm -kernel /boot/vmlinuz-4.9.0-4-amd64 \ qemu-system-x86_64 -accel kvm -kernel /boot/vmlinuz-4.9.0-4-amd64 \
-initrd ramdisk.cpio \ -initrd ramdisk.cpio \
-virtfs local,path=shareddir,security_model=none,mount_tag=shareddir \ -virtfs local,path=shareddir,security_model=none,mount_tag=shareddir \
-object can-bus,id=canbus0 \ -object can-bus,id=canbus0 \

View File

@ -62,7 +62,7 @@ RAM: 128G
NIC: Intel I350 (10/100/1000Mbps) NIC: Intel I350 (10/100/1000Mbps)
Host OS: CentOS 7 64-bit Host OS: CentOS 7 64-bit
Guest OS: RHEL 6.5 64-bit Guest OS: RHEL 6.5 64-bit
Parameter: qemu-system-x86_64 -enable-kvm -smp 4 -m 4096 Parameter: qemu-system-x86_64 -accel kvm -smp 4 -m 4096
/share/ia32e_rhel6u5.qcow -monitor stdio /share/ia32e_rhel6u5.qcow -monitor stdio
There is no additional application is running on the guest when doing There is no additional application is running on the guest when doing

View File

@ -18,7 +18,7 @@ or
Next put together the qemu command line (sdk/gtk): Next put together the qemu command line (sdk/gtk):
qemu -enable-kvm -usb $memory $disk $whatever \ qemu -accel kvm -usb $memory $disk $whatever \
-display [ sdl | gtk ] \ -display [ sdl | gtk ] \
-vga std \ -vga std \
-device usb-tablet -device usb-tablet

View File

@ -98,7 +98,7 @@ QEMU files related to the TPM passthrough device:
Command line to start QEMU with the TPM passthrough device using the host's Command line to start QEMU with the TPM passthrough device using the host's
hardware TPM /dev/tpm0: hardware TPM /dev/tpm0:
qemu-system-x86_64 -display sdl -enable-kvm \ qemu-system-x86_64 -display sdl -accel kvm \
-m 1024 -boot d -bios bios-256k.bin -boot menu=on \ -m 1024 -boot d -bios bios-256k.bin -boot menu=on \
-tpmdev passthrough,id=tpm0,path=/dev/tpm0 \ -tpmdev passthrough,id=tpm0,path=/dev/tpm0 \
-device tpm-tis,tpmdev=tpm0 test.img -device tpm-tis,tpmdev=tpm0 test.img
@ -164,7 +164,7 @@ swtpm socket --tpmstate dir=/tmp/mytpm1 \
Command line to start QEMU with the TPM emulator device communicating with Command line to start QEMU with the TPM emulator device communicating with
the swtpm: the swtpm:
qemu-system-x86_64 -display sdl -enable-kvm \ qemu-system-x86_64 -display sdl -accel kvm \
-m 1024 -boot d -bios bios-256k.bin -boot menu=on \ -m 1024 -boot d -bios bios-256k.bin -boot menu=on \
-chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \ -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
-tpmdev emulator,id=tpm0,chardev=chrtpm \ -tpmdev emulator,id=tpm0,chardev=chrtpm \
@ -222,7 +222,7 @@ swtpm socket --tpmstate dir=/tmp/mytpm1 \
In a 2nd terminal start the VM: In a 2nd terminal start the VM:
qemu-system-x86_64 -display sdl -enable-kvm \ qemu-system-x86_64 -display sdl -accel kvm \
-m 1024 -boot d -bios bios-256k.bin -boot menu=on \ -m 1024 -boot d -bios bios-256k.bin -boot menu=on \
-chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \ -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
-tpmdev emulator,id=tpm0,chardev=chrtpm \ -tpmdev emulator,id=tpm0,chardev=chrtpm \
@ -255,7 +255,7 @@ swtpm socket --tpmstate dir=/tmp/mytpm1 \
In the 2nd terminal restore the state of the VM using the additonal In the 2nd terminal restore the state of the VM using the additonal
'-incoming' option. '-incoming' option.
qemu-system-x86_64 -display sdl -enable-kvm \ qemu-system-x86_64 -display sdl -accel kvm \
-m 1024 -boot d -bios bios-256k.bin -boot menu=on \ -m 1024 -boot d -bios bios-256k.bin -boot menu=on \
-chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \ -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock \
-tpmdev emulator,id=tpm0,chardev=chrtpm \ -tpmdev emulator,id=tpm0,chardev=chrtpm \

View File

@ -190,8 +190,8 @@ int virtio_blk_data_plane_start(VirtIODevice *vdev)
/* Set up guest notifier (irq) */ /* Set up guest notifier (irq) */
r = k->set_guest_notifiers(qbus->parent, nvqs, true); r = k->set_guest_notifiers(qbus->parent, nvqs, true);
if (r != 0) { if (r != 0) {
fprintf(stderr, "virtio-blk failed to set guest notifier (%d), " error_report("virtio-blk failed to set guest notifier (%d), "
"ensure -enable-kvm is set\n", r); "ensure -accel kvm is set.", r);
goto fail_guest_notifiers; goto fail_guest_notifiers;
} }

View File

@ -142,8 +142,8 @@ int virtio_scsi_dataplane_start(VirtIODevice *vdev)
/* Set up guest notifier (irq) */ /* Set up guest notifier (irq) */
rc = k->set_guest_notifiers(qbus->parent, vs->conf.num_queues + 2, true); rc = k->set_guest_notifiers(qbus->parent, vs->conf.num_queues + 2, true);
if (rc != 0) { if (rc != 0) {
fprintf(stderr, "virtio-scsi: Failed to set guest notifiers (%d), " error_report("virtio-scsi: Failed to set guest notifiers (%d), "
"ensure -enable-kvm is set\n", rc); "ensure -accel kvm is set.", rc);
goto fail_guest_notifiers; goto fail_guest_notifiers;
} }