1. 27 5月, 2016 2 次提交
    • E
      maint: update to latest gnulib · 0cd64883
      Eric Blake 提交于
      Pulls in several portability fixes, including the fact that gnulib
      now only works on platforms with two's complement signed integers.
      Also makes for a smaller delta on the next update (we are waiting
      on a license change to unsetenv for the sake of mingw).
      
      * .gnulib: Update to latest.
      * bootstrap: Resync from upstream.
      * tests/virstringtest.c: Drop use of obsolete probes of integer
      properties.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      0cd64883
    • D
      esx: do not store escaped password in esxVI_Context. · 3ef5e218
      Dawid Zamirski 提交于
      This patch fixes an issue where screenshot API call was failing when
      the esx/vcenter password contains special characters such as
      apostrophee. The reason for failures was that passwords were escaped
      for XML and stored in esxVI_Context which was then passed to raw CURL
      API calls where the password must be passed in original form to
      authenticate successfully. So this patch addresses this by storing
      original passwords in the esxVI_Context struct and escape only for
      esxVI_Login call.
      3ef5e218
  2. 26 5月, 2016 8 次提交
    • A
      qemu: Fix error message when PCI bridge has index <= bus · c7289cf3
      Andrea Bolognani 提交于
      Commit ff212622 changed the error message to be more
      detailed about the failure at hand; however, while the new
      error message claims that "bus must be <= index", the error
      message is displayed if "idx <= addr->bus", ie. when bus
      is larger than or *equal to* index.
      
      Change the error message to report the correct constraint,
      and format it in a way that mirrors the check exactly to
      make it clearer to people reading the code. The new error
      message reads "index must be larger than bus".
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1339900
      c7289cf3
    • N
      daemon: cleanup state drivers in order reverse to init order · 3ba93c75
      Nikolay Shirokovskiy 提交于
      This patch aims to fix observed crash on daemon shutdown. Main thread is in
      the process of state drivers cleanup, network driver is cleaned up and
      qemu driver is not yet. Meanwhile eof event from qemu process triggers
      qemuProcessStop -> networkReleaseActualDevice and crash happens as
      network driver is already cleaned up.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      3ba93c75
    • D
      esx: use newer virtualHW version for 5.1+ hosts · f8f74408
      Dawid Zamirski 提交于
      This is because there's a known issue where ESX will refuse to attach
      drives bigger than 4TB when virtualHW < 9. Therefore, to avoid that
      use the higher virtualHW for hosts that support it.
      
      https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2054952
      f8f74408
    • D
      esx: Add VMCI device for virtualHW >= 7 · 5b36410f
      Dawid Zamirski 提交于
      This patch fixes an issue where vMotion fails when VMCI device is not
      present in the vmx file.
      5b36410f
    • D
      esx: add pciBridge devices when SCSI is used · 2b89f1d8
      Dawid Zamirski 提交于
      When a SCSI controller is present, ESX adds several pciBridge devices
      to vmx file. This fixes an error message where it refuses to create VM
      due to not enough PCI devices available. This applies only to virtualHW
      version >= 7.
      2b89f1d8
    • L
      conf: permit auto-assignment of controller indexes · 4d100c7a
      Laine Stump 提交于
      Hand-entering indexes for 20 PCI controllers is not as tedious as
      manually determining and entering their PCI addresses, but it's still
      annoying, and the algorithm for determining the proper index is
      incredibly simple (in all cases except one) - just pick the lowest
      unused index.
      
      The one exception is USB2 controllers because multiple controllers in
      the same group have the same index. For these we look to see if 1) the
      most recently added USB controller is also a USB2 controller, and 2)
      the group *that* controller belongs to doesn't yet have a controller
      of the exact model we're just now adding - if both are true, the new
      controller gets the same index, but in all other cases we just assign
      the lowest unused index.
      
      With this patch in place and combined with the automatic PCI address
      assignment, we can define a PCIe switch with several ports like this:
      
        <controller type='pci' model='pcie-root-port'/>
        <controller type='pci' model='pcie-switch-upstream-port'/>
        <controller type='pci' model='pcie-switch-downstream-port'/>
        <controller type='pci' model='pcie-switch-downstream-port'/>
        <controller type='pci' model='pcie-switch-downstream-port'/>
        <controller type='pci' model='pcie-switch-downstream-port'/>
        <controller type='pci' model='pcie-switch-downstream-port'/>
        ...
      
      These will each get a unique index, and PCI addresses that connect
      them together appropriately with no pesky numbers required.
      4d100c7a
    • L
      conf: make virDomainControllerFindUnusedIndex() more generally usable · 808e16ff
      Laine Stump 提交于
      Make virDomainControllerFindUnusedIndex() a global function so that it
      can be used outside domain_conf.c (as well as higher up in
      domain_conf.c itself)/ Also make its DomainDef arg a const* so that
      functions which only have a const* to the domain can use it.
      808e16ff
    • L
      conf/qemu: make IS_USB2_CONTROLLER globally available · 1140b31f
      Laine Stump 提交于
      IS_USB2_CONTROLLER() is useful in more places aside from just when
      assigning PCI addresses in QEMU, and is checking for enum values that
      are all defined in conf/domain_conf.h anyway, so define it there
      instead.
      1140b31f
  3. 25 5月, 2016 30 次提交