libvirt/tests
Wang Xin 493d2769f2 qemu: add support for shmem-{plain, doorbell} role
Role(master or peer) controls how the domain behaves on migration.
For more details about migration with ivshmem, see
https://git.qemu.org/?p=qemu.git;a=blob_plain;f=docs/system/ivshmem.rst;hb=HEAD

It's a optional attribute in libvirt, and qemu will choose default
role for ivshmem device if the user is not specified.

With device property 'role', the value can be 'master' or 'peer'.
 - 'master' (means 'master=on' in qemu), the guest will copy
   the shared memory on migration to the destination host.
 - 'peer' (means 'master=off' in qemu), the migration is disabled.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Yang Hang <yanghang44@huawei.com>
Signed-off-by: Wang Xin <wangxinxin.wang@huawei.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2020-08-03 10:57:47 +02:00
..
bhyveargv2xmldata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata
commanddata tests: commandtest: Make 'test4' checking daemonization more reliable 2020-07-27 15:44:38 +02:00
cputestdata cpu_map: Add missing AMD SVM features 2020-06-19 21:59:31 +02:00
domainbackupxml2xmlin backup: Allow configuring incremental backup per-disk individually 2020-07-08 08:40:30 +02:00
domainbackupxml2xmlout backup: Allow configuring incremental backup per-disk individually 2020-07-08 08:40:30 +02:00
domaincapsdata cpu_map: Add missing AMD SVM features 2020-06-19 21:59:31 +02:00
domainconfdata
domainschemadata
fchostdata/fc_host
genericxml2xmlindata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata tests: Fix the libxl xml2domconfig test 2020-05-07 17:38:41 -06:00
lxcconf2xmldata lxc: Fix wrong addresses statements for IPv{4, 6} in native network definitions 2020-02-06 15:00:57 +01:00
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata tests: Add tests for <lease/> to cover dnsmasq settings 2020-04-23 10:59:33 +02:00
networkxml2firewalldata network: wire up support for IPv6 NAT rules 2020-06-15 17:10:15 +01:00
networkxml2xmlin conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlout conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevmdevctldata nodedev: Add testing for 'mdevctl stop' 2020-06-19 10:39:55 +02:00
nodedevschemadata nodedev: Add testing for 'mdevctl start' 2020-06-19 10:39:55 +02:00
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata qemu: block: Remove 'active-write' bitmap even if there are no bitmaps to merge 2020-07-21 09:52:59 +02:00
qemucapabilitiesdata tests: qemucapabitilies: Bump for 5.1 caps to rc2 for x86_64 2020-07-31 10:27:51 +02:00
qemucaps2xmloutdata
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout
qemufirmwaredata
qemuhotplugtestcpus qemuhotplugtestcpus: Always use 'query-cpus-fast' 2020-03-05 11:31:38 +01:00
qemuhotplugtestdevices qemu: add support for shmem-{plain, doorbell} role 2020-08-03 10:57:47 +02:00
qemuhotplugtestdomains qemu: add support for shmem-{plain, doorbell} role 2020-08-03 10:57:47 +02:00
qemumemlockdata
qemumigparamsdata
qemumonitorjsondata tests: validate parsing of CPUs with dies > 1 2020-03-16 16:00:27 +00:00
qemustatusxml2xmldata qemu: domain: Regenerate hostdev source private data 2020-07-17 07:41:20 +02:00
qemuvhostuserdata
qemuxml2argvdata qemu: add support for shmem-{plain, doorbell} role 2020-08-03 10:57:47 +02:00
qemuxml2xmloutdata qemu: add support for shmem-{plain, doorbell} role 2020-08-03 10:57:47 +02:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagepoolxml2xmlout conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin
storagevolxml2xmlout
sysinfodata virsysinfo: Parse OEM strings 2020-06-10 14:00:38 +02:00
vboxsnapshotxmldata
vircaps2xmldata
vircgroupdata
virconfdata rpc: remove use of the term 'whitelist' from RPC code 2020-06-26 15:36:40 +01:00
virfilecachedata
virfiledata
virhostcpudata hostcpu: Implement virHostCPUGetSignature for s390 2020-05-25 16:09:58 +02:00
virjsondata jsontest: Add test cases for deflattening of arrays 2020-03-20 09:47:16 +01:00
virmacmaptestdata
virnetdaemondata
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata tests: fix missing test data for network port XML 2020-02-25 15:43:56 +00:00
virnwfilterbindingxml2xmldata
virpcitestdata
virresctrldata
virscsidata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
xlconfigdata tests: check conversion of passthrough hypervisor feature 2020-04-21 09:22:14 -06:00
xmconfigdata
xml2vmxdata Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
.valgrind.supp tests: valgrind.supp: suppress g_type_register_static leaks 2020-03-09 15:46:42 +01:00
bhyveargv2xmlmock.c
bhyveargv2xmltest.c tests: bhyve: remove unnecessary labels 2020-08-03 07:23:46 +02:00
bhyvexml2argvmock.c qemu/lxc: plumb isolatedPort from config down through bridge attachment 2020-02-20 23:13:15 -05:00
bhyvexml2argvtest.c tests: bhyve: remove unnecessary labels 2020-08-03 07:23:46 +02:00
bhyvexml2xmltest.c tests: bhyve: use g_autofree where possible 2020-08-03 07:23:46 +02:00
commandhelper.c tests: commandtest: Make 'test4' checking daemonization more reliable 2020-07-27 15:44:38 +02:00
commandtest.c tests: commandtest: drop unnecessary labels 2020-08-03 07:23:45 +02:00
cputest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
domaincapsmock.c
domaincapstest.c tests: Fix virQEMUDriverConfigNew() calling with respect to @root 2020-04-07 15:26:10 +02:00
domainconftest.c
esxutilstest.c
eventtest.c tests: fix deadlock in eventtest 2020-02-06 13:41:03 +01:00
fchosttest.c
fdstreamtest.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
genericxml2xmltest.c Add a check attribute on the mac address element 2020-07-23 16:11:39 +01:00
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
libxlmock.c tests: libxl: do not run the emulator 2020-02-25 12:05:01 +01:00
libxlxml2domconfigtest.c libxl: Add support for max_event_channels 2020-04-09 15:45:05 -06:00
lxcconf2xmltest.c
lxcxml2xmltest.c
meson.build meson: tests: add valgrind test setup 2020-08-03 09:27:06 +02:00
metadatatest.c
networkxml2conftest.c networkxml2xmltest: Complete renaming of @actual 2020-04-23 12:38:01 +02:00
networkxml2firewalltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
networkxml2xmltest.c conf: add an attribute to turn on NAT for IPv6 virtual networks 2020-06-15 17:10:15 +01:00
networkxml2xmlupdatetest.c
nodedevmdevctltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
nodedevxml2xmltest.c
nsslinktest.c
nssmock.c tests: use WITH_NSS instead of NSS 2020-07-10 09:40:58 +02:00
nsstest.c tests: use WITH_NSS instead of NSS 2020-07-10 09:40:58 +02:00
nwfilterebiptablestest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
nwfilterxml2firewalltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
nwfilterxml2xmltest.c
objecteventtest.c Include unistd.h where used 2020-02-24 23:15:50 +01:00
openvzutilstest.c
openvzutilstest.conf
permitted_file_access.txt scripts: remove use of the term 'whitelist' from build helpers 2020-06-26 15:36:40 +01:00
pkix_asn1_tab.c
qemuagenttest.c tests: qemu: use g_autoptr where possible 2020-08-03 07:23:46 +02:00
qemublocktest.c tests: qemu: use g_autoptr where possible 2020-08-03 07:23:46 +02:00
qemucapabilitiestest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemucaps2xmlmock.c
qemucaps2xmltest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemucapsfixreplies
qemucapsprobe.c qemu: Invalidate capabilities when host CPU changes 2020-05-25 16:10:04 +02:00
qemucapsprobemock.c
qemucommandutiltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
qemucpumock.c
qemudomaincheckpointxml2xmltest.c conf: checkpoint: Add a flag storing whether disk 'size' is valid 2020-07-07 12:58:19 +02:00
qemudomainsnapshotxml2xmltest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemufirmwaretest.c
qemuhotplugmock.c replace g_new() with g_new0() for consistency 2020-07-20 19:08:07 -04:00
qemuhotplugtest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemumemlocktest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemumigparamstest.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemumonitorjsontest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
qemumonitortestutils.c tests: qemu: remove unnecessary labels 2020-08-03 07:23:46 +02:00
qemumonitortestutils.h qemumonitortestutils: Introduce qemuMonitorTestSkipDeprecatedValidation 2020-05-20 08:53:29 +02:00
qemusecuritymock.c tests: qemu: use g_autofree where possible 2020-08-03 07:23:46 +02:00
qemusecuritytest.c tests: qemu: Split NBD and VXHS protocol tests 2020-07-31 10:27:50 +02:00
qemusecuritytest.h
qemuvhostusertest.c
qemuxml2argvmock.c
qemuxml2argvtest.c tests: qemu: use VIR_AUTOSTRINGLIST where possible 2020-08-03 07:23:46 +02:00
qemuxml2xmltest.c qemu: add support for shmem-{plain, doorbell} role 2020-08-03 10:57:47 +02:00
scsihosttest.c testVirFindSCSIHostByPCI: Remove unused 'path_addr' 2020-06-15 10:27:37 +02:00
seclabeltest.c
secretxml2xmltest.c
securityselinuxhelper.c Substitute security_context_t with char * 2020-07-15 14:31:07 +02:00
securityselinuxlabeltest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
securityselinuxtest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
shunloadhelper.c
shunloadtest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
sockettest.c
ssh.c src: remove virFilePrintf in favour of g_fprintf 2020-02-04 14:00:45 +00:00
storagebackendsheepdogtest.c
storagepoolcapstest.c
storagepoolxml2argvtest.c
storagepoolxml2xmltest.c conf: add control over COW for storage pool directories 2020-07-23 16:18:09 +01:00
storagevolxml2argvtest.c
storagevolxml2xmltest.c
sysinfotest.c virsysinfo: Parse OEM strings 2020-06-10 14:00:38 +02:00
test-lib.sh
testutils.c meson: tests: built utils static libraries 2020-08-03 09:27:05 +02:00
testutils.h meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
testutilshostcpus.h
testutilslxc.c
testutilslxc.h
testutilsqemu.c tests: qemu: use g_autofree where possible 2020-08-03 07:23:46 +02:00
testutilsqemu.h qemuxml2argvtest: Add QAPI/QMP schema validation for -blockdev and -netdev 2020-05-20 09:41:58 +02:00
testutilsqemuschema.c testutilsqemuschema: Allow loading non-latest schema 2020-05-20 09:41:58 +02:00
testutilsqemuschema.h testutilsqemuschema: Allow loading non-latest schema 2020-05-20 09:41:58 +02:00
testutilsxen.c libxl: do not mock virFileMakePath 2020-02-25 12:05:00 +01:00
testutilsxen.h
utiltest.c tests: qemu: reduce scope of some variables 2020-08-03 07:23:45 +02:00
vboxsnapshotxmltest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
viralloctest.c
virauthconfigtest.c util: Fix memory leak in virAuthGetCredential 2020-06-16 15:01:05 +02:00
virbitmaptest.c virBitmapNewEmpty: Use g_new0 to allocate and remove error checking 2020-03-20 09:47:16 +01:00
virbuftest.c tests: eliminate unnecessary labels 2020-07-08 16:35:54 -04:00
vircaps2xmltest.c
vircapstest.c
vircgroupmock.c src: assume sys/sysmacros.h always exists on Linux 2020-02-04 14:00:45 +00:00
vircgrouptest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virconftest.c
vircryptotest.c
virdbusmock.c
virdbustest.c
virdeterministichashmock.c
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c
virerrortest.c
virfilecachemock.c
virfilecachetest.c qemu: don't continue loading caps if outdated 2020-06-23 17:33:30 +01:00
virfilemock.c
virfiletest.c Include unistd.h where used 2020-02-24 23:15:50 +01:00
virfilewrapper.c
virfilewrapper.h
virfirewalltest.c use g_autoptr() for all usages of virFirewallNew/Free 2020-07-08 16:36:19 -04:00
virhashdata.h
virhashtest.c
virhostcpumock.c
virhostcputest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virhostdevmock.c tests: Introduce virhostdevmock 2020-05-06 16:24:31 +02:00
virhostdevtest.c tests: Introduce virhostdevmock 2020-05-06 16:24:31 +02:00
viridentitytest.c meson: remove '.libs' from all relevant paths 2020-08-03 09:27:00 +02:00
viriscsitest.c
virjsontest.c jsontest: Add test cases for deflattening of arrays 2020-03-20 09:47:16 +01:00
virkeycodetest.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
virkmodtest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virlockspacetest.c src: add virutil.h to more source files for geteuid() compat 2020-02-25 10:02:15 +00:00
virlogtest.c
virmacmaptest.c
virmock.h
virmockstathelpers.c meson: tests: virmockstathelpers: replace check for _FILE_OFFSET_BITS 2020-08-03 09:26:36 +02:00
virnetdaemonmock.c tests: don't mock the time() function on mingw 2020-07-23 14:58:16 +01:00
virnetdaemontest.c tests: switch away from HAVE_SOCKETPAIR 2020-03-19 14:39:38 +01:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c tests: use g_auto for all virBuffers 2020-07-08 16:34:09 -04:00
virnetdevmock.c
virnetdevopenvswitchtest.c
virnetdevtest.c
virnetmessagetest.c tests: conditionalize use of SIGPIPE 2020-01-29 14:51:40 +00:00
virnetserverclientmock.c
virnetserverclienttest.c tests: switch away from HAVE_SOCKETPAIR 2020-03-19 14:39:38 +01:00
virnetsockettest.c tests: Minimize variable scope 2020-07-15 12:52:24 +02:00
virnettlscontexttest.c tests: include unistd.h instead of virutil.h 2020-02-24 23:15:49 +01:00
virnettlshelpers.c virnettlshelpers: Update private key 2020-07-01 13:26:04 +02:00
virnettlshelpers.h
virnettlssessiontest.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virnetworkportxml2xmltest.c tests: fix missing test data for network port XML 2020-02-25 15:43:56 +00:00
virnumamock.c
virnwfilterbindingxml2xmltest.c
virpcimock.c
virpcitest.c
virpolkittest.c
virportallocatormock.c src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virportallocatortest.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
virprocessmock.c
virrandommock.c
virresctrltest.c
virrotatingfiletest.c
virschematest.c news: Convert to reStructuredText 2020-06-05 16:27:33 +02:00
virscsitest.c Include unistd.h where used 2020-02-24 23:15:50 +01:00
virsh-auth src: fix mixup of stack and heap allocated data in auth callback 2020-03-06 17:02:10 +00:00
virsh-auth.xml src: fix mixup of stack and heap allocated data in auth callback 2020-03-06 17:02:10 +00:00
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse meson: src/util/virfile: rewrite virFileActivateDirOverrideForProg 2020-08-03 09:26:36 +02:00
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo meson: src/util/virfile: rewrite virFileActivateDirOverrideForProg 2020-08-03 09:26:36 +02:00
virsh-self-test
virsh-snapshot
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c virshtest: use virCommand instead of custom impl 2020-02-11 16:30:18 +01:00
virstoragetest.c conf: Sanitize handling of <auth> and <encryption> placement for disks 2020-05-12 06:55:00 +02:00
virstorageutiltest.c
virstringtest.c gnulib: delete all gnulib integration 2020-02-07 15:03:54 +00:00
virsystemdtest.c conf: Move virDomainGenerateMachineName to hypervisor/ 2020-04-07 15:26:19 +02:00
virt-aa-helper-test meson: tests: add test scripts 2020-08-03 09:27:06 +02:00
virt-admin-self-test
virtestmock.c meson: tests: add file access test setup 2020-08-03 09:27:06 +02:00
virtimetest.c tests: conditionalize use of SIGPIPE 2020-01-29 14:51:40 +00:00
virtypedparamtest.c
viruritest.c tests: conditionalize use of SIGPIPE 2020-01-29 14:51:40 +00:00
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c vmx: make 'fileName' optional for CD-ROMs 2020-03-19 11:25:33 +01:00
vshtabletest.c src: optionally include xlocale.h header 2020-02-04 14:00:45 +00:00
xlconfigtest.c tests: check conversion of passthrough hypervisor feature 2020-04-21 09:22:14 -06:00
xmconfigtest.c Remove use of variables passed only to 'VIR_FREE' 2020-06-15 10:27:37 +02:00
xml2vmxtest.c Add a type attribute on the mac address element 2020-07-13 18:47:44 +02:00