1. 19 2月, 2016 6 次提交
  2. 17 2月, 2016 5 次提交
  3. 11 2月, 2016 1 次提交
    • J
      qemu: Split the command parsing routines into own module · d860b2f5
      John Ferlan 提交于
      Extract out the qemuParseCommandLine{String|Pid} into their own
      separate module - taking with it all the various static functions.
      
      Causes a ripple effect with a few other modules to include the
      new qemu_parse_command.h.
      
      Narrowed down the list of #include's in the split out module to
      those that are necessary for build.
      d860b2f5
  4. 09 2月, 2016 2 次提交
  5. 08 2月, 2016 9 次提交
  6. 05 2月, 2016 2 次提交
  7. 04 2月, 2016 1 次提交
    • J
      conf: add caps to virDomainSaveConfig · cd57b7c7
      Joao Martins 提交于
      virDomainSaveConfig calls virDomainDefFormat which was setting the caps
      to NULL, thus keeping the old behaviour (i.e. not looking at
      netprefix). This patch adds the virCapsPtr to the function and allows
      the configuration to be saved and skipping interface names that were
      registered with virCapabilitiesSetNetPrefix().
      Signed-off-by: NJoao Martins <joao.m.martins@oracle.com>
      cd57b7c7
  8. 03 2月, 2016 4 次提交
  9. 01 2月, 2016 1 次提交
  10. 28 1月, 2016 1 次提交
  11. 26 1月, 2016 2 次提交
    • D
      qemu: add reporting of vCPU wait time · 511e7c5b
      Daniel P. Berrange 提交于
      The VIR_DOMAIN_STATS_VCPU flag to virDomainListGetStats
      enables reporting of stats about vCPUs. Currently we
      only report the cumulative CPU running time and the
      execution state.
      
      This adds reporting of the wait time - time the vCPU
      wants to run, but the host scheduler has something else
      running ahead of it.
      
      The data is reported per-vCPU eg
      
      $ virsh domstats --vcpu demo
       Domain: 'demo'
         vcpu.current=4
         vcpu.maximum=4
         vcpu.0.state=1
         vcpu.0.time=1420000000
         vcpu.0.wait=18403928
         vcpu.1.state=1
         vcpu.1.time=130000000
         vcpu.1.wait=10612111
         vcpu.2.state=1
         vcpu.2.time=110000000
         vcpu.2.wait=12759501
         vcpu.3.state=1
         vcpu.3.time=90000000
         vcpu.3.wait=21825087
      
      In implementing this I notice our reporting of CPU execute
      time has very poor granularity, since we are getting it
      from /proc/$PID/stat. As a future enhancement we should
      prefer to get CPU execute time from /proc/$PID/schedstat
      or /proc/$PID/sched (if either exist on the running kernel)
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      511e7c5b
    • P
      (qemu|lxc)DomainGetCPUStats: Clean up · 51f07d8f
      Peter Krempa 提交于
      Remove unnecessary condition and variable.
      51f07d8f
  12. 21 1月, 2016 1 次提交
    • D
      qemuDomainReboot: use fakeReboot=true only for acpi mode · e2b86f58
      Dmitry Andreev 提交于
      When acpi is used to reboot/shutdown qemu domain, qemu emits
      SHUTDOWN event. Libvirt uses fakeReboot variable in order to
      differentiate reboot or shutdown. fakeReboot value is reseted
      to false after domain restart/reset.
      
      When mode=agent is used to reboot qemu domain, qemu doesn't emit
      SHUTDOWN event and libvirt doesn't reset fakeReboot value to false.
      In this case next 'shutdown -h now' performs reboot. That's why
      we don't need to set fakeReboot=true for mode=agent.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      e2b86f58
  13. 12 1月, 2016 1 次提交
    • M
      qemu: Set virtio channel state sooner · 2f504455
      Michal Privoznik 提交于
      In qemu driver we listen to virtio channel events like an agent
      connected to or disconnected from the guest part of socket.
      However, with a little exception - when we find out that the
      socket in question is the guest agent one, we connect or
      disconnect guest agent which is done prior setting new state in
      internal structure. Due to a bug in our code it may happen that
      we got the event but failed to set it in internal structure
      representing the channel.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2f504455
  14. 09 1月, 2016 3 次提交
  15. 07 1月, 2016 1 次提交