1. 01 4月, 2018 2 次提交
  2. 22 2月, 2018 1 次提交
  3. 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
  4. 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
  5. 19 10月, 2017 2 次提交
  6. 04 9月, 2017 1 次提交
  7. 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
  8. 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
  9. 07 6月, 2017 1 次提交
  10. 05 6月, 2017 1 次提交
  11. 22 10月, 2016 2 次提交
  12. 26 9月, 2016 2 次提交
  13. 19 7月, 2016 1 次提交
  14. 11 7月, 2016 1 次提交
    • P
      conf: Add private data for virDomainVcpuDef · 5fe0b6b0
      Peter Krempa 提交于
      Allow to store driver specific data on a per-vcpu basis.
      
      Move of the virDomainDef*Vcpus* functions was necessary as
      virDomainXMLOptionPtr was declared below this block and I didn't want to
      split the function headers.
      5fe0b6b0
  15. 17 6月, 2016 1 次提交
  16. 26 5月, 2016 2 次提交
  17. 25 5月, 2016 1 次提交
  18. 20 5月, 2016 1 次提交
  19. 17 5月, 2016 1 次提交
  20. 02 5月, 2016 1 次提交
    • C
      conf: domain: reject name containing '/' · b1fc6a7b
      Cole Robinson 提交于
      Trying to define a domain name containing an embedded '/'
      will immediately fail when trying to write the XML to disk for
      our stateful drivers. This patch explicitly rejects names
      containing a '/', and provides an xmlopt feature for drivers
      to avoid this validation check, which is enabled in every
      non-stateful driver that already has xmlopt handling wired up.
      
      (Technically this could reject a previously accepted vmname like
       '/foo', however at least for the qemu driver that falls over
       later when starting qemu)
      
      https://bugzilla.redhat.com/show_bug.cgi?id=639923
      b1fc6a7b
  21. 13 4月, 2016 3 次提交
  22. 21 3月, 2016 1 次提交
    • C
      domain: Add virDomainDefAddImplicitDevices · 9a423d18
      Cole Robinson 提交于
      It's just a combination of AddImplicitControllers, and AddConsoleCompat.
      Every caller that wants ImplicitControllers also wants the ConsoleCompat
      AFAICT, so lump them together. We also need it for future patches.
      9a423d18
  23. 09 3月, 2016 2 次提交
    • P
      conf: refactor checking for unsupported memory devices · 185d13b1
      Peter Krempa 提交于
      Introduce a helper to check supported device and domain config and move
      the memory hotplug checks to it.
      
      The advantage of this approach is that by default all new features are
      considered unsupported by all hypervisors unless specifically changed
      rather than the previous approach where every hypervisor would need to
      declare that a given feature is unsupported.
      185d13b1
    • P
      conf: introduce parser feature flags · 23eb3821
      Peter Krempa 提交于
      To avoid having to forbid new features added to domain XML in post parse
      callbacks for individual hypervisor drivers the feature flag mechanism
      will allow to add a central check that will be disabled for the drivers
      that will add support.
      
      As a first example flag, the 'hasWideSCSIBus' is converted to the new
      bitmap.
      23eb3821
  24. 08 3月, 2016 1 次提交
  25. 25 1月, 2016 1 次提交
  26. 11 1月, 2016 1 次提交
  27. 09 12月, 2015 6 次提交