1. 26 1月, 2017 4 次提交
  2. 25 1月, 2017 5 次提交
  3. 24 1月, 2017 2 次提交
  4. 22 1月, 2017 3 次提交
  5. 20 1月, 2017 5 次提交
    • M
      virDomainHostdevSubsysSCSIVHostDefParseXML: Don't leak @protocol · 0cacdc6f
      Michal Privoznik 提交于
      ==24748== 12 bytes in 2 blocks are definitely lost in loss record 25 of 84
      ==24748==    at 0x4C2BF80: malloc (vg_replace_malloc.c:296)
      ==24748==    by 0x1A1E1E78: xmlStrndup (in /usr/lib64/libxml2.so.2.9.4)
      ==24748==    by 0x18D0495F: virXMLPropString (virxml.c:506)
      ==24748==    by 0x18D1FB3E: virDomainHostdevSubsysSCSIVHostDefParseXML (domain_conf.c:6280)
      ==24748==    by 0x18D20350: virDomainHostdevDefParseXMLSubsys (domain_conf.c:6450)
      ==24748==    by 0x18D34E7D: virDomainHostdevDefParseXML (domain_conf.c:13218)
      ==24748==    by 0x18D42598: virDomainDefParseXML (domain_conf.c:17745)
      ==24748==    by 0x18D440A9: virDomainDefParseNode (domain_conf.c:18236)
      ==24748==    by 0x18D43EFA: virDomainDefParse (domain_conf.c:18180)
      ==24748==    by 0x18D43FA0: virDomainDefParseFile (domain_conf.c:18206)
      ==24748==    by 0x44EDA1: testCompareDomXML2XMLFiles (testutils.c:1140)
      ==24748==    by 0x4365F8: testXML2XMLActive (qemuxml2xmltest.c:59)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      0cacdc6f
    • J
      qemu: Reset hostModelInfo in virQEMUCapsReset · 6cb204b7
      Jiri Denemark 提交于
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      6cb204b7
    • M
      qemu: set default vhost-user ifname · 57b5e27d
      Michal Privoznik 提交于
      Based on work of Mehdi Abaakouk <sileht@sileht.net>.
      
      When parsing vhost-user interface XML and no ifname is found we
      can try to fill it in in post parse callback. The way this works
      is we try to make up interface name from given socket path and
      then ask openvswitch whether it knows the interface.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      57b5e27d
    • P
      qemu: hotplug: Properly emit "DEVICE_DELETED" event when unplugging memory · 1d4fd2dd
      Peter Krempa 提交于
      The event needs to be emitted after the last monitor call, so that it's
      not possible to find the device in the XML accidentally while the vm
      object is unlocked.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1414393
      1d4fd2dd
    • R
      bhyve: fix interface type handling for argv2xml · 6a9c7468
      Roman Bogorodskiy 提交于
      When generating a domain XML from native command (i.e. via
      the connectDomainXMLFromNative call), we should use
      interface type 'bridge' rather than 'ethernet' because we only
      support bridges at this point.
      
      As we don't have bridge name explicitly specified on the command line,
      just use 'virbr0' as a default.
      6a9c7468
  6. 19 1月, 2017 8 次提交
  7. 18 1月, 2017 12 次提交
    • B
      nodedev: Fabric name must not be required for fc_host capability · 666bee39
      Boris Fiuczynski 提交于
      fabric_name is one of many fc_host attributes in Linux that is optional
      and left to the low-level driver to decide if it is implemented.
      The zfcp device driver does not provide a fabric name for an fcp host.
      
      This patch removes the requirement for a fabric name by making it optional.
      Signed-off-by: NBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
      666bee39
    • B
      util: add file exists check in virReadFCHost · d5922692
      Boris Fiuczynski 提交于
      File open errors are prevented by a file exists check before
      virFileReadAll is called since all callers of the virReadFCHost
      method handle errors themselves based on the NULL return anyway.
      Also included is a minor spelling correction in a comment.
      Signed-off-by: NBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
      d5922692
    • J
      disk: Fixup error handling path for devmapper when part_separator='yes' · 0d157b3f
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1346566
      
      If libvirt_parthelper is erroneously told to append the partition
      separator 'p' onto the generated output for a disk pool using device
      mapper that has 'user_friendly_names' set to true, then the error
      recovery path will fail to find volume resulting in the pool being
      in an unusable state.
      
      So, augment the documentation to provide the better hint that the
      part_separator='yes' should be set when user_friendly_names are not
      being used. Additionally, once we're in the error path where the
      returned name doesn't match the expected partition name try to see
      if the reason is because the 'p' was erroneosly added. If so alter
      the about to be removed vol->target.path so that the DiskDeleteVol
      code can find the partition that was created and remove it.
      0d157b3f
    • J
      storage: Allow probe of volume capacity for BLOCK type · 9508682b
      John Ferlan 提交于
      If the voldef type is VIR_STORAGE_VOL_BLOCK, then as long as the
      format is known, let's allow the probe to happen - gets a truer value
      and the same probe/update would be allowed for the same volume defined
      in a domain.
      9508682b
    • J
      storage: Fix virStorageBackendUpdateVolTargetInfo type check · d04bb05f
      John Ferlan 提交于
      For volume processing in virStorageBackendUpdateVolTargetInfo to get
      the capacity commit id 'a760ba3a' added the ability to probe a volume
      that didn't list a target format. Unfortunately, the code used the
      virStorageSource  (e.g. target->type - virStorageType) rather than
      virStorageVolDef (e.g. vol->type - virStorageVolType) in order to
      make the comparison. As it turns out target->type for a volume is
      not filled in at all for a voldef as the code relies on vol->type.
      Ironically the result is that only VIR_STORAGE_VOL_BLOCK's would get
      their capacity updated.
      
      This patch will adjust the code to check the "vol->type" field instead
      as an argument. This way for a voldef, the correct comparison is made.
      
      Additionally for a backingStore, the 'type' field is never filled in;
      however, since we know that the provided path is a location at which
      the backing store can be accessed on the local filesystem thus just
      pass VIR_STORAGE_VOL_FILE in order to satisfy the adjusted voltype
      check. Whether it's a FILE or a BLOCK only matters if we're trying to
      get more data based on the target->format.
      d04bb05f
    • P
      storage: gluster: Remove build-time dependency on the 'gluster' cli tool · 9e97c8c0
      Peter Krempa 提交于
      The tool is used for pool discovery. Since we call an external binary we
      don't really need to compile out the code that uses it. We can check
      whether it exists at runtime.
      9e97c8c0
    • P
      storage: gluster: Report error if no volumes were found in pool lookup · ce5055d7
      Peter Krempa 提交于
      Similarly to the 'netfs' pool, return an error if the host does not have
      any volumes.
      ce5055d7
    • P
      storage: Fix error reporting when looking up storage pool sources · 7bdb4b8f
      Peter Krempa 提交于
      In commit 4090e153 we went back from reporting no errors if no storage
      pools were found on a given host to reporting a bad error. And only in
      cases when gluster was not installed.
      
      Report a less bad error in case there are no volumes. Also report the
      error when gluster is installed but no volumes were found, since
      virStorageBackendFindGlusterPoolSources would return success in that
      case.
      7bdb4b8f
    • P
      qemu: Move cpu hotplug code into qemu_hotplug.c · 9d14cf59
      Peter Krempa 提交于
      Move all the worker code into the appropriate file. This will also allow
      testing of cpu hotplug.
      9d14cf59
    • P
      qemu: Prepare for reuse of qemuDomainSetVcpusLive · 5570f267
      Peter Krempa 提交于
      Extract the call to qemuDomainSelectHotplugVcpuEntities outside of
      qemuDomainSetVcpusLive and decide whether to hotplug or unplug the
      entities specified by the cpumap using a boolean flag.
      
      This will allow to use qemuDomainSetVcpusLive in cases where we prepare
      the list of vcpus to enable or disable by other means.
      5570f267
    • P
      util: json: Add helper to reformat JSON strings · 15727562
      Peter Krempa 提交于
      For use in test cases it will be helpful to allow reformatting JSON
      strings. Add a wrapper on top of the parser and formatter to achieve
      this.
      15727562
    • P
      qemu: monitor: More strict checking of 'query-cpus' if hotplug is supported · 5cd670fe
      Peter Krempa 提交于
      In cases where CPU hotplug is supported by qemu force the monitor to
      reject invalid or broken responses to 'query-cpus'. It's expected that
      the command returns usable data in such case.
      5cd670fe
  8. 17 1月, 2017 1 次提交