1. 11 3月, 2016 3 次提交
    • D
      io: initialize sockets in test program · 5838d66e
      Daniel P. Berrange 提交于
      The win32 sockets layer requires that socket_init() is called
      otherwise nothing will work.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      5838d66e
    • D
      io: use bind() to check for IPv4/6 availability · 0a27af91
      Daniel P. Berrange 提交于
      Currently the test-io-channel-socket.c test uses getifaddrs
      to see if an IPv4/6 address is present on any host NIC, as
      a way to determine if IPv4/6 sockets can be used. This is
      problematic because getifaddrs is not available on Win32.
      
      Rather than testing indirectly via getifaddrs, just create
      a socket and try to bind() to the loopback address instead.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      0a27af91
    • D
      osdep: fix socket_error() to work with Mingw64 · c6196440
      Daniel P. Berrange 提交于
      Historically QEMU has had a socket_error() macro that was
      defined to map to WSASocketError(). The os-win32.h header
      file would define errno constants that mapped to the
      WSA error constants. This worked fine with Mingw32 since
      its header files never defined any errno values, nor did
      it even provide an errno.h.  So callers of socket_error()
      could match on traditional Exxxx constants and it would
      all "just work".
      
      With Mingw64 though, things work rather differently. First
      there is an errno.h file which defines all the traditional
      errno constants you'd expect from a UNIX platform. There
      is then a winerror.h which defined the WSA error constants.
      Crucially the WSAExxxx errno values in winerror.h do not
      match the Exxxx errno values in error.h.
      
      If QEMU had only imported winerror.h it would still work,
      but the qemu/osdep.h file unconditionally imports errno.h.
      So callers of socket_error() will get now WSAExxxx values
      back and compare them to the Exxx constants. This will
      always fail silently at runtime.
      
      To solve this QEMU needs to stop assuming the WSAExxxx
      constant values match the Exxx constant values. Thus the
      socket_error() macro is turned into a small function that
      re-maps WSAExxxx values into Exxx.
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      c6196440
  2. 10 3月, 2016 1 次提交
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160309-1' into staging · a648c137
      Peter Maydell 提交于
      add linux evdev support, vnc and console fixes.
      
      # gpg: Signature made Wed 09 Mar 2016 09:02:47 GMT using RSA key ID D3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      
      * remotes/kraxel/tags/pull-ui-20160309-1:
        ui/console: add escape sequence \e[5, 6n
        input-linux: add switch to enable auto-repeat events
        input-linux: add option to toggle grab on all devices
        input: linux evdev support
        vnc: send cursor when a new client is connecting
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a648c137
  3. 09 3月, 2016 6 次提交
  4. 08 3月, 2016 29 次提交
  5. 07 3月, 2016 1 次提交