1. 25 1月, 2019 1 次提交
  2. 24 1月, 2019 1 次提交
    • M
      domain_conf: Free egl render node in virDomainGraphicsDefFree · ca768886
      Michal Privoznik 提交于
       13 bytes in 1 blocks are definitely lost in loss record 44 of 179
          at 0x4C2EE6F: malloc (vg_replace_malloc.c:299)
          by 0x9514A69: strdup (in /lib64/libc-2.27.so)
          by 0x5E60C0B: virStrdup (virstring.c:956)
          by 0x54C856F: virHostGetDRMRenderNode (qemuxml2argvmock.c:190)
          by 0x57CB4E3: qemuProcessGraphicsSetupRenderNode (qemu_process.c:4860)
          by 0x57CB571: qemuProcessSetupGraphics (qemu_process.c:4881)
          by 0x57CE01B: qemuProcessPrepareDomain (qemu_process.c:6040)
          by 0x57D102E: qemuProcessCreatePretendCmd (qemu_process.c:6975)
          by 0x114C1C: testCompareXMLToArgv (qemuxml2argvtest.c:611)
          by 0x134B90: virTestRun (testutils.c:174)
          by 0x123478: mymain (qemuxml2argvtest.c:1697)
          by 0x136BFA: virTestMain (testutils.c:1112)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      ca768886
  3. 22 1月, 2019 2 次提交
  4. 02 1月, 2019 3 次提交
  5. 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
  6. 13 12月, 2018 2 次提交
  7. 12 12月, 2018 2 次提交
    • E
      conf: domain: gfx: Iterate over graphics devices when doing validation · dd45c271
      Erik Skultety 提交于
      The QEMU validation code for graphics has been in place for a while, but
      because it is only executed from virDomainDeviceInfoIterateInternal, it
      was never run, since the iterator expects the device to have boot info
      which graphics don't have. The unfortunate side effect of this whole mess
      was that a few capabilities were missing from the test suite (as commit
      d8266ebe demonstrated with graphics-spice-invalid-egl-headless test),
      which in turn meant that a few graphics tests which expected a failure
      happily accepted any failure the test runtime returned which made them
      succeed. The impact of this was that we then allowed to start a domain
      with multiple OpenGL-enabled graphics devices.
      
      This patch enables iteration over graphics devices. Unsurprisingly,
      a few tests started to fail as a result, so fix those too.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      dd45c271
    • E
      conf: domain: Introduce virDomainDeviceIterateFlags · 88d24aac
      Erik Skultety 提交于
      Validation of domain devices is accomplished via a generic device
      iterator which takes a callback, iterates over all kinds of supported
      device types and invokes the callback on every single device. However,
      there might be cases when we need to alter the behaviour of the
      iteration (most notably skip or include a group of devices). Therefore,
      this patch introduces iterator flags.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      88d24aac
  8. 11 12月, 2018 1 次提交
  9. 06 12月, 2018 1 次提交
  10. 03 12月, 2018 2 次提交
  11. 28 11月, 2018 1 次提交
  12. 27 11月, 2018 1 次提交
  13. 18 11月, 2018 1 次提交
  14. 17 11月, 2018 2 次提交
  15. 16 11月, 2018 1 次提交
    • M
      qemu: add memfd source type · 24b74d18
      Marc-André Lureau 提交于
      Add a new memoryBacking source type "memfd", supported by QEMU (when
      the capability is available).
      
      A memfd is a specialized anonymous memory kind. As such, an anonymous
      source type could be automatically using a memfd. However, there are
      some complications when migrating from different memory backends in
      qemu (mainly due to the internal object naming at this point, but
      there could be more). For now, it is simpler and safer to simply
      introduce a new source type "memfd". Eventually, the "anonymous" type
      could learn to use memfd transparently in a separate change.
      
      The main benefits are that it doesn't need to create filesystem files,
      and it also enforces sealing, providing a bit more safety.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      24b74d18
  16. 15 11月, 2018 6 次提交
  17. 14 11月, 2018 1 次提交
  18. 13 11月, 2018 1 次提交
  19. 30 10月, 2018 1 次提交
  20. 15 10月, 2018 1 次提交
  21. 24 9月, 2018 1 次提交
  22. 17 9月, 2018 2 次提交
  23. 13 9月, 2018 2 次提交
  24. 12 9月, 2018 1 次提交
    • L
      conf: correct false boot order error during domain parse · 7ea73429
      Laine Stump 提交于
      virDomainDefCollectBootOrder() is called for every item on the list
      for each type of device. One of the checks it makes is to gather the
      order attributes from the <boot> element of all devices, and assure
      that no two devices have been given the same order.
      
      Since (internally to libvirt, *not* in the domain XML) an <interface
      type='hostdev'> is on both the list of hostdev devices and the list of
      network devices, it will be counted twice, and the code that checks
      for multiple devices with the same boot order will give a false
      positive.
      
      To remedy this, we make sure to return early for hostdev devices that
      have a parent.type != NONE.
      
      This was introduced in commit 5b75a4, which was first in libvirt-4.4.0.
      
      Resolves: https://bugzilla.redhat.com/1601318Signed-off-by: NLaine Stump <laine@laine.org>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      7ea73429
  25. 10 9月, 2018 1 次提交
  26. 07 9月, 2018 1 次提交
    • A
      conf: Fix check for chardev source path · 614193fa
      Andrea Bolognani 提交于
      Attempting to use a chardev definition like
      
        <serial type='unix'>
          <target type='isa-serial'/>
        </serial>
      
      correctly results in an error being reported, since the source
      path - a required piece of information - is missing; however,
      the very similar
      
        <serial type='unix'>
          <target type='pci-serial'/>
        </serial>
      
      was happily accepted by libvirt, only to result in libvirtd
      crashing as soon as the guest was started.
      
      The issue was caused by checking the chardev's targetType
      against whitelisted values from virDomainChrChannelTargetType
      without first checking the chardev's deviceType to make sure
      it is actually a channel, for which the check makes sense,
      rather than a different type of chardev.
      
      The only reason this wasn't spotted earlier is that the
      whitelisted values just so happen to correspond to USB and
      PCI serial devices and Xen and UML consoles respectively,
      all of which are fairly uncommon.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1609720Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      614193fa