libvirt/tests
Michal Privoznik 6126f743b1 qemu: Provide sane default for dump_guest_core
QEMU uses Linux extensions to madvise() to include/exclude guest
memory from core dump. These are obviously not available
everywhere. Currently, users have two options:

  1) configure <memory dumpCore=''/> in domain XML, or
  2) configure dump_guest_core in qemu.conf

While these work, they may harm user experience as "things just
don't work" out of the box. Provide sane default in
virQEMUDriverConfigNew() so neither of two options is required.

To have predictable results in tests, explicitly set
cfg->dumpGuestCore to false in qemuTestDriverInit() (which
creates cfg object for tests).

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/679

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2024-09-25 08:38:09 +02:00
..
bhyveargv2xmldata
bhyvefirmwaredata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata
chxml2xmlin
chxml2xmlout
commanddata
cputestdata cpu_map: Add missing feature "succor" 2024-07-03 13:36:13 +02:00
domainbackupxml2xmlin
domainbackupxml2xmlout
domaincapsdata cpu_map: Add SierraForest CPU model 2024-09-06 18:10:15 +02:00
domainconfdata
domainschemadata
fchostdata/fc_host
genericxml2xmlindata
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata network: add more firewall test cases 2024-06-24 13:51:04 +01:00
networkxml2xmlin
networkxml2xmlout
networkxml2xmlupdatein Revert "network: allow "modify" option for DNS-Srv records" 2024-08-05 11:42:35 +02:00
networkxml2xmlupdateout Revert "network: allow "modify" option for DNS-Srv records" 2024-08-05 11:42:35 +02:00
nodedevmdevctldata
nodedevschemadata
nodedevxml2xmlout
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata tests: switch to compact empty JSON object formatting 2024-09-24 08:24:00 +02:00
qemucapabilitiesdata tests: Fix typo in README.rst of qemucapabilitiesdata 2024-09-16 18:14:07 +02:00
qemucaps2xmloutdata
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout
qemufirmwaredata tests: Add firmware descriptor for edk2 on riscv64 2024-07-19 15:18:40 +02:00
qemuhotplugtestcpus
qemuhotplugtestdevices qemuhotplugtest: Add testcases for hotplugging evdev input devices 2024-05-16 14:57:02 +02:00
qemuhotplugtestdomains qemuhotplugtest: Add testcases for hotplugging evdev input devices 2024-05-16 14:57:02 +02:00
qemumemlockdata
qemumigparamsdata tests: switch to compact empty JSON object formatting 2024-09-24 08:24:00 +02:00
qemumigrationcookiexmldata
qemumonitorjsondata
qemunbdkitdata
qemusecuritydata
qemustatusxml2xmldata qemu: Set memoryBackingDir in private data upon start 2024-09-24 10:12:08 +02:00
qemuvhostuserdata qemu: fill capabilities for virtiofsd 2024-07-10 12:32:23 +02:00
qemuxmlactive2xmldata
qemuxmlconfdata qemu: Reject unsupported chardev backend protocols 2024-09-19 10:30:15 +02:00
schemas
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin
storagepoolxml2xmlout
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata virsysinfo: Calculate OEM string index better 2024-07-25 16:51:17 +02:00
vboxsnapshotxmldata
viracpidata
vircaps2xmldata tests: Add caps2xml and resctrl data from the wild 2024-09-13 12:57:42 +02:00
vircgroupdata
virconfdata
virfilecachedata
virfiledata
virhostcpudata
virjsondata
virmacmaptestdata tests: switch to compact empty JSON object formatting 2024-09-24 08:24:00 +02:00
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata
virnwfilterbindingxml2xmldata
virpcitestdata
virprocessstatdata
virresctrldata tests: Add caps2xml and resctrl data from the wild 2024-09-13 12:57:42 +02:00
virscsidata
virshtestdata virshtest: Add test case for script friendly options 2024-09-05 15:24:55 +02:00
virstoragetestdata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
virutiltestdata
vmwareverdata
vmx2xmldata vmx: Allow '*' to appear in VMX file keys 2024-09-12 09:51:58 +02:00
xlconfigdata
xmconfigdata
xml2vmxdata
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c
bhyvexml2argvmock.c
bhyvexml2argvtest.c
bhyvexml2xmltest.c
chxml2xmlmock.c
chxml2xmltest.c
commandhelper.c
commandtest.c virGetGroupList: Refactor and fix callers 2024-05-23 14:32:24 +02:00
cputest.c cpu: Add removedPolicy parameter to virCPUUpdate 2024-05-02 19:56:45 +02:00
domaincapsmock.c
domaincapstest.c
domainconftest.c
esxutilstest.c
eventtest.c
fchosttest.c tests: fix tests when test driver is disabled 2024-05-08 15:57:31 +01:00
fdstreamtest.c
genericxml2xmltest.c
interfacexml2xmltest.c
libxlmock.c test: drop bogus check for YAJL from libxl test/mock 2024-05-08 16:01:34 +01:00
libxlxml2domconfigtest.c test: drop bogus check for YAJL from libxl test/mock 2024-05-08 16:01:34 +01:00
lxcconf2xmltest.c
lxcxml2xmltest.c
meson.build meson: options: drop yajl 2024-09-24 08:24:00 +02:00
metadatatest.c
networkmetadatatest.c
networkxml2conftest.c
networkxml2firewalltest.c network: add more firewall test cases 2024-06-24 13:51:04 +01:00
networkxml2xmltest.c
networkxml2xmlupdatetest.c Revert "network: allow "modify" option for DNS-Srv records" 2024-08-05 11:42:35 +02:00
nodedevmdevctltest.c
nodedevxml2xmltest.c test: nodedev: fill active_config at driver startup time 2024-04-24 09:38:54 -04:00
nsslinktest.c
nssmock.c
nsstest.c
nwfilterebiptablestest.c
nwfilterxml2firewalltest.c
nwfilterxml2xmltest.c
objecteventtest.c
openvzutilstest.c
openvzutilstest.conf
permitted_file_access.txt
pkix_asn1_tab.c
qemuagenttest.c
qemublocktest.c tests: switch to compact empty JSON object formatting 2024-09-24 08:24:00 +02:00
qemucapabilitiestest.c
qemucaps2xmlmock.c
qemucaps2xmltest.c
qemucapsprobe.c tests: qemucapsprobe: Fix construction of path to libqemucapsprobemock.so 2024-04-24 14:12:17 +02:00
qemucapsprobemock.c
qemucommandutiltest.c
qemucpumock.c
qemudomaincheckpointxml2xmltest.c
qemudomainsnapshotxml2xmltest.c
qemufirmwaretest.c tests: Add firmware descriptor for edk2 on riscv64 2024-07-19 15:18:40 +02:00
qemuhotplugmock.c
qemuhotplugtest.c tests: Move domainEventState initialization to qemuTestDriverInit 2024-07-04 09:27:34 +02:00
qemumemlocktest.c
qemumigparamstest.c tests: switch to compact empty JSON object formatting 2024-09-24 08:24:00 +02:00
qemumigrationcookiexmltest.c lib: Annotate more function as NULL terminated 2024-06-06 09:29:58 +02:00
qemumonitorjsontest.c qemu: Use the new chardev backend JSON props generator also in the monitor 2024-09-19 10:30:15 +02:00
qemumonitortestutils.c qemumonitortestutils: Fix G_GNUC_PRINTF annotation of qemuMonitorTestAddErrorResponse() 2024-06-06 09:32:43 +02:00
qemumonitortestutils.h qemumonitortestutils: Fix G_GNUC_PRINTF annotation of qemuMonitorTestAddErrorResponse() 2024-06-06 09:32:43 +02:00
qemunbdkittest.c
qemusecuritymock.c qemusecuritytest: Call real virFileExists in mock 2024-04-09 16:55:25 +02:00
qemusecuritytest.c qemusecuritytest: drop disk-network-tlsx509-vxhs test case 2024-07-02 09:13:47 +02:00
qemusecuritytest.h
qemuvhostusertest.c tests: vhostuser: add virtiofsd json descriptor 2024-07-10 12:32:23 +02:00
qemuxml2argvmock.c hypervisor: Move domain interface mgmt methods 2024-08-26 16:10:04 +02:00
qemuxmlactivetest.c qemu: Add memoryBackingDir to qemuDomainObjPrivate 2024-09-24 10:12:08 +02:00
qemuxmlconftest.c qemu: Reject unsupported chardev backend protocols 2024-09-19 10:30:15 +02:00
scsihosttest.c
seclabeltest.c
secretxml2xmltest.c
securityselinuxhelper.c
securityselinuxlabeltest.c tests: mock: Accept spaces in build path 2024-04-15 09:24:16 +02:00
securityselinuxtest.c tests: mock: Accept spaces in build path 2024-04-15 09:24:16 +02:00
shunloadhelper.c
shunloadtest.c
sockettest.c
ssh.c
storagepoolcapstest.c
storagepoolxml2argvtest.c
storagepoolxml2xmltest.c
storagevolxml2argvtest.c
storagevolxml2xmltest.c
sysinfotest.c virsysinfo: Calculate OEM string index better 2024-07-25 16:51:17 +02:00
testutils.c tests: mock: Accept spaces in build path 2024-04-15 09:24:16 +02:00
testutils.h lib: Annotate more function as NULL terminated 2024-06-06 09:29:58 +02:00
testutilshostcpus.h
testutilslxc.c
testutilslxc.h
testutilsqemu.c qemu: Provide sane default for dump_guest_core 2024-09-25 08:38:09 +02:00
testutilsqemu.h qemuxmlconftest: Add test cases for broken and missing XML files 2024-08-09 16:34:33 +02:00
testutilsqemuschema.c
testutilsqemuschema.h lib: Annotate more function as NULL terminated 2024-06-06 09:29:58 +02:00
testutilsxen.c
testutilsxen.h
utiltest.c
vboxsnapshotxmltest.c
viracpitest.c
viralloctest.c
virauthconfigtest.c
virbitmaptest.c virBitmapShrink: Do not attempt to clear bits beyond end of buffer 2024-09-10 14:25:37 +02:00
virbuftest.c
vircaps2xmltest.c tests: Add caps2xml and resctrl data from the wild 2024-09-13 12:57:42 +02:00
vircgroupmock.c
vircgrouptest.c
virconftest.c
vircryptotest.c
virdnsmasqmock.c
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c
virerrortest.c
virfilecachemock.c
virfilecachetest.c
virfilemock.c
virfiletest.c
virfilewrapper.c
virfilewrapper.h
virfirewallmock.c
virfirewalltest.c util/network: new virFirewallBackend enum 2024-05-22 23:19:18 -04:00
virgdbusmock.c
virhostcpumock.c
virhostcputest.c
virhostdevmock.c
virhostdevtest.c
virhostidmock.c
viridentitytest.c tests: mock: Accept spaces in build path 2024-04-15 09:24:16 +02:00
viriscsitest.c
virjsontest.c tests: json: relax some test cases 2024-08-16 13:11:57 +02:00
virkeycodetest.c
virkmodtest.c
virlockspacetest.c
virlogtest.c
virmacmaptest.c tests: switch to compact empty JSON object formatting 2024-09-24 08:24:00 +02:00
virmigtest.c
virmock.h
virmockstathelpers.c
virnetdaemonmock.c
virnetdaemontest.c build: introduce WITH_JSON 2024-09-24 08:24:00 +02:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c
virnetdevmock.c
virnetdevopenvswitchtest.c
virnetdevtest.c
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c
virnetsockettest.c
virnettlscontexttest.c
virnettlshelpers.c
virnettlshelpers.h
virnettlssessiontest.c
virnetworkportxml2xmltest.c
virnumamock.c
virnwfilterbindingxml2xmltest.c
virpcimock.c
virpcitest.c
virpcivpdtest.c
virpolkittest.c
virportallocatormock.c
virportallocatortest.c
virprocessmock.c
virprocessstattest.c
virrandommock.c
virresctrltest.c tests: Add caps2xml and resctrl data from the wild 2024-09-13 12:57:42 +02:00
virrotatingfiletest.c
virschematest.c virschematest: Replace g_lstat() with virFileIsLink() 2024-08-28 08:46:16 +02:00
virscsitest.c
virsh-auth
virsh-auth.xml
virshtest.c virshtest: Add test case for script friendly options 2024-09-05 15:24:55 +02:00
virstoragetest.c build: introduce WITH_JSON 2024-09-24 08:24:00 +02:00
virstorageutiltest.c
virstringtest.c
virsystemdtest.c
virt-aa-helper-test tests: Allow spaces in path to virt-aa-helper 2024-04-15 09:28:32 +02:00
virtestmock.c
virtimetest.c
virtypedparamtest.c
viruritest.c
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c vmx: Allow '*' to appear in VMX file keys 2024-09-12 09:51:58 +02:00
vshtabletest.c
xlconfigtest.c libxl: Fix domxml-to-native conversion 2024-05-02 15:57:29 -06:00
xmconfigtest.c libxl: Fix domxml-to-native conversion 2024-05-02 15:57:29 -06:00
xml2vmxtest.c