1. 21 8月, 2019 3 次提交
  2. 23 4月, 2019 1 次提交
    • M
      vmx: Free @firmware in virVMXParseConfig · 528e26e7
      Michal Privoznik 提交于
      The @firmware string is allocated, but never freed.
      
       4 bytes in 1 blocks are definitely lost in loss record 1 of 44
          at 0x483579F: malloc (vg_replace_malloc.c:299)
          by 0x76FB469: strdup (strdup.c:42)
          by 0x497B6DE: virStrdup (virstring.c:966)
          by 0x48F6FD3: virConfGetValueString (virconf.c:908)
          by 0x4B3E9B6: virVMXGetConfigStringHelper (vmx.c:736)
          by 0x4B3EA6B: virVMXGetConfigString (vmx.c:756)
          by 0x4B41AEA: virVMXParseConfig (vmx.c:1832)
          by 0x10B8E4: testCompareFiles (vmx2xmltest.c:79)
          by 0x10BAB8: testCompareHelper (vmx2xmltest.c:124)
          by 0x10D058: virTestRun (testutils.c:174)
          by 0x10CDDA: mymain (vmx2xmltest.c:288)
          by 0x10F11C: virTestMain (testutils.c:1096)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NPino Toscano <ptoscano@redhat.com>
      528e26e7
  3. 17 4月, 2019 2 次提交
  4. 16 4月, 2019 2 次提交
  5. 12 4月, 2019 1 次提交
  6. 03 4月, 2019 2 次提交
  7. 07 3月, 2019 2 次提交
  8. 05 3月, 2019 1 次提交
    • C
      qemu: Support scsi controller model=virtio-{non-}transitional · 448a0947
      Cole Robinson 提交于
      Add <controller type='scsi' model handling for virtio transitional
      devices. Ex:
      
        <controller type='scsi' model='virtio-transitional'/>
      
      * "virtio-transitional" maps to qemu "virtio-scsi-pci-transitional"
      * "virtio-non-transitional" maps to qemu "virtio-scsi-non-transitional"
      
      The naming here doesn't match the pre-existing model=virtio-scsi.
      The prescence of '-scsi' there seems kind of redundant as we have
      type='scsi' already, so I decided to follow the pattern of other
      patches and use virtio-transitional etc.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      448a0947
  9. 04 2月, 2019 1 次提交
  10. 05 12月, 2018 1 次提交
  11. 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
  12. 22 6月, 2018 1 次提交
  13. 11 6月, 2018 1 次提交
  14. 29 5月, 2018 1 次提交
    • J
      vmx: add VIR_DOMAIN_DEF_FEATURE_NO_BOOT_ORDER · 8e5e5a95
      Ján Tomko 提交于
      Further patches will introduce validation and a default setting
      of def->os.bootDevs in postParse.
      
      Introduce a feature flag to opt out of this and set it in the vmx
      driver, otherwise we would be adding it <boot dev='hd'/> into every
      vmx config despite having no way to change it.
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      8e5e5a95
  15. 04 5月, 2018 1 次提交
  16. 20 4月, 2018 2 次提交
  17. 01 4月, 2018 3 次提交
  18. 22 2月, 2018 1 次提交
  19. 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
  20. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  21. 19 10月, 2017 2 次提交
  22. 04 9月, 2017 1 次提交
  23. 24 8月, 2017 1 次提交
    • J
      vmx: do not treat controllers as implicit devices · d9fc08d1
      Ján Tomko 提交于
      When parsing the config, we look for the SCSI controllers one by one,
      remembering their models, then let virDomainDefAddImplicitDevices
      add them if any SCSI disk is using them.
      
      Since these controllers are not really implicit (they are present
      in the source config), add them explicitly.
      
      This patch maintains the behavior of not adding a controller
      if it was present in the config, but no disk was using it.
      
      This also resolves the memory leak of virVMXParseConfig overwriting
      the video device added by calling virDomainDefAddImplicitDevices
      before the parsing is finished.
      Reported-by: NMichal Privoznik <mprivozn@redhat.com>
      d9fc08d1
  24. 08 8月, 2017 1 次提交
    • J
      introduce virConfReadString · e9f32227
      Ján Tomko 提交于
      Rewrite virConfReadMem to take a null-terminated string.
      All the callers were calling strlen on it anyway.
      e9f32227
  25. 07 6月, 2017 1 次提交
  26. 05 6月, 2017 1 次提交
  27. 22 10月, 2016 2 次提交
  28. 26 9月, 2016 2 次提交