Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-03-01 Thread Marcelo Tosatti
On Wed, Mar 01, 2017 at 03:21:32PM +0100, Paolo Bonzini wrote: > > > On 28/02/2017 03:45, Marcelo Tosatti wrote: > > On Fri, Feb 24, 2017 at 04:34:52PM +0100, Paolo Bonzini wrote: > >> > >> > >> On 24/02/2017 14:04, Marcelo Tosatti wrote: > >>> Whats the current usecase, or forseeable future

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-03-01 Thread Marcelo Tosatti
On Wed, Mar 01, 2017 at 03:21:32PM +0100, Paolo Bonzini wrote: > > > On 28/02/2017 03:45, Marcelo Tosatti wrote: > > On Fri, Feb 24, 2017 at 04:34:52PM +0100, Paolo Bonzini wrote: > >> > >> > >> On 24/02/2017 14:04, Marcelo Tosatti wrote: > >>> Whats the current usecase, or forseeable future

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-03-01 Thread Paolo Bonzini
On 28/02/2017 03:45, Marcelo Tosatti wrote: > On Fri, Feb 24, 2017 at 04:34:52PM +0100, Paolo Bonzini wrote: >> >> >> On 24/02/2017 14:04, Marcelo Tosatti wrote: >>> Whats the current usecase, or forseeable future usecase, for >>> save/restore >>> across preemption again? (which

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-03-01 Thread Paolo Bonzini
On 28/02/2017 03:45, Marcelo Tosatti wrote: > On Fri, Feb 24, 2017 at 04:34:52PM +0100, Paolo Bonzini wrote: >> >> >> On 24/02/2017 14:04, Marcelo Tosatti wrote: >>> Whats the current usecase, or forseeable future usecase, for >>> save/restore >>> across preemption again? (which

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-28 Thread Marcelo Tosatti
On Fri, Feb 24, 2017 at 04:34:52PM +0100, Paolo Bonzini wrote: > > > On 24/02/2017 14:04, Marcelo Tosatti wrote: > > Whats the current usecase, or forseeable future usecase, for > > save/restore > > across preemption again? (which would validate the broken by design > > claim).

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-28 Thread Marcelo Tosatti
On Fri, Feb 24, 2017 at 04:34:52PM +0100, Paolo Bonzini wrote: > > > On 24/02/2017 14:04, Marcelo Tosatti wrote: > > Whats the current usecase, or forseeable future usecase, for > > save/restore > > across preemption again? (which would validate the broken by design > > claim).

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Rafael J. Wysocki
On Friday, February 24, 2017 04:34:52 PM Paolo Bonzini wrote: > > On 24/02/2017 14:04, Marcelo Tosatti wrote: > > Whats the current usecase, or forseeable future usecase, for > > save/restore > > across preemption again? (which would validate the broken by design > > claim). >

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Rafael J. Wysocki
On Friday, February 24, 2017 04:34:52 PM Paolo Bonzini wrote: > > On 24/02/2017 14:04, Marcelo Tosatti wrote: > > Whats the current usecase, or forseeable future usecase, for > > save/restore > > across preemption again? (which would validate the broken by design > > claim). >

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Paolo Bonzini
On 24/02/2017 14:04, Marcelo Tosatti wrote: > Whats the current usecase, or forseeable future usecase, for save/restore > across preemption again? (which would validate the broken by design > claim). Stop a guest that is using cpufreq, start a guest that is not using it.

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Paolo Bonzini
On 24/02/2017 14:04, Marcelo Tosatti wrote: > Whats the current usecase, or forseeable future usecase, for save/restore > across preemption again? (which would validate the broken by design > claim). Stop a guest that is using cpufreq, start a guest that is not using it.

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Marcelo Tosatti
On Fri, Feb 24, 2017 at 01:17:07PM +0100, Paolo Bonzini wrote: > > > On 24/02/2017 12:50, Marcelo Tosatti wrote: > >>> > >>> On all other cpufreq implementations, these boundaries still need to > >>> be set. Then, a "governor" must be selected. Such a "governor" decides > >>> what speed the

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Marcelo Tosatti
On Fri, Feb 24, 2017 at 01:17:07PM +0100, Paolo Bonzini wrote: > > > On 24/02/2017 12:50, Marcelo Tosatti wrote: > >>> > >>> On all other cpufreq implementations, these boundaries still need to > >>> be set. Then, a "governor" must be selected. Such a "governor" decides > >>> what speed the

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Paolo Bonzini
On 24/02/2017 12:50, Marcelo Tosatti wrote: >>> >>> On all other cpufreq implementations, these boundaries still need to >>> be set. Then, a "governor" must be selected. Such a "governor" decides >>> what speed the processor shall run within the boundaries. One such >>> "governor" is the

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Paolo Bonzini
On 24/02/2017 12:50, Marcelo Tosatti wrote: >>> >>> On all other cpufreq implementations, these boundaries still need to >>> be set. Then, a "governor" must be selected. Such a "governor" decides >>> what speed the processor shall run within the boundaries. One such >>> "governor" is the

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Marcelo Tosatti
On Fri, Feb 24, 2017 at 10:18:59AM +0100, Paolo Bonzini wrote: > > > On 24/02/2017 00:19, Marcelo Tosatti wrote: > >>> i.e. our feature implies userspace tasks pinned to isolated vCPUs. > > This is how cpufreq-userspace works: > > > > 2.2 Governor > > > > > > On all other cpufreq

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Marcelo Tosatti
On Fri, Feb 24, 2017 at 10:18:59AM +0100, Paolo Bonzini wrote: > > > On 24/02/2017 00:19, Marcelo Tosatti wrote: > >>> i.e. our feature implies userspace tasks pinned to isolated vCPUs. > > This is how cpufreq-userspace works: > > > > 2.2 Governor > > > > > > On all other cpufreq

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Paolo Bonzini
On 24/02/2017 00:19, Marcelo Tosatti wrote: >>> i.e. our feature implies userspace tasks pinned to isolated vCPUs. > This is how cpufreq-userspace works: > > 2.2 Governor > > > On all other cpufreq implementations, these boundaries still need to > be set. Then, a "governor" must

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-24 Thread Paolo Bonzini
On 24/02/2017 00:19, Marcelo Tosatti wrote: >>> i.e. our feature implies userspace tasks pinned to isolated vCPUs. > This is how cpufreq-userspace works: > > 2.2 Governor > > > On all other cpufreq implementations, these boundaries still need to > be set. Then, a "governor" must

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-23 Thread Marcelo Tosatti
it to a daemon in the host through virtio-serial > or vsock. > > Paolo Hypercalls overcome the problems mentioned in the first email of the thread, i think you missed them: "[patch 0/3] KVM CPU frequency change hypercalls"

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-23 Thread Marcelo Tosatti
it to a daemon in the host through virtio-serial > or vsock. > > Paolo Hypercalls overcome the problems mentioned in the first email of the thread, i think you missed them: "[patch 0/3] KVM CPU frequency change hypercalls"

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-23 Thread Paolo Bonzini
On 03/02/2017 20:09, Radim Krcmar wrote: > One reason why we have a kernel/userspace split is to allow sharing of > CPU time. Each application then its state that the kernel keeps track > of and saves/restores while time-multiplexing. > > Our frequency scaling interface goes against the idea

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-23 Thread Paolo Bonzini
On 03/02/2017 20:09, Radim Krcmar wrote: > One reason why we have a kernel/userspace split is to allow sharing of > CPU time. Each application then its state that the kernel keeps track > of and saves/restores while time-multiplexing. > > Our frequency scaling interface goes against the idea

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-03 Thread Radim Krcmar
2017-02-03 16:14-0200, Marcelo Tosatti: > On Fri, Feb 03, 2017 at 05:43:50PM +0100, Radim Krcmar wrote: >> 2017-02-02 15:47-0200, Marcelo Tosatti: >> > Implement KVM hypercalls for the guest >> > to issue frequency changes. >> > >> > Current situation with DPDK and frequency changes is as

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-03 Thread Radim Krcmar
2017-02-03 16:14-0200, Marcelo Tosatti: > On Fri, Feb 03, 2017 at 05:43:50PM +0100, Radim Krcmar wrote: >> 2017-02-02 15:47-0200, Marcelo Tosatti: >> > Implement KVM hypercalls for the guest >> > to issue frequency changes. >> > >> > Current situation with DPDK and frequency changes is as

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-03 Thread Marcelo Tosatti
On Fri, Feb 03, 2017 at 05:43:50PM +0100, Radim Krcmar wrote: > 2017-02-02 15:47-0200, Marcelo Tosatti: > > Implement KVM hypercalls for the guest > > to issue frequency changes. > > > > Current situation with DPDK and frequency changes is as follows: > > An algorithm in the guest decides when to

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-03 Thread Marcelo Tosatti
On Fri, Feb 03, 2017 at 05:43:50PM +0100, Radim Krcmar wrote: > 2017-02-02 15:47-0200, Marcelo Tosatti: > > Implement KVM hypercalls for the guest > > to issue frequency changes. > > > > Current situation with DPDK and frequency changes is as follows: > > An algorithm in the guest decides when to

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-03 Thread Radim Krcmar
2017-02-02 15:47-0200, Marcelo Tosatti: > Implement KVM hypercalls for the guest > to issue frequency changes. > > Current situation with DPDK and frequency changes is as follows: > An algorithm in the guest decides when to increase/decrease > frequency based on the queue length of the device.

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-03 Thread Radim Krcmar
2017-02-02 15:47-0200, Marcelo Tosatti: > Implement KVM hypercalls for the guest > to issue frequency changes. > > Current situation with DPDK and frequency changes is as follows: > An algorithm in the guest decides when to increase/decrease > frequency based on the queue length of the device.

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-03 Thread Rafael J. Wysocki
On Thursday, February 02, 2017 03:47:55 PM Marcelo Tosatti wrote: > Implement KVM hypercalls for the guest > to issue frequency changes. > > Current situation with DPDK and frequency changes is as follows: > An algorithm in the guest decides when to increase/decrease > frequency based on the

Re: [patch 0/3] KVM CPU frequency change hypercalls

2017-02-03 Thread Rafael J. Wysocki
On Thursday, February 02, 2017 03:47:55 PM Marcelo Tosatti wrote: > Implement KVM hypercalls for the guest > to issue frequency changes. > > Current situation with DPDK and frequency changes is as follows: > An algorithm in the guest decides when to increase/decrease > frequency based on the

[patch 0/3] KVM CPU frequency change hypercalls

2017-02-02 Thread Marcelo Tosatti
Implement KVM hypercalls for the guest to issue frequency changes. Current situation with DPDK and frequency changes is as follows: An algorithm in the guest decides when to increase/decrease frequency based on the queue length of the device. On the host, a power manager daemon is used to listen

[patch 0/3] KVM CPU frequency change hypercalls

2017-02-02 Thread Marcelo Tosatti
Implement KVM hypercalls for the guest to issue frequency changes. Current situation with DPDK and frequency changes is as follows: An algorithm in the guest decides when to increase/decrease frequency based on the queue length of the device. On the host, a power manager daemon is used to listen