1. 29 3月, 2016 13 次提交
    • N
      storage: Initialize pool size parameters for refresh thread · 3e19b5d5
      Nitesh Konkar 提交于
      If the pool creation thread happens to detect the luns in
      the scsi target, the size parameters will be calculated as
      part of the refreshPool called from storagePoolCreate().
      
      This means the virStoragePoolFCRefreshThread (commit id
      '512b8747') waiting to run and "refresh" the pool will
      essentially double the allocation and capacity values.
      A separate refresh would correct the values.
      
      To avoid this, the FCRefreshThread needs to reinitialize
      the pool size values prior to calling virStorageBackendSCSIFindLUs
      which eventually calls virStorageBackendSCSINewLun and
      updates the size values for each volume found.
      3e19b5d5
    • P
      storage: rbd: Fix build · 98033a8b
      Peter Krempa 提交于
      After the recent commits the build didn't work for me. Fix it by
      using size_t as the callback argument is using and the correct
      formatter. The attempted fixup to use %llu as a formatter was wrong.
      98033a8b
    • J
      libxl: remove reference to non-existent out label · 33a1a7c6
      Jim Fehlig 提交于
      Commit e6336442 changed the 'out:' label to 'cleanup'  in
      libxlDomainAttachNetDevice(), but missed a comment referencing
      the 'out:' label. Remove it from the comment since it is no
      longer accurate anyhow.
      33a1a7c6
    • C
      tests: virtnettlscontexttest: Use virGetLastErrorMessage() · 49022317
      Cole Robinson 提交于
      Use virGetLastErrorMessage() rather than open code it
      49022317
    • C
      docs: website: more header spacing tweaks · f4a212d7
      Cole Robinson 提交于
      - remove top padding for h1. this means page titles sit flush with the top
        of the side bar (like 'The virtualization API' on the front page)
      - up the top padding for the remaining sections. makes it visually easier
        to tell adjacent header sections apart, especially in dense wiki pages
      - use two different spacing levels for h2-h4 and h5-h6,
        gives pages some more visual flexibility
      - use a slightly lower bottom padding... this makes top padding stick out
        more which makes it visually easier to differentiate between adjacent
        header sections
      f4a212d7
    • J
      docs: Update the hyperv feature qemu supported version · 53d2ca5f
      John Ferlan 提交于
      In order to follow recent comments which indicate support for specific
      feature bits are supported by a specific QEMU version add the version
      from whence the relaxed, vapic, and spinlocks support was added.
      53d2ca5f
    • M
      conf: qemu: Add support for more HyperV Enlightenment features · 7068b56c
      Maxim Nestratov 提交于
      This patch adds support for "vpindex", "runtime", "synic",
      "stimer", and "vendor_id" features available in qemu 2.5+.
      
      - When Hyper-V "vpindex" is on, guest can use MSR HV_X64_MSR_VP_INDEX
      to get virtual processor ID.
      
      - Hyper-V "runtime" enlightement feature allows to use MSR
      HV_X64_MSR_VP_RUNTIME to get the time the virtual processor consumes
      running guest code, as well as the time the hypervisor spends running
      code on behalf of that guest.
      
      - Hyper-V "synic" stands for Synthetic Interrupt Controller, which is
      lapic extension controlled via MSRs.
      
      - Hyper-V "stimer" switches on Hyper-V SynIC timers MSR's support.
      Guest can setup and use fired by host events (SynIC interrupt and
      appropriate timer expiration message) as guest clock events
      
      - Hyper-V "reset" allows guest to reset VM.
      
      - Hyper-V "vendor_id" exposes hypervisor vendor id to guest.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      7068b56c
    • N
      conf: refactor hyperv features xml output · 2e26d78c
      Nikolay Shirokovskiy 提交于
      1. All hyperv features are tristate ones. So make tristate generating part common.
      2. Reduce nesting on spinlocks.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      2e26d78c
    • N
      conf: refactor hyperv features parsing · ae37d9f1
      Nikolay Shirokovskiy 提交于
      1. All hyperv features are tristate ones. So make tristate parsing code common.
      2. Reindent switch statement.
      3. Reduce nesting in spinlocks parsing.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ae37d9f1
    • L
      util: avoid getting stuck on macvtapN name created outside libvirt · 5b5f12cf
      Laine Stump 提交于
      After the patches that added tracking of in-use macvtap names (commit
      370608, first appearing in libvirt-1.3.2), if the function to allocate
      a new macvtap device came to a device name created outside libvirt, it
      would retry the same device name MACVLAN_MAX_ID (8191) times before
      finally giving up in failure.
      
      The problem was that virBitmapNextClearBit was always being called
      with "0" rather than the value most recently checked (which would
      increment each time through the loop), so it would always return the
      same id (since we dutifully release that id after failing to create a
      new device using it).
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1321546Signed-off-by: NLaine Stump <laine@laine.org>
      5b5f12cf
    • C
      libxl: fix hot add/remove VF from a pool · 373b9e9f
      Chunyan Liu 提交于
      For those VF allocated from a network pool, we need to set its backend
      to be VIR_DOMAIN_HOSTDEV_PCI_BACKEND_XEN so that later work can be
      correct.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      373b9e9f
    • A
      tests: storagepoolxml2xmltest: Enable pool-rbd · 289f37ea
      Anatole Denis 提交于
      This test was commited 4 years ago, but was never enabled in
      storagepoolxml2xmltest.c. This patch reactivates it, conditionnaly on RBD
      storage support being enabled
      289f37ea
    • A
      tests: storagepoolxml2xmltest: Fix pool-rbd test · 47847451
      Anatole Denis 提交于
      This test failed for two reasons:
      * The uuid was missing from the input file
      * The output file had the <name> in a different place from the actual output
      47847451
  2. 27 3月, 2016 2 次提交
    • R
      Revert "zfs: Only raw volumes are supported" · b77cec09
      Roman Bogorodskiy 提交于
      This reverts commit bb5f2dc9.
      
      The "if (vol->target.format != VIR_STORAGE_FILE_RAW)" check in the
      createVol backend. This check is bogus because virStorageVolDefParseXML()
      in conf/storage_conf.c sets target.format only if volOptions in
      virStoragePoolTypeInfo has formatFromString set, and that's not the
      case the zfs backend.
      
      So the check always fails and breaks volume creation.
      b77cec09
    • R
      Revert "logical: Only raw volumes are supported" · 139a3197
      Roman Bogorodskiy 提交于
      This reverts commit 6682d621.
      
      The "if (vol->target.format != VIR_STORAGE_FILE_RAW)" check in the
      createVol backend. This check is bogus because virStorageVolDefParseXML()
      in conf/storage_conf.c sets target.format only if volOptions in
      virStoragePoolTypeInfo has formatFromString set, and that's not the
      case the logical backend.
      
      So the check always fails and breaks volume creation.
      139a3197
  3. 26 3月, 2016 5 次提交
  4. 25 3月, 2016 8 次提交
  5. 24 3月, 2016 9 次提交
  6. 23 3月, 2016 3 次提交
    • M
      qemuxml2argv: Mock virSCSIDeviceGetSgName · 4b527c1a
      Michal Privoznik 提交于
      When constructing SCSI hostdev command line for qemu, the
      /sys/bus/scsi/devices/... dir is scanned. Unfortunately, even in
      the tests. This is needed to determine the name of SCSI device to
      passthrough to qemu, because in the domain XML we were given its
      address instead. Anyway, we should not be touching live system
      data in our test suite as it produced unpredictable results. The
      test is regressing from 1e9a0837 on.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4b527c1a
    • V
      autocreate tap device for ethernet network type · 9c17d665
      Vasiliy Tolstov 提交于
      If a user specify network type ethernet, then create it via libvirt and run
      script if it provided. After this commit user does not need to
      run external script to create tap device or add root permissions to qemu
      process.
      Signed-off-by: NVasiliy Tolstov <v.tolstov@selfip.ru>
      9c17d665
    • A
      tests: hostdev: Add more tests · ee07c980
      Andrea Bolognani 提交于
      Ensure the code behaves properly even for situations that were not
      being considered before, such as simply detaching devices from the
      host without attaching them to a guest and attaching devices as
      managed even though they had already been manually detached from
      the host.
      ee07c980