libvirt/src/qemu
Cole Robinson 05583fcb37 qemu: command: rework adding of default cpu model
Certain XML features that aren't in the <cpu> block map to -cpu
flags on the qemu cli. If one of these is specified but the user
didn't explicitly pass an XML <cpu> model, we need to format a
default model on the command line.

The current code handles this by sprinkling this default cpu handling
among all the different flag string formatting. Instead, switch it
to do this just once.

This alters some test output slightly: the previous code would
write the default -cpu in some cases when no flags were actually
added, so the output was redundant.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2017-08-03 11:54:37 -04:00
..
EVENTHANDLERS.txt qemu/doc: Fix function name for handling events 2017-06-13 09:43:42 +02:00
libvirtd_qemu.aug conf: Introduce migrate_tls_x509_cert_dir 2017-03-25 08:19:49 -04:00
MIGRATION.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_agent.c Fix minor typos 2017-04-24 14:40:00 +02:00
qemu_agent.h qemu: agent: Make setting of vcpus more robust 2016-06-22 09:26:08 +02:00
qemu_alias.c qemu: refactor qemuDomainMachine* functions 2017-04-18 13:27:11 +02:00
qemu_alias.h qemu: Rename qemuAliasTLSObjFromChardevAlias 2017-02-22 06:31:40 -05:00
qemu_block.c qemu: block: store and test driver names for detected storage nodes 2017-07-27 09:56:41 +02:00
qemu_block.h qemu: block: store and test driver names for detected storage nodes 2017-07-27 09:56:41 +02:00
qemu_blockjob.c qemu: take current async job into account in qemuBlockNodeNamesDetect 2017-04-27 14:38:29 +02:00
qemu_blockjob.h qemu: take current async job into account in qemuBlockNodeNamesDetect 2017-04-27 14:38:29 +02:00
qemu_capabilities.c Add support for virtio-net.tx_queue_size 2017-08-02 15:37:09 +02:00
qemu_capabilities.h Add support for virtio-net.tx_queue_size 2017-08-02 15:37:09 +02:00
qemu_capspriv.h qemu: privatize _virQEMUCapsCachePriv struct 2017-07-26 15:36:47 +02:00
qemu_cgroup.c qemu_cgroup: Remove unnecessary virQEMUDriverPtr arguments 2017-07-26 17:47:25 +02:00
qemu_cgroup.h qemu_cgroup: Remove unnecessary virQEMUDriverPtr arguments 2017-07-26 17:47:25 +02:00
qemu_command.c qemu: command: rework adding of default cpu model 2017-08-03 11:54:37 -04:00
qemu_command.h qemu: Allow qemuBuildControllerDevStr() to return NULL 2017-07-15 14:50:42 +02:00
qemu_conf.c qemu: Check for existence of provided *_tls_x509_cert_dir 2017-08-02 15:51:50 -04:00
qemu_conf.h qemu: Check for existence of provided *_tls_x509_cert_dir 2017-08-02 15:51:50 -04:00
qemu_domain_address.c conf: Rename virDomainControllerIsPCIHostBridge() to IsPSeriesPHB() 2017-07-25 09:42:38 +02:00
qemu_domain_address.h qemu: Isolate hostdevs on pSeries guests 2017-07-18 09:00:13 +02:00
qemu_domain.c Add support for virtio-net.tx_queue_size 2017-08-02 15:37:09 +02:00
qemu_domain.h Move machineName generation from virsystemd into domain_conf 2017-07-25 17:02:27 +02:00
qemu_driver.c qemu: Check for existence of provided *_tls_x509_cert_dir 2017-08-02 15:51:50 -04:00
qemu_driver.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
qemu_hostdev.c qemu: Fix mdev checking for VFIO support 2017-04-12 12:57:39 +02:00
qemu_hostdev.h hostdev: Maintain a driver list of active mediated devices 2017-03-27 15:39:35 +02:00
qemu_hotplug.c Handle hotplug change on VLAN configuration using OVS 2017-07-20 15:15:03 +02:00
qemu_hotplug.h qemu: hotplug: Unexport qemuDomainHotplugDelVcpu 2017-04-20 10:46:44 +02:00
qemu_hotplugpriv.h qemu: Let tests override waiting time for device unplug 2013-08-26 16:09:55 +02:00
qemu_interface.c Revert "qemu: propagate bridge MTU into qemu "host_mtu" option" 2017-05-22 12:57:34 -04:00
qemu_interface.h Revert "qemu: propagate bridge MTU into qemu "host_mtu" option" 2017-05-22 12:57:34 -04:00
qemu_migration_cookie.c qemu: Send updated CPU in migration cookie 2017-06-07 13:36:02 +02:00
qemu_migration_cookie.h qemu: Send updated CPU in migration cookie 2017-06-07 13:36:02 +02:00
qemu_migration.c qemu: shared disks with cache=directsync should be safe for migration 2017-07-20 10:17:18 +01:00
qemu_migration.h qemu: Simplify qemuMigrationResetTLS 2017-04-07 13:43:37 +02:00
qemu_monitor_json.c qemu: monitor: Extract call of 'query-blockstats' and add new API for it 2017-07-27 09:25:26 +02:00
qemu_monitor_json.h qemu: monitor: Extract call of 'query-blockstats' and add new API for it 2017-07-27 09:25:26 +02:00
qemu_monitor_text.c qemuMonitorTextAddDrive: Fail on unrecognized disk format 2017-06-25 16:22:40 +02:00
qemu_monitor_text.h qemu: monitor: Return struct from qemuMonitor(Text|Json)QueryCPUs 2016-08-24 15:44:47 -04:00
qemu_monitor.c qemu: monitor: Extract call of 'query-blockstats' and add new API for it 2017-07-27 09:25:26 +02:00
qemu_monitor.h qemu: monitor: Extract call of 'query-blockstats' and add new API for it 2017-07-27 09:25:26 +02:00
qemu_parse_command.c virStorageNetHostDef: Turn @port into integer 2017-07-24 10:55:44 +02:00
qemu_parse_command.h qemu: parse: rename qemuCaps->caps 2016-02-19 09:45:23 -05:00
qemu_process.c qemu: Split shmem preparation as it's supposed to be 2017-08-02 09:27:22 +02:00
qemu_process.h qemuDomainAttachMemory: Crate hugepage dir if needed 2017-06-13 16:39:39 +02:00
qemu_processpriv.h qemu: Export qemuProcessHandleDeviceDeleted for tests 2013-08-26 16:09:55 +02:00
qemu_security.c security: don't relabel chardev source if virtlogd is used as stdio handler 2017-06-16 16:00:10 +02:00
qemu_security.h qemu_hotplug: Relabel memdev 2017-03-15 16:55:23 +01:00
qemu.conf qemu: Check for existence of provided *_tls_x509_cert_dir 2017-08-02 15:51:50 -04:00
test_libvirtd_qemu.aug.in qemu: Add AAVMF32 to the list of known UEFIs 2017-07-21 14:36:54 -04:00
THREADS.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00