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
..
2020-06-04 12:06:08 +02:00
2017-10-16 10:22:34 +01:00
2019-12-20 12:25:42 -05:00
2019-12-23 10:08:05 +00:00
2020-07-03 11:00:51 +02:00
2018-12-17 17:52:46 +01:00
2019-12-04 15:48:28 +00:00
2020-06-05 16:27:33 +02:00
2017-08-02 15:00:28 -04:00
2020-04-20 14:06:25 +01:00