1. 14 6月, 2016 3 次提交
  2. 10 6月, 2016 5 次提交
  3. 09 6月, 2016 1 次提交
    • M
      qemu: Yet another check for blkdeviotune values · 5f4c50d5
      Martin Kletzander 提交于
      If you want to set block device I/O tuning values that end with '_max'
      and there is nothing else set, libvirt emits an error.  In particular:
      
        error: internal error: Unexpected error
      
      That's an unknown error.  That is because *_max values depend on their
      respective non-_max values.  QEMU even says that in the error message
      sent as a response to the monitor command:
      
        "error": {"class": "GenericError", "desc": "bps_max/iops_max require
        corresponding bps/iops values"}
      
      the problem was that we didn't know that and there was no check for it.
      Adding such check makes sure that there will be less confused users.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      5f4c50d5
  4. 08 6月, 2016 4 次提交
  5. 07 6月, 2016 3 次提交
  6. 26 5月, 2016 1 次提交
    • 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
  7. 25 5月, 2016 13 次提交
  8. 20 5月, 2016 1 次提交
  9. 19 5月, 2016 6 次提交
    • P
      qemu: bulk stats: Don't access possibly blocked storage · 71d2c172
      Peter Krempa 提交于
      If the stats for a block device can't be acquired from qemu we've
      fallen back to loading them from the file on the disk in libvirt.
      
      If qemu is not cooperating due to being stuck on an inaccessible NFS
      share we would then attempt to read the files and get stuck too with
      the VM object locked. All other APIs would eventually get stuck waiting
      on the VM lock.
      
      Avoid this problem by skipping the block stats if the VM is online but
      the monitor did not provide any stats.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1337073
      71d2c172
    • P
      qemu: driver: Separate bulk stats worker for block devices · 3aa5d51a
      Peter Krempa 提交于
      Extract the fallback path that reloads the stats from disk into a
      separate function.
      3aa5d51a
    • P
      qemu: driver: Remove unnecessary flag in qemuDomainGetStatsBlock · 5d2b0e6f
      Peter Krempa 提交于
      'abbreviated' was true if 'stats' were NULL
      5d2b0e6f
    • Q
      perf: add support to perf event for MBM · 90b9995d
      Qiaowei Ren 提交于
      Some Intel processor families (e.g. the Intel Xeon processor E5 v3
      family) introduced some RDT (Resource Director Technology) features
      to monitor or control shared resource. Among these features, MBM
      (Memory Bandwidth Monitoring), which is build on the CMT (Cache
      Monitoring Technology) infrastructure, provides OS/VMM a way to
      monitor bandwidth from one level of cache to another.
      
      With current perf framework, this patch adds support to perf event
      for MBM.
      Signed-off-by: NQiaowei Ren <qiaowei.ren@intel.com>
      90b9995d
    • C
      qemu: Call virDomainDefPostParse via CONFIG hotplug · 383833e2
      Cole Robinson 提交于
      hotplug APIs with the AFFECT_CONFIG flag are essentially replicating
      'insert <device> into XML document, and redefine XML'. Thinking of
      it this way, it's natural that we call virDomainDefPostParse after
      manually editing the XML here.
      
      Not only does doing so allow us to drop a bunch of open coded calls
      to qemuDomainAssignAddresses, but it also means we are going through
      the standard channels for XML validation and potentially catching
      errors in user submitted XML.
      383833e2
    • C
      qemu: Assign device addresses in PostParse · 5d7314bb
      Cole Robinson 提交于
      This wires up qemuDomainAssignAddresses into the new
      virDomainDefAssignAddressesCallback, so it's always triggered
      via virDomainDefPostParse. We are essentially doing this already
      with open coded calls sprinkled about.
      
      qemu argv parse output changes slightly since previously it wasn't
      hitting qemuDomainAssignAddresses.
      5d7314bb
  10. 18 5月, 2016 1 次提交
  11. 14 5月, 2016 1 次提交
  12. 10 5月, 2016 1 次提交