[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] tools/libxl: Add iothread support for COLO



commit 174db28bb823e8c98c319fdbdc6d4cbe1050ba14
Author:     Zhang Chen <chen.zhang@xxxxxxxxx>
AuthorDate: Sat Jul 27 00:27:23 2019 +0800
Commit:     Wei Liu <wl@xxxxxxx>
CommitDate: Sun Jul 28 12:07:59 2019 +0100

    tools/libxl: Add iothread support for COLO
    
    Xen COLO and KVM COLO shared lots of code in Qemu.
    The colo-compare object in Qemu now requires an 'iothread' property since 
QEMU 2.11.
    
    Detail:
    https://wiki.qemu.org/Features/COLO
    
    Signed-off-by: Zhang Chen <chen.zhang@xxxxxxxxx>
    Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
 tools/libxl/libxl_dm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index f4fc96415d..839c5ac2cd 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -1634,8 +1634,10 @@ static int libxl__build_device_model_args_new(libxl__gc 
*gc,
                         nics[i].colo_compare_out &&
                         nics[i].colo_compare_notify_dev) {
                         flexarray_append(dm_args, "-object");
+                        flexarray_append(dm_args, 
"iothread,id=colo-compare-iothread-1");
+                        flexarray_append(dm_args, "-object");
                         flexarray_append(dm_args,
-                           
GCSPRINTF("colo-compare,id=c1,primary_in=%s,secondary_in=%s,outdev=%s,notify_dev=%s",
+                           
GCSPRINTF("colo-compare,id=c1,primary_in=%s,secondary_in=%s,outdev=%s,notify_dev=%s,iothread=colo-compare-iothread-1",
                                      nics[i].colo_compare_pri_in,
                                      nics[i].colo_compare_sec_in,
                                      nics[i].colo_compare_out,
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.