1. 15 11月, 2019 1 次提交
  2. 12 11月, 2019 1 次提交
  3. 25 10月, 2019 1 次提交
  4. 21 10月, 2019 1 次提交
  5. 16 10月, 2019 1 次提交
  6. 15 10月, 2019 1 次提交
  7. 14 10月, 2019 1 次提交
  8. 11 10月, 2019 1 次提交
  9. 10 9月, 2019 1 次提交
  10. 30 4月, 2019 1 次提交
  11. 20 4月, 2019 1 次提交
    • M
      libxlDriverConfigDispose: Free @configBaseDir too · 4f18b2d7
      Michal Privoznik 提交于
      Allocated in libxlDriverConfigNew(), the @configBaseDir is never
      freed.
      
       13 bytes in 1 blocks are definitely lost in loss record 36 of 125
          at 0x483579F: malloc (vg_replace_malloc.c:299)
          by 0x8012469: strdup (strdup.c:42)
          by 0x52926DE: virStrdup (virstring.c:966)
          by 0x11D46B: libxlDriverConfigNew (libxl_conf.c:1749)
          by 0x114D78: testCompareXMLToDomConfig (libxlxml2domconfigtest.c:62)
          by 0x1152A3: testCompareXMLToDomConfigHelper (libxlxml2domconfigtest.c:160)
          by 0x115925: virTestRun (testutils.c:174)
          by 0x1154A4: mymain (libxlxml2domconfigtest.c:216)
          by 0x1179E9: virTestMain (testutils.c:1096)
          by 0x1154FD: main (libxlxml2domconfigtest.c:224)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4f18b2d7
  12. 18 4月, 2019 1 次提交
  13. 17 4月, 2019 2 次提交
  14. 10 4月, 2019 1 次提交
  15. 03 4月, 2019 1 次提交
  16. 14 3月, 2019 1 次提交
  17. 05 3月, 2019 1 次提交
  18. 04 2月, 2019 1 次提交
  19. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  20. 07 12月, 2018 1 次提交
    • J
      libxl: support openvswitch interfaces · de09ae2f
      Jim Fehlig 提交于
      It is currently possible to use <interface>s of type openvswitch
      with the libxl driver in a non-standard way, e.g.
      
        <interface type='bridge'>
          <source bridge='ovsbr0'/>
          <mac address='00:16:3e:7a:35:ce'/>
          <script path='vif-openvswitch'/>
        </interface>
      
      This patch adds support for openvswitch <interface>s specified
      in typical libvirt config
      
        <interface type='bridge'>
          <source bridge='ovsbr0'/>
          <mac address='00:16:3e:7a:35:ce'/>
          <virtualport type='openvswitch'/>
        </interface>
      
      VLAN tags and trunking are also supported using the extended
      syntax for specifying an openvswitch bridge in libxl
      
         BRIDGE_NAME[.VLAN][:TRUNK:TRUNK]
      
      See Xen's networking wiki for more details on openvswitch support
      
      https://wiki.xenproject.org/wiki/Xen_Networking#Open_vSwitchSigned-off-by: NJim Fehlig <jfehlig@suse.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      de09ae2f
  21. 05 12月, 2018 1 次提交
  22. 27 11月, 2018 2 次提交
  23. 25 9月, 2018 2 次提交
  24. 23 7月, 2018 1 次提交
    • A
      src: Make virStr*cpy*() functions return an int · 6c0d0210
      Andrea Bolognani 提交于
      Currently, the functions return a pointer to the
      destination buffer on success or NULL on failure.
      
      Not only does this kind of error handling look quite
      alien in the context of libvirt, where most functions
      return zero on success and a negative int on failure,
      but it's also somewhat pointless because unless there's
      been a failure the returned pointer will be the same
      one passed in by the user, thus offering no additional
      value.
      
      Change the functions so that they return an int
      instead.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      6c0d0210
  25. 19 7月, 2018 1 次提交
    • E
      qemu: Introduce a new graphics display type 'headless' · d8266ebe
      Erik Skultety 提交于
      Since 2.10 QEMU supports a new display type egl-headless which uses the
      drm nodes for OpenGL rendering copying back the rendered bits back to
      QEMU into a dma-buf which can be accessed by standard "display" apps
      like VNC or SPICE. Although this display type can be used on its own,
      for any practical use case it makes sense to pair it with either VNC or
      SPICE display. The clear benefit of this display is that VNC gains
      OpenGL support, which it natively doesn't have, and SPICE gains remote
      OpenGL support (native OpenGL support only works locally through a UNIX
      socket, i.e. listen type=socket/none).
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      d8266ebe
  26. 18 4月, 2018 6 次提交
  27. 12 4月, 2018 1 次提交
  28. 22 3月, 2018 1 次提交
    • J
      libxl: don't hardcode scheduler weight · 83edaf44
      Jim Fehlig 提交于
      Long ago in commit dfa1e1dd the scheduler weight was accidentally
      hardcoded to 1000. Weight is a setting with no unit since it is
      relative to the weight of other domains. If no weight is specified,
      libxl defaults to 256.
      
      Instead of hardcoding the weight to 1000, honor any <shares> specified
      in <cputune>. libvirt's notion of shares is synonomous to libxl's
      scheduler weight setting. If shares is unspecified, defer default
      weight setting to libxl.
      
      Removing the hardcoded weight required some test fixup. While at it,
      add an explicit test for <shares> conversion to scheduler weight.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      83edaf44
  29. 24 2月, 2018 1 次提交
    • J
      libxl: round memory values to next 1MiB increment · ef71caea
      Jim Fehlig 提交于
      libxl requires the memory sizes to be rounded to 1MiB increments.
      Attempting to start a domain that violates this requirement will
      fail with the marginally helpful error
      
      2018-02-22 01:55:32.921+0000: xc: panic: xc_dom_boot.c:141: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
      2018-02-22 01:55:32.921+0000: libxl: libxl_dom.c:671:libxl__build_dom: xc_dom_boot_mem_init failed: No such file or directory
      
      Round the maximum and current memory values to the next 1MiB
      increment when generating the libxl_domain_config object.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      ef71caea
  30. 22 2月, 2018 2 次提交
  31. 20 2月, 2018 1 次提交
    • D
      conf: add enum constants for default controller models · a302480d
      Daniel P. Berrangé 提交于
      The controller model is slightly unusual in that the default value is
      -1, not 0. As a result the default value is not covered by any of the
      existing enum cases. This in turn means that any switch() statements
      that think they have covered all cases, will in fact not match the
      default value at all. In the qemuDomainDeviceCalculatePCIConnectFlags()
      method this has caused a serious mistake where we fallthrough from the
      SCSI controller case, to the VirtioSerial controller case, and from
      the USB controller case to the IDE controller case.
      
      By adding explicit enum constant starting at -1, we can ensure switches
      remember to handle the default case.
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      a302480d