1. 18 5月, 2016 14 次提交
    • J
      iscsi: Add exit status checking for virISCSIGetSession · 8f54e0d6
      John Ferlan 提交于
      Utilize the exit status parameter for virCommandRunRegex in order to
      check the return error from the 'iscsiadm --mode session' command.
      Without this enabled, if there are no sessions running then virCommandRun
      would have displayed an error such as:
      
          2016-05-13 15:17:15.165+0000: 10920: error : virCommandWait:2553 :
                     internal error: Child process (iscsiadm --mode session)
                     unexpected exit status 21: iscsiadm: No active sessions.
      
      It is possible that for certain paths (when probe is true) we only care
      whether it's running or not to make certain decisions.  Spitting out
      the error for those paths is unnecessary.
      
      If we do have a situation where probe = false and there's an error,
      then display the error from iscsiadm if it's there.
      8f54e0d6
    • J
      util: Add exitstatus parameter to virCommandRunRegex · 8b104947
      John Ferlan 提交于
      Rather than have virCommandRun just spit out the error, allow callers
      to decide to pass the exitstatus so the caller can make intelligent
      decisions based on the error.
      8b104947
    • A
      tests: Try different usable GIC versions · f6ececa6
      Andrea Bolognani 提交于
      The only case where the hardware capabilities influence the result
      is when no <gic/> element was provided.
      
      The test programs now ensure both that the correct GIC version is
      picked in that case, and that hardware capabilities are not taken
      into account when the user has already picked a GIC version.
      f6ececa6
    • A
      tests: Prepare to have different usable GIC versions · 63bc91ee
      Andrea Bolognani 提交于
      Now that we choose the GIC version based on hardware features when
      no <gic/> element has been provided, we need a way to fake the GIC
      capabilities of the host.
      
      Update the qemuxml2argv and qemuxml2xml tests to allow this.
      63bc91ee
    • A
      qemu: Add virQEMUCapsSetGICCapabilities() · 8b74919d
      Andrea Bolognani 提交于
      For use in the test suite.
      8b74919d
    • A
      qemu: Automatically choose usable GIC version · 1a012c9a
      Andrea Bolognani 提交于
      When the <gic/> element in not present in the domain XML, use the
      domain capabilities to figure out what GIC version is usable and
      choose that one automatically.
      
      This allows guests to be created on hardware that only supports
      GIC v3 without having to update virt-manager and similar tools.
      
      Keep using the default GIC version if the <gic/> element has been
      added to the domain XML but no version has been specified, as not
      to break existing guests.
      1a012c9a
    • A
      qemu: Add virQEMUCapsSupportsGICVersion() · 58f0152f
      Andrea Bolognani 提交于
      This utility function extracts some of the logic from
      virQEMUCapsFillDomainFeatureGICCaps() so that it can be used
      in a different context.
      58f0152f
    • J
      Change return value of VIR_APPEND*INPLACE* to void · f2b46097
      Jiri Denemark 提交于
      The INPLACE variants of the VIR_APPEND macros cannot fail and they are
      inherently quiet.
      f2b46097
    • J
      Remove virDomainRNGInsert · d8d4b9d9
      Jiri Denemark 提交于
      It was just a useless wrapper around VIR_APPEND_ELEMENT*.
      d8d4b9d9
    • C
      xlconfigtest: add test case for type=vif in xl format · c4111209
      Chunyan Liu 提交于
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      c4111209
    • C
      xenFormatNet: correct `type=netfront' to 'type=vif' to match libxl · 03f8bba2
      Chunyan Liu 提交于
      According to current xl.cfg docs and xl codes, it uses type=vif
      instead of type=netfront.
      
      Currently after domxml-to-native, libvirt xml model=netfront will be
      converted to xl type=netfront. This has no problem before, xen codes
      for a long time just check type=ioemu, if not, set type to _VIF.
      
      Since libxl uses parse_nic_config to avoid duplicate codes, it
      compares 'type=vif' and 'type=ioemu' for valid parameters, others
      are considered as invalid, thus we have problem with type=netfront
      in xl config file.
       #xl create sles12gm-hvm.orig
       Parsing config from sles12gm-hvm.orig
       Invalid parameter `type'.
      
      Correct the conversion in libvirt, so that it matchs libxl codes
      and also xl.cfg.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      03f8bba2
    • C
      extract XEN_CONFIG_FORMAT_XM/XL to xen_common.h · f1066d0d
      Chunyan Liu 提交于
      Unify XEN_CONFIG_FORMAT_x and LIBXL_CONFIG_FORMAT_x to
      XEN_CONFIG_FORMAT_x, and move to xen_common.h.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      f1066d0d
    • F
      bhyve: implement virConnectIsSecure · ef45eb9b
      Fabian Freyer 提交于
      Trivially return 1, since bhyve is considered a local connection that
      should not be vulnerable to eavesdropping.
      ef45eb9b
    • F
      bhyve: Implement virConnectIsEncrypted · 32aa9ed3
      Fabian Freyer 提交于
      Being a local connection, bhyve does not support encryption. Therefore
      trivially return 0.
      32aa9ed3
  2. 17 5月, 2016 22 次提交
  3. 16 5月, 2016 4 次提交