1. 14 11月, 2019 2 次提交
  2. 12 11月, 2019 1 次提交
  3. 16 10月, 2019 2 次提交
  4. 15 10月, 2019 1 次提交
  5. 14 10月, 2019 1 次提交
  6. 07 8月, 2019 3 次提交
  7. 13 6月, 2019 1 次提交
  8. 10 4月, 2019 4 次提交
  9. 18 3月, 2019 2 次提交
  10. 05 3月, 2019 1 次提交
  11. 14 12月, 2018 2 次提交
    • D
      Enforce a standard header file guard symbol name · 568a4172
      Daniel P. Berrangé 提交于
      Require that all headers are guarded by a symbol named
      
        LIBVIRT_$FILENAME
      
      where $FILENAME is the uppercased filename, with all characters
      outside a-z changed into '_'.
      
      Note we do not use a leading __ because that is technically a
      namespace reserved for the toolchain.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      568a4172
    • 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
  12. 20 8月, 2018 1 次提交
  13. 12 6月, 2018 2 次提交
  14. 25 5月, 2018 1 次提交
  15. 04 5月, 2018 2 次提交
  16. 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
  17. 16 10月, 2017 2 次提交
  18. 26 11月, 2016 1 次提交
    • J
      qemu: Avoid reporting "host" as a supported CPU model · 73411a7f
      Jiri Denemark 提交于
      "host" CPU model is supported by a special host-passthrough CPU mode and
      users is not allowed to specify this model directly with custom mode.
      Thus we should not advertise "host" CPU model in domain capabilities.
      This worked well on architectures for which libvirt provides a list of
      supported CPU models in cpu_map.xml (since "host" is not in the list).
      But we need to explicitly filter "host" model out for all other
      architectures.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      73411a7f
  19. 22 9月, 2016 4 次提交
    • J
      Show host model in domain capabilities · 14319c81
      Jiri Denemark 提交于
      The domain capabilities XML is capable of showing whether each guest CPU
      mode is supported or not with a possibility to provide additional
      details. This patch enhances host-model capability to advertise the
      exact CPU model which will be used as a host-model:
      
          <cpu>
              ...
              <mode name='host-model' supported='yes'>
                  <model fallback='allow'>Broadwell</model>
                  <vendor>Intel</vendor>
                  <feature policy='disable' name='aes'/>
                  <feature policy='require' name='vmx'/>
              </mode>
              ...
          </cpu>
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      14319c81
    • J
      domcaps: Add CPU usable flag · d4c007e6
      Jiri Denemark 提交于
      In case a hypervisor is able to tell us a list of supported CPU models
      and whether each CPU models can be used on the current host, we can
      propagate this to domain capabilities. This is a better alternative
      to calling virConnectCompareCPU for each supported CPU model.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      d4c007e6
    • J
      domcaps: Show only CPU models supported by libvirt · 33f9ccc1
      Jiri Denemark 提交于
      Listing all CPU models supported by QEMU in domain capabilities makes
      little sense when libvirt will refuse any model it doesn't know about.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      33f9ccc1
    • J
      domcaps: Add support for listing supported CPU models · 167280e7
      Jiri Denemark 提交于
      The patch adds <cpu> element to domain capabilities XML:
      
          <cpu>
              <mode name='host-passthrough' supported='yes'/>
              <mode name='host-model' supported='yes'/>
              <mode name='custom' supported='yes'>
                  <model>Broadwell</model>
                  <model>Broadwell-noTSX</model>
                  ...
              </mode>
          </cpu>
      
      Applications can use it to inspect what CPU configuration modes are
      supported for a specific combination of domain type, emulator binary,
      guest architecture and machine type.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      167280e7
  20. 10 5月, 2016 3 次提交
    • R
      conf: don't redefine virDomainCapsDeviceHostdev · 9dec97dd
      Roman Bogorodskiy 提交于
      Commit 5ed235c6 added unnecessary redifinition of
      virDomainCapsDeviceHostdev in conf/domain_capabilities.h. This breaks
      build with clang 3.4:
      
      In file included from conf/domain_capabilities.c:25:
      conf/domain_capabilities.h:88:44: error: redefinition of typedef
      'virDomainCapsDeviceHostdev' is a C11 feature
      [-Werror,-Wtypedef-redefinition]
      typedef struct _virDomainCapsDeviceHostdev virDomainCapsDeviceHostdev;
                                                 ^
      conf/domain_capabilities.h:86:44: note: previous definition is here
      typedef struct _virDomainCapsDeviceHostdev virDomainCapsDeviceHostdev;
      
      So drop one of those.
      9dec97dd
    • C
      domaincaps: Report video modelType · 5ed235c6
      Cole Robinson 提交于
      Requires adding the plumbing for <device><video>
      The value is <enum name='modelType'> to match the associated domain
      XML of <video><model type='XXX'/>
      
      Wire it up for qemu too
      5ed235c6
    • C
      domaincaps: Report graphics type enum · 6da27ad1
      Cole Robinson 提交于
      Requires adding the plumbing for <device><graphics>
      Wire it up for qemu too
      6da27ad1
  21. 20 4月, 2016 2 次提交
    • A
      conf: Expose GIC capabilities · 4e2d82f7
      Andrea Bolognani 提交于
      Add information about GIC capabilities to virDomainCaps and update
      the formatter to include them in the XML output.
      4e2d82f7
    • A
      conf: Get rid of virDomainCapsDevice · 29980231
      Andrea Bolognani 提交于
      The struct contains a single boolean field, 'supported':
      the meaning of this field is too generic to be limited to
      devices only, and in fact it's already being used for
      other things like loaders and OSs.
      
      Instead of trying to come up with a more generic name just
      get rid of the struct altogether.
      29980231
  22. 17 9月, 2014 1 次提交