libvirt/src/qemu
Michal Privoznik 88957116c9 qemu: Use memory-backend-* for regular guest memory
So far, Libvirt configures memory-backend-* for memory hotplug,
possibly NUMA nodes and in a few other cases. This patch
switches to constructing the memory-backend-* command line for
all cases. To keep ability to migrate guests a little hack is
used: the ID of the object is set to the one that QEMU uses
internally anyways. These IDs are stable (first started to appear
somewhere around v0.13.0-rc0~96) and can't change.

In fact, this patch does exactly what QEMU does internally. The
reason for moving the logic into Libvirt is that QEMU wants to
deprecate the old style of specifying memory.

So far, only x84_64 test cases are changed, because tests for
other architectures use older capabilities, which still lack the
QEMU_CAPS_MACHINE_MEMORY_BACKEND capability and they don't report
the RAM ID.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1836043

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2020-10-01 12:06:22 +02:00
..
EVENTHANDLERS.txt
libvirt_qemu_probes.d meson: src: build libvirt_driver_qemu_impl.a static library 2020-08-03 09:27:04 +02:00
libvirtd_qemu.aug qemu: conf: Add configuration of TLS environment for NBD transport of pull-backups 2020-07-07 12:58:19 +02:00
meson.build qemu: Extract snapshot related code to a separate file 2020-08-24 16:42:29 +02:00
MIGRATION.txt
qemu_agent.c qemu: agent: set ifname to NULL after freeing 2020-09-30 11:42:28 +02:00
qemu_agent.h qemuAgentGetFSInfo: expose 'report_unsupported' argument 2020-03-25 13:13:18 +01:00
qemu_alias.c conf, qemu, security, tests: introducing 'def->tpms' array 2020-06-23 17:27:50 +02:00
qemu_alias.h qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_backup.c qemu: backup: Write TLS cert and secret object aliases into status XML 2020-09-15 15:25:22 +02:00
qemu_backup.h qemu: backup: Rewrite backup bitmap handling to the new bitmap semantics 2020-06-22 16:04:30 +02:00
qemu_block.c qemuBlockStorageSourceAttachData: remove 'storageNodeNameCopy' 2020-09-15 15:20:23 +02:00
qemu_block.h qemuBlockStorageSourceAttachData: remove 'storageNodeNameCopy' 2020-09-15 15:20:23 +02:00
qemu_blockjob.c qemu: blockjob: Actually delete temporary bitmap on failed active commit 2020-07-21 09:52:59 +02:00
qemu_blockjob.h qemu: blockjob: Remove 'disabledBitmapsBase' field from commit job private data 2020-06-22 16:04:31 +02:00
qemu_capabilities.c qemu: Track default-ram-id machine attribute 2020-10-01 12:04:48 +02:00
qemu_capabilities.h qemu: Track default-ram-id machine attribute 2020-10-01 12:04:48 +02:00
qemu_capspriv.h qemu: Track default-ram-id machine attribute 2020-10-01 12:04:48 +02:00
qemu_cgroup.c virDevMapperGetTargets: Don't ignore EBADF 2020-07-25 11:14:39 +02:00
qemu_cgroup.h
qemu_checkpoint.c qemu: checkpoint: Implement VIR_DOMAIN_CHECKPOINT_XML_SIZE 2020-07-07 12:58:19 +02:00
qemu_checkpoint.h qemu: checkpoint: Don't merge checkpoints during deletion 2020-06-22 16:04:30 +02:00
qemu_command.c qemu: Use memory-backend-* for regular guest memory 2020-10-01 12:06:22 +02:00
qemu_command.h qemuBuildMemoryBackendProps: Fix const correctness 2020-10-01 12:03:57 +02:00
qemu_conf.c qemu: Separate out namespace handling code 2020-08-03 19:32:27 +02:00
qemu_conf.h lib: Prefer g_autoptr() declaration of virQEMUDriverConfigPtr 2020-09-07 10:47:54 +02:00
qemu_dbus.c qemu: pre-create the dbus directory in qemuStateInitialize 2020-07-22 09:40:15 +02:00
qemu_dbus.h qemu: pre-create the dbus directory in qemuStateInitialize 2020-07-22 09:40:15 +02:00
qemu_domain_address.c conf: add 'isa' controller type 2020-09-21 20:01:12 +04:00
qemu_domain_address.h qemu_domain_address.c: turn qemuDomainFillDeviceIsolationGroup to void 2020-01-31 15:25:33 +01:00
qemu_domain.c qemu: Block blockjobs when transient disk option is enabled 2020-10-01 09:55:02 +02:00
qemu_domain.h qemu: prepare cleanup for <transient/> disk overlays 2020-10-01 09:55:02 +02:00
qemu_domainjob.c qemuProcessReconnect: clear 'oldjob' 2020-09-14 18:10:56 +02:00
qemu_domainjob.h qemuProcessReconnect: clear 'oldjob' 2020-09-14 18:10:56 +02:00
qemu_driver.c rpc: require write acl for guest agent in virDomainInterfaceAddresses 2020-09-30 11:42:28 +02:00
qemu_driver.h
qemu_extdevice.c conf, qemu, security, tests: introducing 'def->tpms' array 2020-06-23 17:27:50 +02:00
qemu_extdevice.h qemu: pass virDomainObjPtr to qemuExtDevicesSetupCgroup 2020-03-04 12:08:50 +01:00
qemu_firmware.c qemu: firmware: check virJSONValueObjectGet return value 2020-09-23 13:26:34 +02:00
qemu_firmware.h src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
qemu_hostdev.c lib: Prefer g_autoptr() declaration of virQEMUDriverConfigPtr 2020-09-07 10:47:54 +02:00
qemu_hostdev.h qemu_hotplug: Prepare NVMe disks on hotplug 2019-12-17 10:04:44 +01:00
qemu_hotplug.c qemu: hotplug: Remove overlay of <transient> disk on disk unplug 2020-10-01 09:55:02 +02:00
qemu_hotplug.h src: add G_GNUC_NO_INLINE annotations for mocked symbols 2020-08-04 17:58:08 +01:00
qemu_interface.c lib: Prefer g_autoptr() declaration of virQEMUDriverConfigPtr 2020-09-07 10:47:54 +02:00
qemu_interface.h src: add G_GNUC_NO_INLINE annotations for mocked symbols 2020-08-04 17:58:08 +01:00
qemu_interop_config.c virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
qemu_interop_config.h
qemu_migration_cookie.c qemu: migration: Rename qemuMigrationEatCookie to qemuMigrationCookieParse 2020-10-01 10:01:05 +02:00
qemu_migration_cookie.h qemu: migration: Rename qemuMigrationEatCookie to qemuMigrationCookieParse 2020-10-01 10:01:05 +02:00
qemu_migration_params.c qemu: Allow migration over UNIX socket 2020-09-05 07:55:45 +02:00
qemu_migration_params.h qemu: Allow migration over UNIX socket 2020-09-05 07:55:45 +02:00
qemu_migration_paramspriv.h
qemu_migration.c qemu: migration: Rename qemuMigrationEatCookie to qemuMigrationCookieParse 2020-10-01 10:01:05 +02:00
qemu_migration.h qemu: Allow NBD migration over UNIX socket 2020-09-04 10:20:49 +02:00
qemu_monitor_json.c qemu: Track default-ram-id machine attribute 2020-10-01 12:04:48 +02:00
qemu_monitor_json.h src: add G_GNUC_NO_INLINE annotations for mocked symbols 2020-08-04 17:58:08 +01:00
qemu_monitor_priv.h
qemu_monitor_text.c qemu_monitor_text.c: Use g_autofree 2020-03-24 14:52:45 +01:00
qemu_monitor_text.h
qemu_monitor.c qemu: Track default-ram-id machine attribute 2020-10-01 12:04:48 +02:00
qemu_monitor.h qemu: Track default-ram-id machine attribute 2020-10-01 12:04:48 +02:00
qemu_namespace.c qemu_namespace: Don't leak mknod items that are being skipped over 2020-09-07 16:27:25 +02:00
qemu_namespace.h qemuDomainBuildNamespace: Populate basic /dev from daemon's namespace 2020-08-03 19:40:36 +02:00
qemu_process.c qemu: process: Handle transient disks on VM startup 2020-10-01 09:55:02 +02:00
qemu_process.h src: add G_GNUC_NO_INLINE annotations for mocked symbols 2020-08-04 17:58:08 +01:00
qemu_processpriv.h
qemu_qapi.c src: fix word spell typos 2020-07-09 10:01:41 +02:00
qemu_qapi.h
qemu_saveimage.c qemu: Split of code related to handling of the save image file 2020-08-24 16:42:00 +02:00
qemu_saveimage.h qemu: Split of code related to handling of the save image file 2020-08-24 16:42:00 +02:00
qemu_security.c qemu: Separate out namespace handling code 2020-08-03 19:32:27 +02:00
qemu_security.h qemu_security: Complete renaming of virSecurityManagerSetAllLabel() argument 2020-07-10 14:21:35 +02:00
qemu_shim.c qemu: remove use of gettid() syscall 2020-08-07 13:51:16 +01:00
qemu_slirp.c slirp: add helper to VM cgroup 2020-04-22 09:58:10 +02:00
qemu_slirp.h slirp: add helper to VM cgroup 2020-04-22 09:58:10 +02:00
qemu_snapshot.c qemu: snapshot: Introduce helpers for creating overlays on <transient/> disks 2020-10-01 09:55:02 +02:00
qemu_snapshot.h qemu: snapshot: Introduce helpers for creating overlays on <transient/> disks 2020-10-01 09:55:02 +02:00
qemu_tpm.c conf, qemu, security, tests: introducing 'def->tpms' array 2020-06-23 17:27:50 +02:00
qemu_tpm.h
qemu_validate.c qemu: validate: Allow <transient/> disks 2020-10-01 09:55:02 +02:00
qemu_validate.h qemu: validate: Validate blkdeviotune settings in the validator 2020-05-12 06:54:59 +02:00
qemu_vhost_user_gpu.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
qemu_vhost_user_gpu.h
qemu_vhost_user.c util: json: Convert virJSONValueNewObject() to g_new0 2020-03-05 11:31:38 +01:00
qemu_vhost_user.h qemu: use the vhost-user schemas to find binary 2020-03-04 12:08:50 +01:00
qemu_virtiofs.c qemuVirtioFSStop: Simplify daemon kill 2020-03-24 15:54:31 +01:00
qemu_virtiofs.h qemu: use the vhost-user schemas to find binary 2020-03-04 12:08:50 +01:00
qemu.conf qemu: conf: Add configuration of TLS environment for NBD transport of pull-backups 2020-07-07 12:58:19 +02:00
test_libvirtd_qemu.aug.in qemu: conf: Add configuration of TLS environment for NBD transport of pull-backups 2020-07-07 12:58:19 +02:00
THREADS.txt qemu: remove qemuDomainObjBegin/EndJobWithAgent() 2020-01-16 16:35:47 +01:00
virtqemud.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtqemud.service.in systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
virtqemud.sysconf qemu: Allow audio driver override in virtqemud 2020-04-03 11:50:57 +02:00