1. 24 10月, 2016 14 次提交
  2. 22 10月, 2016 3 次提交
  3. 21 10月, 2016 7 次提交
    • J
      qemuBuildHostNetStr: remove dead code · ea4c9cf8
      Ján Tomko 提交于
      This function is never called for VIR_DOMAIN_NET_TYPE_HOSTDEV,
      and the dead code comment agrees.
      
      Introduced by commit 1dcbef8a.
      ea4c9cf8
    • J
      qemuBuildHostNetStr: do not start options with a comma · b2b670f8
      Ján Tomko 提交于
      Put the comma at the end and trim it later for consistency.
      b2b670f8
    • J
      qemuBuildHostNetStr: use type_sep earlier · c70c56de
      Ján Tomko 提交于
      When hotplugging networks with ancient QEMUs not supporting
      QEMU_CAPS_NETDEV, we use space instead of a comma as the separator
      between the network type and other options.
      
      Except for "user", all the network types pass other options
      and use up the first separator by the time we get to the section
      that adds the alias (or vlan for QEMUs without CAPS_NETDEV).
      
      Since the alias/vlan is mandatory, convert all preceding code to add
      the separator at the end, removing the need to rewrite type_sep for
      all types but NET_TYPE_USER.
      c70c56de
    • N
      vz: set something in disk driver name · bdaf5e80
      Nikolay Shirokovskiy 提交于
      Absent driver name attribute is invalid xml. Which in turn makes
      unusable 'virsh edit' for example. The value does not make
      much sense and ignored on input so nobody will hurt.
      bdaf5e80
    • N
      vz: add serial number to disk devices · d6e3af62
      Nikolay Shirokovskiy 提交于
      vz sdk supports setting serial number only for disk devices.
      Getting serial upon cdrom(for example) is error however
      setting is just ignored. Let's check for disk device
      explicitly for clarity in both cases.
      
      Setting serial number for other devices is ignored
      with an info note just as before.
      
      We need usual conversion from "" to NULL in direction
      vz sdk -> libvirt, because "" is not valid for libvirt
      and "" means unspecifiend in vz sdk which is NULL for libvirt.
      d6e3af62
    • J
      bhyve: Need to add parameter to virDomainChrDefNew · 9c2e539a
      John Ferlan 提交于
      Commit id '5f2a1327' missed this one.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      9c2e539a
    • M
      vz: set localhost as vnc address · 97b31f86
      Mikhail Feoktistov 提交于
      We should set localhost as vnc address in case of empty string.
      Because Virtuozzo sets 0.0.0.0 as default vnc address.
      97b31f86
  4. 20 10月, 2016 6 次提交
  5. 19 10月, 2016 1 次提交
  6. 18 10月, 2016 6 次提交
  7. 17 10月, 2016 1 次提交
    • A
      conf: Explain some code in more detail · 61e10143
      Andrea Bolognani 提交于
      The code is entirely correct, but it still managed to trip me
      up when I first ran into it because I did not realize right away
      that VIR_PCI_CONNECT_TYPES_ENDPOINT was not a single flag, but
      rather a mask including both VIR_PCI_CONNECT_TYPE_PCI_DEVICE and
      VIR_PCI_CONNECT_TYPE_PCIE_DEVICE.
      
      In order to save the next distracted traveler in PCI Address Land
      some time, document this fact with a comment. Add a test case for
      the behavior as well.
      61e10143
  8. 15 10月, 2016 1 次提交
    • L
      conf: restrict what type of buses will accept a pci-bridge · 538220c3
      Laine Stump 提交于
      A pci-bridge has *almost* the same rules as a legacy PCI endpoint
      device for where it can be automatically connected, and until now both
      had been considered identical. There is one pairing that is okay when
      specifically requested by the user (i.e. manual assignment), but we
      want to avoid it when auto-assigning addresses - plugging a pci-bridge
      directly into pcie-root (it is cleaner to plug in a dmi-to-pci-bridge,
      then plug the pci-bridge into that).
      
      In order to allow that difference, this patch makes a separate
      CONNECT_TYPE for pci-bridge, and uses it to restrict auto-assigned
      addresses for pci-bridges to be only on pci-root, pci-expander-bus,
      dmi-to-pci-bridge, or on another pci-bridge.
      
      NB: As with other discouraged-but-seem-to-work configurations
      (e.g. plugging a legacy PCI device into a pcie-root-port) if someone
      *really* wants to, they can still force a pci-bridge to be plugged
      into pcie-root (by manually specifying its PCI address.)
      538220c3
  9. 14 10月, 2016 1 次提交
    • J
      util: Alter return value of virReadFCHost and fix mem leak · f29b13f8
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1357416
      
      Rather than return a 0 or -1 and the *result string, return just the result
      string to the caller.  Alter all the callers to handle the different return.
      
      As a side effect or result of this, it's much clearer that we cannot just
      assign the returned string into the scsi_host wwnn, wwpn, and fabric_wwn
      fields - rather we should fetch a temporary string, then as long as our
      fetch was good, VIR_FREE what may have been there, and STEAL what we just got.
      This fixes a memory leak in the virNodeDeviceCreateXML code path through
      find_new_device and nodeDeviceLookupSCSIHostByWWN which will continually
      call nodeDeviceSysfsGetSCSIHostCaps until the expected wwnn/wwpn is found
      in the device object capabilities.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f29b13f8