Skip to content
Snippets Groups Projects
  1. Mar 10, 2016
    • Paolo Bonzini's avatar
      io: implement socket watch for win32 using WSAEventSelect+select · a5897205
      Paolo Bonzini authored
      
      On Win32 we cannot directly poll on socket handles. Instead we
      create a Win32 event object and associate the socket handle with
      the event. When the event signals readyness we then have to
      use select to determine which events are ready. Creating Win32
      events is moderately heavyweight, so we don't want todo it
      every time we create a GSource, so this associates a single
      event with a QIOChannel.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
      a5897205
    • Paolo Bonzini's avatar
      io: introduce qio_channel_create_socket_watch · b83b68a0
      Paolo Bonzini authored
      
      Sockets are not in the same namespace as file descriptors on Windows.
      As an initial step, introduce separate APIs for file descriptor and
      socket watches.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      b83b68a0
    • Daniel P. Berrangé's avatar
      osdep: fix socket_error() to work with Mingw64 · c6196440
      Daniel P. Berrangé authored
      
      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: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
      c6196440
  2. Mar 08, 2016
  3. Mar 07, 2016
  4. Mar 04, 2016
  5. Mar 03, 2016
  6. Mar 01, 2016
  7. Feb 29, 2016
    • Michal Privoznik's avatar
      spice/gl: Enable dmabuf only for spice >= 0.13.1 · 9f5c6d06
      Michal Privoznik authored
      
      After 474114b7 the dmabuf feature is enabled whenever spice
      greater than or equal to spice 0.13.0 is found. This is because
      two new functions are required: spice_qxl_gl_scanout and
      spice_qxl_gl_draw_async. These were, however, introduce in 0.13.1
      release. Well, technically they haven't been released yet, but
      for sure they are not going to be part of 0.13.0 release (for the
      ABI stability sake).
      
      Signed-off-by: default avatarMichal Privoznik <mprivozn@redhat.com>
      Message-id: 1a724e97cb587624d6f6009c15395496bccfa32b.1456317738.git.mprivozn@redhat.com
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      9f5c6d06
  8. Feb 28, 2016
    • Greg Kurz's avatar
      xics: report errors with the QEMU Error API · a005b3ef
      Greg Kurz authored
      
      Using the return value to report errors is error prone:
      - xics_alloc() returns -1 on error but spapr_vio_busdev_realize() errors
        on 0
      - xics_alloc_block() returns the unclear value of ics->offset - 1 on error
        but both rtas_ibm_change_msi() and spapr_phb_realize() error on 0
      
      This patch adds an errp argument to xics_alloc() and xics_alloc_block() to
      report errors. The return value of these functions is a valid IRQ number
      if errp is NULL. It is undefined otherwise.
      
      The corresponding error traces get promotted to error messages. Note that
      the "can't allocate IRQ" error message in spapr_vio_busdev_realize() also
      moves to xics_alloc(). Similar error message consolidation isn't really
      applicable to xics_alloc_block() because callers have extra context (device
      config address, MSI or MSIX).
      
      This fixes the issues mentioned above.
      
      Based on previous work from Brian W. Hart.
      
      Signed-off-by: default avatarGreg Kurz <gkurz@linux.vnet.ibm.com>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      a005b3ef
    • Greg Kurz's avatar
      migration: allow machine to enforce configuration section migration · 902c053d
      Greg Kurz authored
      
      Migration of pseries-2.3 doesn't have configuration section. Unfortunately,
      QEMU 2.4/2.4.1/2.5 are buggy and always stream and expect the configuration
      section, and break migration both ways.
      
      This patch introduces a property which allows to enforce a configuration
      section for machines who don't have one.
      
      It can be set at startup:
      
      -machine enforce-config-section=on
      
      or later from the QEMU monitor:
      
      qom-set /machine enforce-config-section on
      
      It is up to the tooling to set or unset this property according to the
      version of the QEMU at the other end of the pipe.
      
      Signed-off-by: default avatarGreg Kurz <gkurz@linux.vnet.ibm.com>
      Reviewed-by: default avatarLaurent Vivier <lvivier@redhat.com>
      Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      902c053d
  9. Feb 26, 2016
  10. Feb 25, 2016
Loading