1. 12 6月, 2018 1 次提交
  2. 08 6月, 2018 3 次提交
  3. 07 6月, 2018 1 次提交
    • D
      Don't use enums in TPM struct fields · ed29219f
      Daniel P. Berrangé 提交于
      When using an enum in a struct field, the compiler is free to decide to
      make it an unsigned type if it desires. This in turn leads to bugs when
      code does
      
          if ((def->foo = virDomainFooTypeFromString(str)) < 0)
             ...
      
      because 'def->foo' can't technically have an unsigned value from the
      compiler's POV. While it is possible to add (int) casts in the code
      example above, this is not desirable because it is easy to miss out
      such casts. eg the code fixed here caused an error with clang builds
      
      ../../src/conf/domain_conf.c:12838:73: error: comparison of unsigned enum expression < 0 is always false [-Werror,-Wtautological-compare]
              if ((def->version = virDomainTPMVersionTypeFromString(version)) < 0) {
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      ed29219f
  4. 06 6月, 2018 5 次提交
  5. 05 6月, 2018 5 次提交
  6. 01 6月, 2018 1 次提交
  7. 31 5月, 2018 3 次提交
  8. 30 5月, 2018 1 次提交
  9. 29 5月, 2018 10 次提交
  10. 25 5月, 2018 2 次提交
    • J
      domcaps: Add 'genid' to domain capabilities · 0f358fcd
      John Ferlan 提交于
      Report domaincaps <features><genid supported='yes'/> if the guest
      config accepts <genid/> or <genid>$GUID</genid>.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      0f358fcd
    • J
      conf: Add VM Generation ID parse/format support · b50efe97
      John Ferlan 提交于
      The VM Generation ID is a mechanism to provide a unique 128-bit,
      cryptographically random, and integer value identifier known as
      the GUID (Globally Unique Identifier) to the guest OS. The value
      is used to help notify the guest operating system when the virtual
      machine is executed with a different configuration.
      
      This patch adds support for a new "genid" XML element similar to
      the "uuid" element. The "genid" element can have two forms "<genid/>"
      or "<genid>$GUID</genid>". If the $GUID is not provided, libvirt
      will generate one and save it in the XML.
      
      Since adding support for a generated GUID (or UUID like) value to
      be displayed modifying the xml2xml test to include virrandommock.so
      is necessary since it will generate a "known" value.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      b50efe97
  11. 23 5月, 2018 2 次提交
  12. 16 5月, 2018 3 次提交
  13. 15 5月, 2018 1 次提交
  14. 14 5月, 2018 2 次提交