[PATCH 0/2] support block encryption/decryption in parallel

2024-11-28 Thread tugy
From: Guoyi Tu Currently, disk I/O encryption and decryption operations are performed sequentially in the main thread or IOthread. When the number of I/O requests increases, this becomes a performance bottleneck. To address this issue, this patch use thread pool to perform I/O encryption and de

[PATCH 2/2] qapi/crypto: support enable encryption/decryption in parallel

2024-11-28 Thread tugy
From: Guoyi Tu add encrypt-in-parallel option to enable encryption/decryption in parallel Signed-off-by: Guoyi Tu --- block/crypto.c | 8 block/crypto.h | 9 + qapi/block-core.json | 6 +- qapi/crypto.json | 6 +- 4 files changed, 27 insertions(+), 2 de

[PATCH 1/2] crpyto: support encryt and decrypt parallelly using thread pool

2024-11-28 Thread tugy
From: Guoyi Tu Currently, disk I/O encryption and decryption operations are performed sequentially in the main thread or IOthread. When the number of I/O requests increases, this becomes a performance bottleneck. To address this issue, this patch using the thread pool to perform I/O encryption

[PATCH v1 0/2] ui/vdagent: Fix two bugs about disconnect event handling

2023-08-17 Thread tugy
From: Guoyi Tu and resource leak Guoyi Tu (2): ui/vdagent: call vdagent_disconnect() when agent connection is lost ui/vdagent: Unregister input handler of mouse during finalization ui/vdagent.c | 6 ++ 1 file changed, 6 insertions(+) -- 2.27.0

[PATCH v1 2/2] ui/vdagent: Unregister input handler of mouse during finalization

2023-08-17 Thread tugy
From: Guoyi Tu Input handler resource should be released when VDAgentChardev object finalize Signed-off-by: Guoyi Tu Signed-off-by: dengpengcheng --- ui/vdagent.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/vdagent.c b/ui/vdagent.c index 4b9a1fb7c5..00d36a8677 100644 --- a/ui/vd

[PATCH v1 1/2] ui/vdagent: call vdagent_disconnect() when agent connection is lost

2023-08-17 Thread tugy
From: Guoyi Tu when the agent connection is lost, the input handler of the mouse doesn't deactivate, which results in unresponsive mouse events in VNC windows. To fix this issue, call vdagent_disconnect() to reset the state each time the frontend disconncect Signed-off-by: Guoyi Tu Signed-off-

[PATCH 1/2] ui/vdagent: call vdagent_disconnect() when agent connection is lost

2023-08-17 Thread tugy
From: Guoyi Tu when the agent connection is lost, the input handler of the mouse doesn't deactivate, which results in unresponsive mouse events in VNC windows. To fix this issue, call vdagent_disconnect() to reset the state each time the frontend disconncect Signed-off-by: Guoyi Tu Signed-off-

[PATCH 2/2] ui/vdagent: Unregister input handler of mouse during finalization

2023-08-17 Thread tugy
From: Guoyi Tu Input handler resource should be released when VDAgentChardev object finalize Signed-off-by: Guoyi Tu Signed-off-by: dengpengcheng --- ui/vdagent.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/vdagent.c b/ui/vdagent.c index 386dc5abe0..4c9b3b7ba8 100644 --- a/ui/vd

[PATCH 0/2] ui/vdagent: Fix two bugs about disconnect event handling

2023-08-17 Thread tugy
From: Guoyi Tu and resource leak Guoyi Tu (2): ui/vdagent: call vdagent_disconnect() when agent connection is lost ui/vdagent: Unregister input handler of mouse during finalization ui/vdagent.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 2.27.0

[PATCH v1 0/2] introduce qemu_socketpiar()

2022-08-23 Thread tugy
From: Guoyi Tu Introduce qemu_socketpair() to create socket pair fd, and set the close-on-exec flag at default as with the other type of socket does. besides, the live update feature is developing, so it's necessary to do that. Guoyi Tu (2): oslib-posix: Introduce qemu_socketpair() vhost-us

[PATCH v1 2/2] vhost-user: Call qemu_socketpair() instead of socketpair()

2022-08-23 Thread tugy
From: Guoyi Tu As the close-on-exec flags is not set on the file descriptors returned by socketpair() at default, the fds will survive across exec' function. In the case that exec' function get invoked, such as the live-update feature which is been developing, it will cause fd leaks. To address

[PATCH v1 1/2] oslib-posix: Introduce qemu_socketpair()

2022-08-23 Thread tugy
From: Guoyi Tu qemu_socketpair() will create a pair of connected sockets with FD_CLOEXEC set Signed-off-by: Guoyi Tu --- include/qemu/sockets.h | 18 ++ util/oslib-posix.c | 19 +++ 2 files changed, 37 insertions(+) diff --git a/include/qemu/sockets.h b/inc

[PATCH 2/2] vhost-user: Call qemu_socketpair() instead of socketpair()

2022-08-12 Thread tugy
From: Guoyi Tu set close-on-exec flag on the new opened file descriptors at default Signed-off-by: Guoyi Tu --- hw/display/vhost-user-gpu.c | 3 ++- hw/virtio/vhost-user.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/display/vhost-user-gpu.c b/hw/display/vhost

[PATCH 0/2] introduce qemu_socketpiar()

2022-08-12 Thread tugy
From: Guoyi Tu introduce qemu_socketpair() to create socket pair fd, and set the close-on-exec flag at default as with the other type of socket does. besides, the live update feature is developing, so it's necessary to do that. Guoyi Tu (2): osdeps: Introduce qemu_socketpair() vhost-user:

[PATCH 1/2] osdeps: Introduce qemu_socketpair()

2022-08-12 Thread tugy
From: Guoyi Tu qemu_socketpair() will create a pair of connected sockets with FD_CLOEXEC set Signed-off-by: Guoyi Tu --- include/qemu/sockets.h | 3 +++ util/osdep.c | 24 2 files changed, 27 insertions(+) diff --git a/include/qemu/sockets.h b/include/qemu/