qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/4] Improve error reporting
@ 2017-06-12 14:15 Mao Zhongyi
  2017-06-12 14:15 ` [Qemu-devel] [PATCH v4 1/4] net/socket: Drop the odd 'default' case and comment Mao Zhongyi
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Mao Zhongyi @ 2017-06-12 14:15 UTC (permalink / raw)
  To: qemu-devel; +Cc: jasowang, armbru, berrange, kraxel, pbonzini

Daniel's patch(commit 6701e551, Revert "Change net/socket.c to use socket_*() 
functions" again) has been in upstream. Continue this patchset.

In v2, this series convert the non-blocking connect mechanism to QIOchannel 
by replace the socket_connect(), and some errors also are converted to Error. 

The v2 related discussion was listed on:
https://lists.gnu.org/archive/html/qemu-devel/2017-04/msg04886.html

v4: 
* PATCH 01 is redoing previous patch 1, replace the fprintf() with error_report()
		     in the 'default' case of net_socket_fd_init() [Markus Armbruster]

v3:
* PATCH 01 is suggested by Markus and Daniel that removes the dubious 'default' case
           in the net_socket_fd_init(). Jason agreed.
* PATCH 02 is redoing previous patch 4.
* PATCH 04 is redoing previous patch 2, improves sort of error messages. 

v2:
* PATCH 02 reworking of patch 2 following Markus's suggestion that convert error_report()
           in the function called by net_socket_*_init() to Error. Also add many error 
           handling information.
* PATCH 03 net_socket_mcast_create(), net_socket_fd_init_dgram() and net_socket_fd_init() 
           use the function such as fprintf, perror to report an error message. Convert it 
           to Error.
* PATCH 04 parse_host_port() may fail without reporting an error. Now, fix it to set an
           error when it fails.


Cc: jasowang@redhat.com
Cc: armbru@redhat.com
Cc: berrange@redhat.com
Cc: kraxel@redhat.com
Cc: pbonzini@redhat.com

Mao Zhongyi (4):
  net/socket: Drop the odd 'default' case and comment
  net/net: Convert parse_host_port() to Error
  net/socket: Convert error report message to Error
  net/socket: Improve -net socket error reporting

 include/qemu/sockets.h |   2 +-
 net/net.c              |  21 ++++++--
 net/socket.c           | 133 +++++++++++++++++++++++++++++--------------------
 3 files changed, 96 insertions(+), 60 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-06-26  6:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12 14:15 [Qemu-devel] [PATCH v4 0/4] Improve error reporting Mao Zhongyi
2017-06-12 14:15 ` [Qemu-devel] [PATCH v4 1/4] net/socket: Drop the odd 'default' case and comment Mao Zhongyi
2017-06-23 13:36   ` Markus Armbruster
2017-06-26  6:13     ` Mao Zhongyi
2017-06-12 14:15 ` [Qemu-devel] [PATCH v4 2/4] net/net: Convert parse_host_port() to Error Mao Zhongyi
2017-06-23 14:09   ` Markus Armbruster
2017-06-23 14:21     ` Markus Armbruster
2017-06-26  6:17       ` Mao Zhongyi
2017-06-12 14:15 ` [Qemu-devel] [PATCH v4 3/4] net/socket: Convert error report message " Mao Zhongyi
2017-06-12 14:15 ` [Qemu-devel] [PATCH v4 4/4] net/socket: Improve -net socket error reporting Mao Zhongyi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).