xhci: fix numintrs sanity checks
Make sure numintrs is a power of two, msi requires this.
https://bugzilla.redhat.com/show_bug.cgi?id=918035
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-redir: Fix crash on migration with no client connected
If no client is connected on the src side, then we won't receive aparser during migrate, in this case usbredir_post_load() should be a nop,rather then to try to derefefence the NULL dev->parser pointer....
usb-redir: Add flow control support
Signed-off-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Merge remote-tracking branch 'luiz/queue/qmp' into staging
configure: remove unset variables
These variables have not been set for a long time. Do notinclude them in config-host.mak.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Message-id: 1364918276-11866-1-git-send-email-pbonzini@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
oslib-posix: rename socket_set_nonblock() to qemu_set_nonblock()
The fcntl(fd, F_SETFL, O_NONBLOCK) flag is not specific to sockets.Rename to qemu_set_nonblock() just like qemu_set_cloexec().
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>...
net: ensure "socket" backend uses non-blocking fds
There are several code paths in net_init_socket() depending on how thesocket is created: file descriptor passing, UDP multicast, TCP, or UDP.Some of these support both listen and connect.
Not all code paths set the socket to non-blocking. This patch addresses...
qemu-socket: set passed fd non-blocking in socket_connect()
socket_connect() sets non-blocking on TCP or UNIX domain sockets if acallback function is passed. Do the same for file descriptor passing,otherwise we could unexpectedly be using a blocking file descriptor....
chardev: clear O_NONBLOCK on SCM_RIGHTS file descriptors
When we receive a file descriptor over a UNIX domain socket theO_NONBLOCK flag is preserved. Clear the O_NONBLOCK flag and rely onQEMU file descriptor users like migration, SPICE, VNC, block layer, and...
VMXNET3: initialize rx_ridx to eliminate compile warning
Gcc report "hw/vmxnet3.c:972: error: ‘rx_ridx’ may be useduninitialized in this function", so fix it.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>Message-id: 1364264646-27542-1-git-send-email-xiawenc@linux.vnet.ibm.com...
View all revisions | View revisions
Also available in: Atom