[PATCH RFC 4/4] vdagent: remove migration blocker

2022-12-30 Thread dengpc12
From: "dengp...@chinatelecom.cn" Now that migration already be supported, so remove the blocker. Signed-off-by: dengp...@chinatelecom.cn Signed-off-by: liuy...@chinatelecom.cn --- ui/vdagent.c | 12 1 file changed, 12 deletions(-) diff --git a/ui/vdagent.c b/ui/vdagent.c index 1

[PATCH RFC 0/4] vdagent: support live migration

2022-12-30 Thread dengpc12
From: "dengp...@chinatelecom.cn" 1. after live migration, copy/paste with vnc is not working. this is because: 1). vd->caps is not saved; this will leads wrong clipboard type is prased in vdagent_clipboard_recv_grab; 2). vdagent isn`t register to qemu-clipboard; this will leads vdagent cannot s

[PATCH RFC 2/4] vdagent: refactor vdagent_chr_recv_caps function

2022-12-30 Thread dengpc12
From: "dengp...@chinatelecom.cn" Abstract vdagent registry logic into vdagent_register_to_qemu_clipboard. Note that trace log of vdagent_recv_caps also be added. Signed-off-by: dengp...@chinatelecom.cn Signed-off-by: liuy...@chinatelecom.cn --- ui/trace-events | 1 + ui/vdagent.c| 20 ++

[PATCH RFC 3/4] vdagent: add live migration support

2022-12-30 Thread dengpc12
From: "dengp...@chinatelecom.cn" To support live migration, we made the following 2 modifications: 1. save the caps field of VDAgentChardev. 2. register vdagent to qemu-clipboard after vm device state being reloaded during live migration. Signed-off-by: dengp...@chinatelecom.cn Signed-off-by

[PATCH RFC 1/4] vdagent: fix memory leak when vdagent_disconnect is called

2022-12-30 Thread dengpc12
From: "dengp...@chinatelecom.cn" Memory free should be done in vdagent_disconnect using qemu_input_handler_unregister, replace qemu_input_handler_deactivate with that. Signed-off-by: dengp...@chinatelecom.cn Signed-off-by: liuy...@chinatelecom.cn --- ui/vdagent.c | 2 +- 1 file changed, 1 ins