1. 15 5月, 2019 1 次提交
    • J
      qemu: Don't cache microcode version · cb6bcb03
      Jiri Denemark 提交于
      My earlier commit be46f613 was incomplete. It removed caching of
      microcode version in the CPU driver, which means the capabilities XML
      will see the correct microcode version. But it is also cached in the
      QEMU capabilities cache where it is used to detect whether we need to
      reprobe QEMU. By missing the second place, the original commit
      be46f613 made the situation even worse since libvirt would report
      correct microcode version while still using the old host CPU model
      (visible in domain capabilities XML).
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      (cherry picked from commit 673c62a3)
      
      CVE-2018-12126, CVE-2018-12127, CVE-2018-12130
      
      Conflicts:
      	src/qemu/qemu_capabilities.c
                  - virQEMUCapsCacheLookupByArch refactoring (commits
                    7948ad41 and 1a3de670) are missing
                  - commit a7424faf "Force QMP capability probing" is
                    missing downstream
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      cb6bcb03
  2. 02 3月, 2018 1 次提交
  3. 27 2月, 2018 1 次提交
  4. 22 2月, 2018 6 次提交
  5. 20 2月, 2018 2 次提交
    • L
      tests: fix bhyve build · a4b37cd0
      Laine Stump 提交于
      This file was modified in an editor buffer but not saved prior to
      commit e62cb4a9 (which removed virMacAddr::generated), so the bhyve
      build would fail.
      Signed-off-by: NLaine Stump <laine@laine.org>
      a4b37cd0
    • L
      conf: move 'generated' member from virMacAddr to virDomainNetDef · e62cb4a9
      Laine Stump 提交于
      Commit 7e62c4cd (first appearing in libvirt-3.9.0 as a resolution
      to rhbz #1343919) added a "generated" attribute to virMacAddr that was
      set whenever a mac address was auto-generated by libvirt. This
      knowledge was used in a single place - when trying to match a NetDef
      from the Domain to Delete with user-provided XML. Since the XML parser
      always auto-generates a MAC address for NetDefs when none is provided,
      it was previously impossible to make a search where the MAC address
      isn't significant, but the addition of the "generated" attribute made
      it possible for the search function to ignore auto-generated MACs.
      
      This implementation had a problem though - it was adding a field to a
      "low level" struct - virMacAddr - which is used in other places with
      the assumption that it contains exactly a 6 byte MAC address and
      nothing else. In particular, virNWFilterSnoopEthHdr uses virMacAddr as
      part of the definition of an ethernet packet header, whose layout must
      of course match an actual ethernet packet. Adding the extra bools into
      virNWFilterSnoopEthHdr caused the nwfilter driver's "IP discovery via
      DHCP packet snooping" functionality to mysteriously stop working.
      
      In order to fix that behavior, and prevent potential future similar
      odd behavior, this patch moves the "generated" member out of
      virMacAddr (so that it is again really is just a MAC address) into
      virDomainNetDef, and sets it only when virDomainNetGenerateMAC() is
      called from virDomainNetDefParseXML() (which is the only time we care
      about it).
      
      Resolves: https://bugzilla.redhat.com/1529338
      
      (It should also be applied to any maintenance branch that applies
      commit 7e62c4cd and friends to resolve
      https://bugzilla.redhat.com/1343919)
      Signed-off-by: NLaine Stump <laine@laine.org>
      e62cb4a9
  6. 19 2月, 2018 8 次提交
  7. 17 2月, 2018 2 次提交
  8. 14 2月, 2018 2 次提交
  9. 13 2月, 2018 5 次提交
  10. 12 2月, 2018 1 次提交
  11. 09 2月, 2018 2 次提交
    • D
      conf: expand network device callbacks to cover resolving NIC type · a455d41e
      Daniel P. Berrangé 提交于
      Currently the QEMU driver will call directly into the network driver
      impl to modify resolve the atual type of NICs with type=network. It
      has todo this before it has allocated the actual NIC. This introduces
      a callback system to allow us to decouple the QEMU driver from the
      network driver.
      
      This is a short term step, as it ought to be possible to achieve the
      same end goal by simply querying XML via the public network API. The
      QEMU code in question though, has no virConnectPtr conveniently
      available at this time.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      a455d41e
    • D
      storage: move storage file backend framework into util directory · 064fec69
      Daniel P. Berrangé 提交于
      The QEMU driver loadable module needs to be able to resolve all ELF
      symbols it references against libvirt.so. Some of its symbols can only
      be resolved against the storage_driver.so loadable module which creates
      a hard dependancy between them. By moving the storage file backend
      framework into the util directory, this gets included directly in the
      libvirt.so library. The actual backend implementations are still done as
      loadable modules, so this doesn't re-add deps on gluster libraries.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      064fec69
  12. 06 2月, 2018 1 次提交
  13. 05 2月, 2018 1 次提交
    • P
      util: bitmap: Use VIR_SHRINK_N in virBitmapShrink · e88a08e8
      Peter Krempa 提交于
      The function only reduces the size of the bitmap thus we can use the
      appropriate shrinking function which also does not have any return
      value.
      
      Since virBitmapShrink now does not return any value callers need to be
      fixed as well.
      e88a08e8
  14. 03 2月, 2018 2 次提交
  15. 02 2月, 2018 3 次提交
  16. 01 2月, 2018 2 次提交