1. 14 5月, 2018 1 次提交
  2. 04 5月, 2018 1 次提交
  3. 03 5月, 2018 1 次提交
  4. 02 5月, 2018 1 次提交
  5. 18 4月, 2018 3 次提交
  6. 12 4月, 2018 1 次提交
  7. 10 4月, 2018 1 次提交
  8. 06 4月, 2018 1 次提交
  9. 03 4月, 2018 2 次提交
  10. 14 3月, 2018 1 次提交
  11. 13 3月, 2018 1 次提交
  12. 07 3月, 2018 1 次提交
  13. 06 3月, 2018 1 次提交
  14. 23 2月, 2018 1 次提交
  15. 20 2月, 2018 2 次提交
    • 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
    • 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
  16. 19 2月, 2018 2 次提交
  17. 13 2月, 2018 2 次提交
  18. 09 2月, 2018 4 次提交
  19. 06 2月, 2018 1 次提交
  20. 01 2月, 2018 1 次提交
    • J
      conf: Rework and rename virDomainDeviceFindControllerModel · 932862b8
      John Ferlan 提交于
      As it turns out virDomainDeviceFindControllerModel was only ever
      called for SCSI controllers using VIR_DOMAIN_CONTROLLER_TYPE_SCSI
      as a parameter.
      
      So rename to virDomainDeviceFindSCSIController and rather than
      return a model, let's return a virDomainControllerDefPtr to let
      the caller reference whatever it wants.
      932862b8
  21. 26 1月, 2018 1 次提交
  22. 14 12月, 2017 1 次提交
    • P
      conf: Add infrastructure for disk source private data XML · aed3d038
      Peter Krempa 提交于
      VM drivers may need to store additional private data to the status XML
      so that it can be restored after libvirtd restart. Since not everything
      is needed add a callback infrastructure, where VM drivers can add only
      stuff they need.
      
      Note that the private data is formatted as a <privateData> sub-element
      of the <disk> or <backingStore> <source> sub-element. This is done since
      storing it out of band (in the VM private data) would require a complex
      matching process to allow to put the data into correct place.
      aed3d038
  23. 30 11月, 2017 1 次提交
  24. 28 11月, 2017 6 次提交
  25. 25 11月, 2017 2 次提交
    • J
      qemu: Remove private hostdev · 1d9108cf
      John Ferlan 提交于
      Since it's not longer used to shuttle the @secinfo, let's remove
      the private hostdev completely.
      1d9108cf
    • J
      conf,qemu: Replace iscsisrc fields with virStorageSourcePtr · 626ea2d5
      John Ferlan 提交于
      Rather than picking apart the two pieces we need/want (path, hosts,
      and auth)- let's allocate/use a virStorageSourcePtr for iSCSI storage.
      
      The end result is that qemuBuildSCSIiSCSIHostdevDrvStr doesn't need
      to "fake" one for the qemuBuildNetworkDriveStr call.
      626ea2d5