[PATCH] multifd: ensure multifd threads are terminated before cleanup params

2022-02-12 Thread Wang Xin via
->mutex); ... } As the 'p->running' is used to indicate whether the multifd_send/recv thread is created, it should be set to false after the thread terminate. Signed-off-by: Wang Xin Signed-off-by: Huangyu Zhai diff --git a/migration/multifd.c b/migration/multifd.c ind

[PATCH] char-socket: disable reconnect timer in the sync connect

2020-12-21 Thread Wang Xin
rrent with tcp_chr_connect_client_sync tcp_chr_connect_client_task qio_channel_socket_connect_sync //try connect same socket This patch disabled tcp reconnect timer when we try to connect in synchronous mode, it seems to work. Signed-off-by: suruifeng Signed-off-by: Wang Xin diff --git a/chardev/char-

[PATCH 0/2][RFC] exclude ivshmem mr from vhost sections

2020-08-28 Thread Wang Xin
clude it from the vhost sections. The 1st patch re-spin Dave's patch, see link https://lists.nongnu.org/archive/html/qemu-devel/2020-01/msg02370.html However, I'm not sure is there any side effects, or maybe it's better to add a new device property like 'novhost/nodma&#x

[PATCH 2/2] misc/ivshmem: Mark shared memory regions as no vhost

2020-08-28 Thread Wang Xin
Since ivshmem_bar2 not normal RAM in Guest, and it shouldn't have vhost DMAing into them, exclude it from the vhost sections, mark the shared memory regions as novhost. Signed-off-by: Wang Xin --- hw/misc/ivshmem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/misc/ivshmem.c

[PATCH 1/2] memory: Allow a MemoryRegion to be marked no_vhost

2020-08-28 Thread Wang Xin
Allow a memory region to be marked as 'no_vhost' and exclude that region from vhost's list build. Signed-off-by: Dr. David Alan Gilbert Signed-off-by: Wang Xin --- hw/virtio/vhost.c | 5 - include/exec/memory.h | 21 + softmmu/memory.c | 15 +++

[PATCH] migration/throttle: use the xfer pages as threshold

2020-03-31 Thread Wang Xin
If VM migration with lots of zero page or enable data compress, the peroid tansfer bytes may be much less than the available bandwidth, which trigger unnecessary guest throttle down. Use the raw transfer pages as the threshold instead. Signed-off-by: Wang Xin diff --git a/migration/ram.c b

[Qemu-devel] [PATCH] migration/fd: abort migration if receive POLLHUP event

2018-04-21 Thread Wang Xin
If the fd socket peer closed shortly, ppoll may receive a POLLHUP event before the expected POLLIN event, and qemu will do nothing but goes into an infinite loop of the POLLHUP event. So, abort the migration if we receive a POLLHUP event. Signed-off-by: Wang Xin diff --git a/migration/fd.c b

[Qemu-devel] [PATCH] pc: correct misspelled CPU model-id for pc 2.2

2018-01-30 Thread Wang Xin
Signed-off-by: Wang Xin diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index bb49165..635c8b2 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -617,7 +617,7 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *); #define PC_COMPAT_2_2 \ HW_COMPAT_2_2

[Qemu-devel] [PATCH] keyboard: fix qemu load empty keymap

2016-11-02 Thread Wang Xin
qemu_find_file do not check file is a directory or just a file. If qemu start with "-k ''", qemu_find_file get a empty string as keymap file name, then, qemu treat the keymap path as keymap file, it makes vnc keyboard input unusable. Signed-off-by: Wang Xin diff --git

[Qemu-devel] [PATCH] vga: use vbe_enabled() helper

2016-05-11 Thread Wang Xin
Commit bfa0f15 add vbe_enabled() helper, while it forget to replace the code in vbe_ioport_write_data(). Signed-off-by: Wang Xin --- hw/display/vga.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/display/vga.c b/hw/display/vga.c index 4a55ec6..455ef51 100644 --- a/hw