1. 20 5月, 2015 1 次提交
    • C
      qemu-sockets: Report explicit error if unlink fails · 0ef705a2
      Cole Robinson 提交于
      Consider this case:
      
      $ ls -ld ~/root-owned/
      drwx--x--x. 2 root root 4096 Apr 29 12:55 /home/crobinso/root-owned/
      $ ls -l ~/root-owned/foo.sock
      -rwxrwxrwx. 1 crobinso crobinso 0 Apr 29 12:55 /home/crobinso/root-owned/foo.sock
      
      $ qemu-system-x86_64 -vnc unix:~/root-owned/foo.sock
      qemu-system-x86_64: -vnc unix:/home/crobinso/root-owned/foo.sock: Failed to start VNC server: Failed to bind socket to /home/crobinso/root-owned/foo.sock: Address already in use
      
      ...which is techinically true, but the real error is that we failed to
      unlink. So report it.
      
      This may seem pathological but it's a real possibility via libvirt.
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      0ef705a2
  2. 26 2月, 2015 3 次提交
  3. 10 2月, 2015 2 次提交
  4. 09 10月, 2014 1 次提交
  5. 27 9月, 2014 1 次提交
  6. 17 9月, 2014 1 次提交
    • P
      util/qemu-sockets.c: Support specifying IPv4 or IPv6 in socket_dgram() · 8287fea3
      Peter Maydell 提交于
      Currently you can specify whether you want a UDP chardev backend
      to be IPv4 or IPv6 using the ipv4 or ipv6 options if you use the
      QemuOpts parsing code in inet_dgram_opts(). However the QMP struct
      parsing code in socket_dgram() doesn't provide this flexibility
      (which in turn prevents us from converting the UDP backend handling
      to the new style QAPI framework).
      
      Use the existing inet_addr_to_opts() function to convert the
      remote->inet address to option strings; this handles ipv4 and
      ipv6 flags as well as host and port. (It will also convert any
      'to' specification, which is harmless as it is ignored in this
      context.)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1409653457-27863-3-git-send-email-peter.maydell@linaro.org
      8287fea3
  7. 15 8月, 2014 1 次提交
  8. 23 6月, 2014 2 次提交
  9. 13 6月, 2014 1 次提交
  10. 10 6月, 2014 1 次提交
  11. 21 5月, 2014 1 次提交
  12. 07 1月, 2014 1 次提交
  13. 03 10月, 2013 1 次提交
  14. 29 6月, 2013 4 次提交
  15. 18 6月, 2013 1 次提交
  16. 24 4月, 2013 1 次提交
  17. 02 4月, 2013 2 次提交
  18. 23 3月, 2013 2 次提交
  19. 22 3月, 2013 1 次提交
  20. 13 3月, 2013 1 次提交
  21. 09 3月, 2013 1 次提交
  22. 11 2月, 2013 1 次提交
  23. 13 1月, 2013 1 次提交
  24. 19 12月, 2012 2 次提交
  25. 11 12月, 2012 1 次提交
  26. 21 11月, 2012 1 次提交
  27. 19 11月, 2012 1 次提交
  28. 03 11月, 2012 1 次提交
  29. 30 10月, 2012 2 次提交