1. 07 11月, 2017 4 次提交
    • P
      qemu: block: Add JSON props generator for 'curl' based storage backends · 97ee821a
      Peter Krempa 提交于
      QEMU uses curl for accessing files using http(s) and ftp(s). They share
      common options so let's generate them in one helper.
      97ee821a
    • P
      storage: Don't store leading '/' in image name when splitting out volume · bb14d989
      Peter Krempa 提交于
      Libvirt historically stores storage source path including the volume as
      one string in the XML, but that is not really flexible enough when
      dealing with the fields in the code. Previously we'd store the slash
      separating the two as part of the image name. This was fine for gluster
      but it's not necessary and does not scale well when converting other
      protocols.
      
      Don't store the slash as part of the path. The resulting change from
      absolute to relative path within the gluster driver should be okay,
      as the root directory is the default when accessing gluster.
      bb14d989
    • P
      qemu: process: Split out useful parts from qemuBuildNetworkDriveURI · 1ee7d4d9
      Peter Krempa 提交于
      Extract the part formatting the basic URI part so that it can be reused
      to format JSON backing definitions. Parts specific to the command line
      format will remain in qemuBuildNetworkDriveURI. The new function is
      called qemuBlockStorageSourceGetURI.
      1ee7d4d9
    • P
      qemu: block: Use proper type for servers for VxHS disks · bd372137
      Peter Krempa 提交于
      Original implementation used 'SocketAddress' equivalent from qemu for
      the disk server field, while qemu documentation specifies
      'InetSocketAddress'. The backing store parser uses the correct parsing
      function but the formatter used the incorrect one (and also with the
      legacy mode enabled which was wrong).
      bd372137
  2. 18 10月, 2017 2 次提交
  3. 17 10月, 2017 1 次提交
    • P
      util: storagefile: Add helpers to check presence of backing store · 0a294a8e
      Peter Krempa 提交于
      Add helpers that will simplify checking if a backing file is valid or
      whether it has backing store. The helper virStorageSourceIsBacking
      returns true if the given virStorageSource is a valid backing store
      member. virStorageSourceHasBacking returns true if the virStorageSource
      has a backing store child.
      
      Adding these functions creates a central points for further refactors.
      0a294a8e
  4. 28 9月, 2017 1 次提交
    • A
      qemu: Add TLS support for Veritas HyperScale (VxHS) · 6885b51e
      Ashish Mittal 提交于
      Alter qemu command line generation in order to possibly add TLS for
      a suitably configured domain.
      
      Sample TLS args generated by libvirt -
      
          -object tls-creds-x509,id=objvirtio-disk0_tls0,dir=/etc/pki/qemu,\
          endpoint=client,verify-peer=yes \
          -drive file.driver=vxhs,file.tls-creds=objvirtio-disk0_tls0,\
          file.vdisk-id=eb90327c-8302-4725-9e1b-4e85ed4dc251,\
          file.server.type=tcp,file.server.host=192.168.0.1,\
          file.server.port=9999,format=raw,if=none,\
          id=drive-virtio-disk0,cache=none \
          -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,\
          id=virtio-disk0
      
      Update the qemuxml2argvtest with a couple of examples. One for a
      simple case and the other a bit more complex where multiple VxHS disks
      are added where at least one uses a VxHS that doesn't require TLS
      credentials and thus sets the domain disk source attribute "tls = 'no'".
      
      Update the hotplug to be able to handle processing the tlsAlias whether
      it's to add the TLS object when hotplugging a disk or to remove the TLS
      object when hot unplugging a disk.  The hot plug/unplug code is largely
      generic, but the addition code does make the VXHS specific checks only
      because it needs to grab the correct config directory and generate the
      object as the command line would do.
      Signed-off-by: NAshish Mittal <Ashish.Mittal@veritas.com>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      6885b51e
  5. 25 9月, 2017 2 次提交
  6. 20 9月, 2017 3 次提交
  7. 27 7月, 2017 4 次提交
  8. 24 7月, 2017 1 次提交
  9. 17 7月, 2017 1 次提交
  10. 14 7月, 2017 4 次提交
  11. 27 4月, 2017 1 次提交
  12. 27 3月, 2017 3 次提交
    • P
      qemu: block: Add code to fetch block node data by node name · 51c4b744
      Peter Krempa 提交于
      To allow updating stats based on the node name, add a helper function
      that will fetch the required data from 'query-named-block-nodes' and
      return it in hash table for easy lookup.
      51c4b744
    • P
      qemu: block: Add code to detect node names when necessary · 0feebab2
      Peter Krempa 提交于
      Detect the node names when setting block threshold and when reconnecting
      or when they are cleared when a block job finishes. This operation will
      become a no-op once we fully support node names.
      0feebab2
    • P
      qemu: block: Add code to allow detection of auto-allocated node names · dbad8f8a
      Peter Krempa 提交于
      qemu for some time already sets node names automatically for the block
      nodes. This patch adds code that attempts a best-effort detection of the
      node names for the backing chain from the output of
      'query-named-block-nodes'. The only drawback is that the data provided
      by qemu needs to be matched by the filename as seen by qemu and thus
      if two disks share a single backing store file the detection won't work.
      
      This will allow us to use qemu commands such as
      'block-set-write-threshold' which only accepts node names.
      
      In this patch only the detection code is added, it will be used later.
      dbad8f8a