1. 24 6月, 2020 2 次提交
    • D
      qemu: fix missing error reports in capabilities probing · 5331c480
      Daniel P. Berrangé 提交于
      The "virsh domcapabilities --arch ppc64" command will fail with no
      error message set if qemu-system-ppc64 is not currently installed.
      
      This is because virQEMUCapsCacheLookup() does not report any error
      message if not capabilities can be obtained from the cache. Almost
      all methods calling this expected an error to be set on failure.
      
      Once that's fixed though, we see a further bug which is that
      virQEMUCapsCacheLookupDefault() is passing a NULL binary path to
      virQEMUCapsCacheLookup(), so we need to catch that too.
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      5331c480
    • D
      qemu: don't continue loading caps if outdated · 66ce769d
      Daniel P. Berrangé 提交于
      The XML format used for QEMU capabilities is not required to be
      stable across releases, as we invalidate the cache whenever the
      libvirt binary changes.
      
      We none the less always try to parse te entire XML file before
      we do any validity checks. Thus if we change the format of any
      part of the data, or change permitted values for enums, then
      libvirtd logs will be spammed with errors.
      
      These are not in fact errors, but an expected scenario.
      
      This change makes the loading code validate the cache timestamp
      against the libvirtd timestamp immediately. If they don't match
      then we stop loading the rest of the XML file.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      66ce769d
  2. 23 6月, 2020 15 次提交
  3. 22 6月, 2020 11 次提交
  4. 18 6月, 2020 7 次提交
  5. 17 6月, 2020 5 次提交