1. 29 8月, 2018 1 次提交
  2. 26 6月, 2018 1 次提交
  3. 03 3月, 2018 1 次提交
  4. 09 2月, 2018 5 次提交
  5. 12 1月, 2018 3 次提交
  6. 20 6月, 2017 1 次提交
  7. 14 6月, 2017 1 次提交
  8. 13 6月, 2017 1 次提交
  9. 27 2月, 2017 1 次提交
  10. 20 2月, 2017 1 次提交
  11. 23 9月, 2016 1 次提交
  12. 03 6月, 2016 1 次提交
  13. 24 3月, 2016 1 次提交
  14. 17 3月, 2016 1 次提交
  15. 23 2月, 2016 2 次提交
    • D
      Postcopy+spice: Pass spice migration data earlier · b82fc321
      Dr. David Alan Gilbert 提交于
      Spice hooks the migration status changes to figure out when to
      transmit information to the new spice server; but the migration
      status in postcopy doesn't quite fit - the destination starts
      running before the end of the source migration.
      
      It's not a case of hanging off the migration status change to
      postcopy-active either, since that happens before we stop the
      guest CPU.
      
      Fix it by sending a notify just after sending the device state,
      and adding a flag that can be tested by the notify receiver.
      
      Symptom:
         spice handover doesn't work with the error:
         red_worker.c:11540:display_channel_wait_for_migrate_data: timeout
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NAmit Shah <amit.shah@redhat.com>
      Message-id: 1456161452-25318-1-git-send-email-dgilbert@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      b82fc321
    • G
      spice: add opengl/virgl/dmabuf support · 474114b7
      Gerd Hoffmann 提交于
      This adds support for dma-buf passing to spice.  This makes virtio-gpu
      with 3d acceleration work with spice.
      
      Workflow:
       * virglrenderer renders the guest command stream into a texture.
       * qemu exports the texture as dma-buf and passes on that dma-buf
         to spice-server.
       * spice-server passes the dma-buf to spice-client, using unix
         socket file descriptor passing.
       * spice-client asks the window systems composer to render the
         dma-buf to the screen.
      
      Requires cutting edge spice (server) and spice-gtk (client) builds,
      from git master branch.
      
      Also requires libvirt managing your qemu instance, and using
      "virt-viewer --attach $guest".  libvirt will connect spice-server and
      spice-client using unix sockets instead of tcp sockets then, which
      is required for file descriptor passing.
      
      Works for the local case (spice server and client on the same machine)
      only.  Supporting remote too is planned (by feeding the dma-bufs into
      gpu-assisted video encoder), but not there yet.
      
      gl mode is turned off by default, use "-spice gl=on,$otherargs" to
      enable it.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      474114b7
  16. 05 2月, 2016 1 次提交
    • P
      ui: Clean up includes · e16f4c87
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-2-git-send-email-peter.maydell@linaro.org
      e16f4c87
  17. 18 1月, 2016 1 次提交
    • C
      Fix corner-case when using VNC+SASL+SPICE · 06bb8814
      Christophe Fergeau 提交于
      Similarly to the commit 764eb39d fixing VNC+SASL+QXL, when starting
      QEMU with SPICE but no SASL, and at the same time VNC with SASL, then
      spice_server_init() will get called without a previous call to
      spice_server_set_sasl_appname(), which will cause cyrus-sasl to
      try to use /etc/sasl2/spice.conf (spice-server uses "spice" as its
      default appname) rather than the expected /etc/sasl2/qemu.conf.
      
      This commit unconditionally calls spice_server_set_sasl_appname()
      before calling spice_server_init() in order to use the correct appname
      even if SPICE without SASL was requested on qemu command line.
      Signed-off-by: NChristophe Fergeau <cfergeau@redhat.com>
      Message-id: 1452607738-1521-1-git-send-email-cfergeau@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      06bb8814
  18. 02 11月, 2015 1 次提交
    • E
      qapi: Unbox base members · ddf21908
      Eric Blake 提交于
      Rather than storing a base class as a pointer to a box, just
      store the fields of that base class in the same order, so that
      a child struct can be directly cast to its parent.  This gives
      less malloc overhead, less pointer dereferencing, and even less
      generated code.  Compare to the earlier commit 1e6c1616 "qapi:
      Generate a nicer struct for flat unions" (although that patch
      had fewer places to change, as less of qemu was directly using
      qapi structs for flat unions).  It also allows us to turn on
      automatic type-safe wrappers for upcasting to the base class
      of a struct.
      
      Changes to the generated code look like this in qapi-types.h:
      
      | struct SpiceChannel {
      |-    SpiceBasicInfo *base;
      |+    /* Members inherited from SpiceBasicInfo: */
      |+    char *host;
      |+    char *port;
      |+    NetworkAddressFamily family;
      |+    /* Own members: */
      |     int64_t connection_id;
      
      as well as additional upcast functions like qapi_SpiceChannel_base().
      Meanwhile, changes to qapi-visit.c look like:
      
      | static void visit_type_SpiceChannel_fields(Visitor *v, SpiceChannel **obj, Error **errp)
      | {
      |     Error *err = NULL;
      |
      |-    visit_type_implicit_SpiceBasicInfo(v, &(*obj)->base, &err);
      |+    visit_type_SpiceBasicInfo_fields(v, (SpiceBasicInfo **)obj, &err);
      |     if (err) {
      
      (the cast is necessary, since our upcast wrappers only deal with a
      single pointer, not pointer-to-pointer); plus the wholesale
      elimination of some now-unused visit_type_implicit_FOO() functions.
      
      Without boxing, the corner case of one empty struct having
      another empty struct as its base type now requires inserting a
      dummy member (previously, the 'Base *base' member sufficed).
      
      And now that we no longer consume a 'base' member in the generated
      C struct, we can delete the former negative struct-base-clash-base
      test.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1445898903-12082-11-git-send-email-eblake@redhat.com>
      [Commit message tweaked slightly]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      ddf21908
  19. 23 6月, 2015 1 次提交
  20. 09 6月, 2015 2 次提交
  21. 29 5月, 2015 1 次提交
  22. 27 4月, 2015 1 次提交
    • M
      monitor: Make client_migrate_info synchronous · 3b5704b2
      Markus Armbruster 提交于
      Live migration with spice works like this today:
      
        (1) client_migrate_info monitor cmd
        (2) spice server notifies client, client connects to target host.
        (3) qemu waits until spice client connect is finished.
        (4) send over vmstate (i.e. main part of live migration).
        (5) spice handover to target host.
      
      (3) is implemented by making client_migrate_info a async monitor
      command.  This is the only async monitor command we have.
      
      The original reason to implement this dance was that qemu did not accept
      new tcp connections while the incoming migration was running, so (2) and
      (4) could not be done in parallel.  That issue was fixed long ago though.
      Qemu version 1.3.0 (released Dec 2012) and newer happily accept tcp
      connects while the incoming migration runs.
      
      Time to drop step (3).  This patch does exactly that, by making the
      monitor command synchronous and removing the code needed to handle the
      async monitor command in ui/spice-core.c
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      3b5704b2
  23. 22 1月, 2015 1 次提交
  24. 16 12月, 2014 3 次提交
  25. 16 9月, 2014 1 次提交
  26. 01 9月, 2014 1 次提交
  27. 15 8月, 2014 1 次提交
  28. 11 7月, 2014 1 次提交
    • G
      spice: auth fixes · b1ea7b79
      Gerd Hoffmann 提交于
      Set auth to sasl when sasl is enabled, this makes "info spice" correctly
      display sasl auth.  Also throw an error in case someone tries to set
      a spice password via monitor without auth mode being "spice".
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      b1ea7b79
  29. 23 6月, 2014 2 次提交