[PATCH] qemu: fix iothread residual when qemuProcessSetupIOThread failed

2021-08-30 Thread Wang Xin
olls back the livedef and iothread process after qemuProcessSetupIOThread() returned a failure. Of course we are not limited to this function, we also perform the same rolling back after any exception proecss in qemuDomainHotplugAddIOThread(). Signed-off-by: Lei Yang Signed-off-by: Wang Xin d

[PATCH] news: Document the `role` attribute for shmem device

2020-08-21 Thread Wang Xin
Signed-off-by: Wang Xin diff --git a/NEWS.rst b/NEWS.rst index 0669051ee6..be7274a184 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -13,6 +13,12 @@ v6.7.0 (unreleased) * **New features** + * shmem: Add support for shmem-{plain, doorbell} ``role`` option + +The ``role`` attribute controls how

[PATCH v3 2/2] conf: allow shmem name change in migration

2020-07-23 Thread Wang Xin
The shmem 'name' specifies the shared memory path in '/dev/shm/', however, we may need to change it to avoid filename conflict when VM migrate to other host. This patch remove shmem name consistency check. Signed-off-by: Wang Xin diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c

[PATCH v3 1/2] qemu: add support for shmem-{plain, doorbell} role

2020-07-23 Thread Wang Xin
Kletzander Signed-off-by: Yang Hang Signed-off-by: Wang Xin diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index f3a639b972..1a7308cb00 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -9141,7 +9141,7 @@ qemu-kvm -net nic,model=? /dev/null

[PATCH v3 0/2] qemu: support shmem device migration

2020-07-23 Thread Wang Xin
ailure. Wang Xin (2): qemu: add support for shmem-{plain, doorbell} role conf: allow shmem name change in migration docs/formatdomain.html.in | 13 ++- docs/schemas/domaincommon.rng | 8 src/conf/domain_conf.c

[PATCH 2/2] conf: allow shmem name change in migration

2020-07-23 Thread Wang Xin
The shmem 'name' specifies the shared memory path in '/dev/shm/', however, we may need to change it to avoid filename conflict when VM migrate to other host. This patch remove shmem name consistency check. Signed-off-by: Wang Xin diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c

[PATCH 0/2] qemu: support shmem device migration

2020-07-23 Thread Wang Xin
ailure. Wang Xin (2): qemu: add support for shmem-{plain, doorbell} role conf: allow shmem name change in migration docs/formatdomain.html.in | 13 ++- docs/schemas/domaincommon.rng | 8 src/conf/domain_conf.c

[PATCH 1/2] qemu: add support for shmem-{plain, doorbell} role

2020-07-23 Thread Wang Xin
Kletzander Signed-off-by: Yang Hang Signed-off-by: Wang Xin diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index f3a639b972..1a7308cb00 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -9141,7 +9141,7 @@ qemu-kvm -net nic,model=? /dev/null

[PATCH v2 2/2] qemu: allow configuring mem-path for ivshmem-plain device

2020-07-17 Thread Wang Xin
The shared memory path is generated by shmem name as default, however, we may need to change it to avoid filename conflict when VM migrate to other host. Signed-off-by: Yang Hang Signed-off-by: Wang Xin diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 09d4ad3e96

[PATCH v2 1/2] qemu: add support for shmem-{plain, doorbell} role

2020-07-17 Thread Wang Xin
Kletzander Signed-off-by: Yang Hang Signed-off-by: Wang Xin diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index f5ee97de81..d4d90ad44d 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -9141,7 +9141,7 @@ qemu-kvm -net nic,model=? /dev/null

[PATCH 2/2] qemu: allow configuring mem-path for ivshmem-plain device

2020-07-16 Thread Wang Xin
The shared memory path is generated by shmem name as default, however, we may need to change it to avoid filename conflict when VM migrate to other host. Signed-off-by: Yang Hang Signed-off-by: Wang Xin diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 09d4ad3e96

[PATCH 1/2] qemu: add support for shmem-{plain, doorbell} role

2020-07-16 Thread Wang Xin
Kletzander Signed-off-by: Yang Hang Signed-off-by: Wang Xin diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index f5ee97de81..d4d90ad44d 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -9141,7 +9141,7 @@ qemu-kvm -net nic,model=? /dev/null