cpu: Provide vcpu throttling interface
commit2adcc85d407c1ab985f5abed808c78dbb84f4773
authorJason J. Herne <jjherne@linux.vnet.ibm.com>
Tue, 8 Sep 2015 17:12:33 +0000 (8 13:12 -0400)
committerJuan Quintela <quintela@redhat.com>
Wed, 30 Sep 2015 07:42:04 +0000 (30 09:42 +0200)
treecb610b80d3a637771959daa9eb9da7297a07c90f
parent2a6e6e59dfdeb0b98e744eb8f110a236f26a3ea4
cpu: Provide vcpu throttling interface

Provide a method to throttle guest cpu execution. CPUState is augmented with
timeout controls and throttle start/stop functions. To throttle the guest cpu
the caller simply has to call the throttle set function and provide a percentage
of throttle time.

Signed-off-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
cpus.c
include/qom/cpu.h