Re: [Qemu-devel] [PATCH 1/2] cpu: Provide vcpu throttling interface

2015-06-03 Thread Jason J. Herne
On 06/03/2015 03:12 AM, Juan Quintela wrote: diff --git a/include/qom/cpu.h b/include/qom/cpu.h >index 39f0f19..9d16e6a 100644 >--- a/include/qom/cpu.h >+++ b/include/qom/cpu.h >@@ -310,6 +310,11 @@ struct CPUState { > uint32_t can_do_io; > int32_t exception_index; /* used by m68k TCG *

Re: [Qemu-devel] [PATCH 1/2] cpu: Provide vcpu throttling interface

2015-06-03 Thread Juan Quintela
"Jason J. Herne" wrote: > 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 start function and provide a ratio > of > sleep time to normal execut

Re: [Qemu-devel] [PATCH 1/2] cpu: Provide vcpu throttling interface

2015-06-01 Thread Jason J. Herne
On 06/01/2015 11:23 AM, Andrey Korolyov wrote: On Mon, Jun 1, 2015 at 6:17 PM, Jason J. Herne wrote: 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 throt

Re: [Qemu-devel] [PATCH 1/2] cpu: Provide vcpu throttling interface

2015-06-01 Thread Andrey Korolyov
On Mon, Jun 1, 2015 at 6:17 PM, Jason J. Herne wrote: > 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 start function and provide a ratio > of

[Qemu-devel] [PATCH 1/2] cpu: Provide vcpu throttling interface

2015-06-01 Thread Jason J. Herne
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 start function and provide a ratio of sleep time to normal execution time. Signed-off-by: Jason J. H