libvirt/src/qemu
Martin Kletzander 037a49dc66 Make non-KVM machines work with QMP probing
When there is no 'qemu-kvm' binary and the emulator used for a machine
is, for example, 'qemu-system-x86_64' that, by default, runs without
kvm enabled, libvirt still supplies '-no-kvm' option to this process,
even though it does not recognize such option (making the start of a
domain fail in that case).

This patch fixes building a command-line for QEMU machines without KVM
acceleration and is based on following assumptions:

 - QEMU_CAPS_KVM flag means that QEMU is running KVM accelerated
   machines by default (without explicitly requesting that using a
   command-line option).  It is the closest to the truth according to
   the code with the only exception being the comment next to the
   flag, so it's fixed in this patch as well.

 - QEMU_CAPS_ENABLE_KVM flag means that QEMU is, by default, running
   without KVM acceleration and in case we need KVM acceleration it
   needs to be explicitly instructed to do so.  This is partially
   true for the past (this option essentially means that QEMU
   recognizes the '-enable-kvm' option, even though it's almost the
   same).
2012-10-31 08:31:49 +01:00
..
libvirtd_qemu.aug qemu: conf: add seccomp_sandbox option 2012-09-18 15:43:28 +08:00
MIGRATION.txt qemu: Implement migration job phases 2011-07-27 08:45:09 -06:00
qemu_agent.c Move virProcessKill into virprocess.{h,c} 2012-09-26 10:09:57 +01:00
qemu_agent.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_bridge_filter.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_bridge_filter.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_capabilities.c Make non-KVM machines work with QMP probing 2012-10-31 08:31:49 +01:00
qemu_capabilities.h Make non-KVM machines work with QMP probing 2012-10-31 08:31:49 +01:00
qemu_cgroup.c qemu: Keep the affinity when creating cgroup for emulator thread 2012-10-24 21:46:24 +08:00
qemu_cgroup.h qemu: Keep the affinity when creating cgroup for emulator thread 2012-10-24 21:46:24 +08:00
qemu_command.c qemu: pass -usb and usb hubs earlier, so USB disks with static address are handled properly 2012-10-30 08:54:32 +01:00
qemu_command.h Remove probing of machine types when canonicalizing XML 2012-09-27 10:24:52 +01:00
qemu_conf.c Various typos and misspellings 2012-10-12 00:03:43 +02:00
qemu_conf.h locking: Pass hypervisor driver name when acquiring locks 2012-10-11 14:41:42 +02:00
qemu_domain.c xml: print uuids in the warning 2012-10-29 14:38:43 +01:00
qemu_domain.h storage: cache backing chain while qemu domain is live 2012-10-19 17:35:10 -06:00
qemu_driver.c qemu: Report errors from iohelper 2012-10-29 17:04:26 +01:00
qemu_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_hostdev.c qemu: Make save/restore with USB devices usable 2012-10-11 15:11:42 +02:00
qemu_hostdev.h qemu: Implement startupPolicy for USB passed through devices 2012-10-11 15:11:42 +02:00
qemu_hotplug.c blockjob: react to active block copy 2012-10-27 07:43:38 -06:00
qemu_hotplug.h qemu: reorganize qemuDomainChangeNet and qemuDomainChangeNetBridge 2012-10-15 04:36:39 -04:00
qemu_migration.c Revert "qemu: Do not require hostuuid in migration cookie" 2012-10-29 09:04:27 +01:00
qemu_migration.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_monitor_json.c Make non-KVM machines work with QMP probing 2012-10-31 08:31:49 +01:00
qemu_monitor_json.h Make non-KVM machines work with QMP probing 2012-10-31 08:31:49 +01:00
qemu_monitor_text.c Various typos and misspellings 2012-10-12 00:03:43 +02:00
qemu_monitor_text.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
qemu_monitor.c Make non-KVM machines work with QMP probing 2012-10-31 08:31:49 +01:00
qemu_monitor.h Make non-KVM machines work with QMP probing 2012-10-31 08:31:49 +01:00
qemu_process.c build: typo fix for qemu cpu affinity 2012-10-27 08:09:51 -06:00
qemu_process.h qemu: Add helper to prepare cpumap for affinity setting 2012-10-24 21:24:10 +08:00
qemu.conf doc: update description about user/group in qemu.conf 2012-10-09 08:38:36 -06:00
test_libvirtd_qemu.aug.in Fix the augea test for qemu libvirtd options 2012-09-18 16:28:43 +08:00
THREADS.txt qemu: fix crash when mixing sync and async monitor jobs 2011-08-01 09:41:57 -06:00