1. 24 6月, 2016 1 次提交
    • J
      secret: Move virStorageSecretType and rename · 1eca5f65
      John Ferlan 提交于
      Move the enum into a new src/util/virsecret.h, rename it to be
      virSecretLookupType. Add a src/util/virsecret.h in order to perform
      a couple of simple operations on the secret XML and virSecretLookupTypeDef
      for clearing and copying.
      
      This includes quite a bit of collateral damage, but the goal is to remove
      the "virStorage*" and replace with the virSecretLookupType so that it's
      easier to to add new lookups that aren't necessarily storage pool related.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      1eca5f65
  2. 15 6月, 2016 1 次提交
  3. 14 6月, 2016 3 次提交
  4. 25 5月, 2016 1 次提交
  5. 20 5月, 2016 1 次提交
  6. 16 5月, 2016 2 次提交
    • J
      secret: Alter virSecretGetSecretString · abd2272c
      John Ferlan 提交于
      Rather than returning a "char *" indicating perhaps some sized set of
      characters that is NUL terminated, alter the function to return 0 or -1
      for success/failure and add two parameters to handle returning the
      buffer and it's size.
      
      The function no longer encodes the returned secret, rather it returns
      the unencoded secret forcing callers to make the necessary adjustments.
      
      Alter the callers to handle the adjusted model.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      abd2272c
    • P
      secret: util: Refactor virSecretGetSecretString · 1d632c39
      Peter Krempa 提交于
      Call the internal driver callbacks rather than the public APIs to avoid
      calling unnecessarily the error dispatching code and don't overwrite
      the error messages provided by the APIs. They are good enough to
      describe which secret is missing either by UUID or the usage (basically
      name).
      1d632c39
  7. 14 5月, 2016 1 次提交
    • J
      libxl: don't attempt to probe a non-existent emulator · 400e716d
      Jim Fehlig 提交于
      When probing the <emulator> with '-help' to determine if
      it is the old qemu, errors are reported if the emulator
      doesn't exist
      
      libvirt:  error : internal error: Child process
      (/usr/lib/xen/bin/qemu-dm -help) unexpected exit status 127:
      libvirt:  error : cannot execute binary /usr/lib/xen/bin/qemu-dm:
      No such file or directory
      
      Avoid the probe if the specified emulator doesn't exist,
      squelching the error. There is no behavior change since
      libxlDomainGetEmulatorType() would return
      LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN if the probe failed
      via virCommandRun().
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      400e716d
  8. 06 5月, 2016 1 次提交
  9. 13 4月, 2016 2 次提交
  10. 07 4月, 2016 1 次提交
    • J
      secret: Introduce virSecretGetSecretString · 2844de6f
      John Ferlan 提交于
      Commit id 'fb2bd208' essentially copied the qemuGetSecretString
      creating an libxlGetSecretString.  Rather than have multiple copies
      of the same code, create src/secret/secret_util.{c,h} files and
      place the common function in there.
      
      Modify the the build in order to build the module as a library
      which is then pulled in by both the qemu and libxl drivers for
      usage from both qemu_command.c and libxl_conf.c
      2844de6f
  11. 21 3月, 2016 2 次提交
  12. 11 3月, 2016 1 次提交
  13. 26 2月, 2016 1 次提交
    • J
      libxl: unref objects in error paths · e4f1be7e
      Jim Fehlig 提交于
      libxlMakeNic opens a virConnect object and takes a reference on a
      virNetwork object, but doesn't drop the references on all error
      paths. Rework the function to follow the standard libvirt pattern
      of using a local 'ret' variable to hold the function return value,
      performing all cleanup and returning 'ret' at a 'cleanup' label.
      e4f1be7e
  14. 24 2月, 2016 2 次提交
  15. 23 2月, 2016 1 次提交
    • J
      libxl: add support for rbd qdisk · fb2bd208
      Jim Fehlig 提交于
      xl/libxl already supports qemu's network-based block backends
      such as nbd and rbd. libvirt has supported configuring such
      <disk>s for long time too. This patch adds support for rbd
      disks in the libxl driver by generating a rbd device URL from
      the virDomainDiskDef object. The URL is passed to libxl via the
      pdev_path field of libxl_device_disk struct. libxl then passes
      the URL to qemu for cosumption by the rbd backend.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      fb2bd208
  16. 10 2月, 2016 1 次提交
    • J
      libxl: keepalive messages support · 5194eb95
      Joao Martins 提交于
      This patch introduces keep alive messages support for P2P migration
      and it adds two new configuration entries namely 'keepalive_interval'
      'keepalive_count' to control it. Behavior of these entries is the
      same as qemu driver thus the description is copied from there
      with just a few simplifications.
      Signed-off-by: NJoao Martins <joao.m.martins@oracle.com>
      5194eb95
  17. 04 2月, 2016 1 次提交
  18. 09 1月, 2016 1 次提交
    • J
      libxl: support vif outgoing bandwidth QoS · f988ecfb
      Jim Fehlig 提交于
      The libxl_device_nic structure supports specifying an outgoing rate
      limit based on a time interval and bytes allowed per interval. In xl
      config a rate limit is specified as "<RATE>/s@<INTERVAL>". INTERVAL
      is optional and defaults to 50ms.
      
      libvirt expresses outgoing limits by average (required), peak, burst,
      and floor attributes in units of KB/s. This patch supports the outgoing
      bandwidth limit by converting the average KB/s to bytes per interval
      based on the same default interval (50ms) used by xl.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      f988ecfb
  19. 09 12月, 2015 2 次提交
  20. 08 10月, 2015 1 次提交
    • J
      libxl: Resolve Coverity FORWARD_NULL · f84c6dd2
      John Ferlan 提交于
      Since the strtok_r call in libxlCapsInitGuests expects a non NULL first
      parameter when the third parameter is NULL, we need to check that
      the returned 'capabilities' from a libxl_get_version_info call is
      not NULL and error out if so since the code expects it.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f84c6dd2
  21. 16 9月, 2015 2 次提交
    • J
      libxl: fix compiler error introduced by commit ba25c214 · a4604eb0
      Jim Fehlig 提交于
      libxl/libxl_conf.c: In function 'libxlDriverConfigNew':
      libxl/libxl_conf.c:1560:30: error: 'log_level' may be used uninitialized
      in this function [-Werror=maybe-uninitialized]
      a4604eb0
    • J
      libxl: open libxl log stream with libvirtd log_level · ba25c214
      Jim Fehlig 提交于
      Instead of a hardcoded DEBUG log level, use the overall
      daemon log level specified in libvirtd.conf when opening
      a log stream with libxl. libxl is very verbose when DEBUG
      log level is set, resulting in huge log files that can
      potentially fill a disk. Control of libxl verbosity should
      be placed in the administrator's hands.
      ba25c214
  22. 02 9月, 2015 1 次提交
    • J
      qemu: add udp interface support · 5c668a78
      Jonathan Toppins 提交于
      Adds a new interface type using UDP sockets, this seems only applicable
      to QEMU but have edited tree-wide to support the new interface type.
      
      The interface type required the addition of a "localaddr" (local
      address), this then maps into the following xml and qemu call.
      
      <interface type='udp'>
        <mac address='52:54:00:5c:67:56'/>
        <source address='127.0.0.1' port='11112'>
          <local address='127.0.0.1' port='22222'/>
        </source>
        <model type='virtio'/>
        <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
      </interface>
      
      QEMU call:
      	-net socket,udp=127.0.0.1:11112,localaddr=127.0.0.1:22222
      
      Notice the xml "local" entry becomes the "localaddr" for the qemu call.
      
      reference:
      http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg00629.htmlSigned-off-by: NJonathan Toppins <jtoppins@cumulusnetworks.com>
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      5c668a78
  23. 13 6月, 2015 1 次提交
  24. 29 5月, 2015 3 次提交
  25. 13 5月, 2015 1 次提交
  26. 05 5月, 2015 1 次提交
  27. 30 4月, 2015 1 次提交
  28. 25 4月, 2015 2 次提交
  29. 22 4月, 2015 1 次提交