1. 08 3月, 2017 2 次提交
  2. 06 3月, 2017 1 次提交
    • M
      qemu: Enforce qemuSecurity wrappers · 4da534c0
      Michal Privoznik 提交于
      Now that we have some qemuSecurity wrappers over
      virSecurityManager APIs, lets make sure everybody sticks with
      them. We have them for a reason and calling virSecurityManager
      API directly instead of wrapper may lead into accidentally
      labelling a file on the host instead of namespace.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4da534c0
  3. 24 2月, 2017 1 次提交
  4. 21 2月, 2017 7 次提交
  5. 15 2月, 2017 1 次提交
    • M
      qemu_conf: Check for namespaces availability more wisely · b57bd206
      Michal Privoznik 提交于
      The bare fact that mnt namespace is available is not enough for
      us to allow/enable qemu namespaces feature. There are other
      requirements: we must copy all the ACL & SELinux labels otherwise
      we might grant access that is administratively forbidden or vice
      versa.
      At the same time, the check for namespace prerequisites is moved
      from domain startup time to qemu.conf parser as it doesn't make
      much sense to allow users to start misconfigured libvirt just to
      find out they can't start a single domain.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      b57bd206
  6. 08 2月, 2017 1 次提交
  7. 01 2月, 2017 1 次提交
  8. 30 1月, 2017 3 次提交
  9. 18 1月, 2017 2 次提交
    • P
      qemu: Move cpu hotplug code into qemu_hotplug.c · 9d14cf59
      Peter Krempa 提交于
      Move all the worker code into the appropriate file. This will also allow
      testing of cpu hotplug.
      9d14cf59
    • P
      qemu: Prepare for reuse of qemuDomainSetVcpusLive · 5570f267
      Peter Krempa 提交于
      Extract the call to qemuDomainSelectHotplugVcpuEntities outside of
      qemuDomainSetVcpusLive and decide whether to hotplug or unplug the
      entities specified by the cpumap using a boolean flag.
      
      This will allow to use qemuDomainSetVcpusLive in cases where we prepare
      the list of vcpus to enable or disable by other means.
      5570f267
  10. 17 1月, 2017 1 次提交
  11. 11 1月, 2017 4 次提交
  12. 10 1月, 2017 3 次提交
  13. 09 1月, 2017 1 次提交
  14. 04 1月, 2017 1 次提交
  15. 21 12月, 2016 1 次提交
    • J
      qemu: Adjust qemuDomainGetBlockInfo data for sparse backed files · b9b1aa63
      John Ferlan 提交于
      According to commit id '0282ca45' the 'physical' value should
      essentially be the last offset of the image or the host physical
      size in bytes of the image container. However, commit id '15fa84ac'
      refactored the GetBlockInfo to use the same returned data as the
      GetStatsBlock API for an active domain. For the 'entry->physical'
      that would end up being the "actual-size" as set through the
      qemuMonitorJSONBlockStatsUpdateCapacityOne (commit '7b11f5e5').
      Digging deeper into QEMU code one finds that actual_size is
      filled in using the same algorithm as GetBlockInfo has used for
      setting the 'allocation' field when the domain is inactive.
      
      The difference in values is seen primarily in sparse raw files
      and other container type files (such as qcow2), which will return
      a smaller value via the stat API for 'st_blocks'. Additionally
      for container files, the 'capacity' field (populated via the
      QEMU "virtual-size" value) may be slightly different (smaller)
      in order to accomodate the overhead for the container. For
      sparse files, the state 'st_size' field is returned.
      
      This patch thus alters the allocation and physical values for
      sparse backed storage files to be more appropriate to the API
      contract. The result for GetBlockInfo is the following:
      
       capacity: logical size in bytes of the image (how much storage
                 the guest will see)
       allocation: host storage in bytes occupied by the image (such
                   as highest allocated extent if there are no holes,
                   similar to 'du')
       physical: host physical size in bytes of the image container
                 (last offset, similar to 'ls')
      
      NB: The GetStatsBlock API allows a different contract for the
      values:
      
       "block.<num>.allocation" - offset of the highest written sector
                                  as unsigned long long.
       "block.<num>.capacity" - logical size in bytes of the block device
                                backing image as unsigned long long.
       "block.<num>.physical" - physical size in bytes of the container
                                of the backing image as unsigned long long.
      b9b1aa63
  16. 20 12月, 2016 1 次提交
  17. 17 12月, 2016 1 次提交
  18. 16 12月, 2016 4 次提交
  19. 15 12月, 2016 2 次提交
  20. 13 12月, 2016 2 次提交