Projects
home:dongzhihai
qemu
_service:tar_scm:fix-qemu-core-when-vhost-user-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:fix-qemu-core-when-vhost-user-net-config-with-server.patch of Package qemu
From 97335ac382e36db18a61d3891f1fafd15475822e Mon Sep 17 00:00:00 2001 From: caojinhuahw <caojinhua1@huawei.com> Date: Mon, 19 Dec 2022 12:35:50 +0000 Subject: [PATCH] fix qemu-core when vhost-user-net config with server mode commit 3a223111d7 set default reconnect for vhost-user-net device, if vhost-user-net config with server mode will casuse the core when ovs client stop. tcp_chr_disconnect ---> set tcp_char state disconnect tcp_chr start reconnect ---> set tcp_char state connecting tcp_char is listen ---> call tcp_chr_accept() fun tcp_char_accept() set tcp_char state to connecting, but current tcp_char state already is connecting, assert failed in tcp_char_change_state() raise qemu core assert(s->state == TCP_CHARDEV_STATE_DISCONNECTED) this commit check tcp_char mode, if tcp_char config with server mode, dont set reconnect time for tcp_chr. fix: 3a223111d7 vhost-user: Add support reconnect vhost-user socket Signed-off-by: caojinhuahw <caojinhua1@huawei.com> --- chardev/char-socket.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chardev/char-socket.c b/chardev/char-socket.c index 9c60e15c8e..0c9ab069ae 100644 --- a/chardev/char-socket.c +++ b/chardev/char-socket.c @@ -347,6 +347,12 @@ static void tcp_chr_set_reconnect_time(Chardev *chr, void qemu_chr_set_reconnect_time(Chardev *chr, int64_t reconnect_time) { ChardevClass *cc = CHARDEV_GET_CLASS(chr); + SocketChardev *s = SOCKET_CHARDEV(chr); + + /* if sock dev is listen, dont set reconnect time */ + if (s->is_listen) { + return; + } if (cc->chr_set_reconnect_time) { cc->chr_set_reconnect_time(chr, reconnect_time); -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2