Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-05 Thread Michael S. Tsirkin
On Wed, Oct 04, 2017 at 11:31:43AM -0700, Jacob Pan wrote: > On Wed, 4 Oct 2017 20:12:28 +0300 > "Michael S. Tsirkin" wrote: > > > On Wed, Oct 04, 2017 at 10:09:39AM -0700, Jacob Pan wrote: > > > On Wed, 4 Oct 2017 05:09:09 +0300 > > > "Michael S. Tsirkin"

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-05 Thread Michael S. Tsirkin
On Wed, Oct 04, 2017 at 11:31:43AM -0700, Jacob Pan wrote: > On Wed, 4 Oct 2017 20:12:28 +0300 > "Michael S. Tsirkin" wrote: > > > On Wed, Oct 04, 2017 at 10:09:39AM -0700, Jacob Pan wrote: > > > On Wed, 4 Oct 2017 05:09:09 +0300 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Mon, Oct

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-05 Thread Paolo Bonzini
On 04/10/2017 20:31, Jacob Pan wrote: > On Wed, 4 Oct 2017 20:12:28 +0300 > "Michael S. Tsirkin" wrote: > >> On Wed, Oct 04, 2017 at 10:09:39AM -0700, Jacob Pan wrote: >>> On Wed, 4 Oct 2017 05:09:09 +0300 >>> "Michael S. Tsirkin" wrote: >>> On Mon, Oct

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-05 Thread Paolo Bonzini
On 04/10/2017 20:31, Jacob Pan wrote: > On Wed, 4 Oct 2017 20:12:28 +0300 > "Michael S. Tsirkin" wrote: > >> On Wed, Oct 04, 2017 at 10:09:39AM -0700, Jacob Pan wrote: >>> On Wed, 4 Oct 2017 05:09:09 +0300 >>> "Michael S. Tsirkin" wrote: >>> On Mon, Oct 02, 2017 at 10:12:49AM -0700,

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Rafael J. Wysocki
On Wed, Oct 4, 2017 at 9:56 AM, Thomas Gleixner wrote: > On Wed, 4 Oct 2017, Michael S. Tsirkin wrote: >> On Tue, Oct 03, 2017 at 11:02:55PM +0200, Thomas Gleixner wrote: >> > There is the series from Audrey which makes use of the various idle >> > prediction mechanisms,

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Rafael J. Wysocki
On Wed, Oct 4, 2017 at 9:56 AM, Thomas Gleixner wrote: > On Wed, 4 Oct 2017, Michael S. Tsirkin wrote: >> On Tue, Oct 03, 2017 at 11:02:55PM +0200, Thomas Gleixner wrote: >> > There is the series from Audrey which makes use of the various idle >> > prediction mechanisms, scheduler, irq timings,

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Jacob Pan
On Wed, 4 Oct 2017 20:12:28 +0300 "Michael S. Tsirkin" wrote: > On Wed, Oct 04, 2017 at 10:09:39AM -0700, Jacob Pan wrote: > > On Wed, 4 Oct 2017 05:09:09 +0300 > > "Michael S. Tsirkin" wrote: > > > > > On Mon, Oct 02, 2017 at 10:12:49AM -0700, Jacob Pan

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Jacob Pan
On Wed, 4 Oct 2017 20:12:28 +0300 "Michael S. Tsirkin" wrote: > On Wed, Oct 04, 2017 at 10:09:39AM -0700, Jacob Pan wrote: > > On Wed, 4 Oct 2017 05:09:09 +0300 > > "Michael S. Tsirkin" wrote: > > > > > On Mon, Oct 02, 2017 at 10:12:49AM -0700, Jacob Pan wrote: > > > > On Sat, 30 Sep 2017

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Michael S. Tsirkin
On Wed, Oct 04, 2017 at 10:09:39AM -0700, Jacob Pan wrote: > On Wed, 4 Oct 2017 05:09:09 +0300 > "Michael S. Tsirkin" wrote: > > > On Mon, Oct 02, 2017 at 10:12:49AM -0700, Jacob Pan wrote: > > > On Sat, 30 Sep 2017 01:21:43 +0200 > > > "Rafael J. Wysocki"

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Michael S. Tsirkin
On Wed, Oct 04, 2017 at 10:09:39AM -0700, Jacob Pan wrote: > On Wed, 4 Oct 2017 05:09:09 +0300 > "Michael S. Tsirkin" wrote: > > > On Mon, Oct 02, 2017 at 10:12:49AM -0700, Jacob Pan wrote: > > > On Sat, 30 Sep 2017 01:21:43 +0200 > > > "Rafael J. Wysocki" wrote: > > > > > > > On Sat, Sep

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Jacob Pan
On Wed, 4 Oct 2017 05:09:09 +0300 "Michael S. Tsirkin" wrote: > On Mon, Oct 02, 2017 at 10:12:49AM -0700, Jacob Pan wrote: > > On Sat, 30 Sep 2017 01:21:43 +0200 > > "Rafael J. Wysocki" wrote: > > > > > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Jacob Pan
On Wed, 4 Oct 2017 05:09:09 +0300 "Michael S. Tsirkin" wrote: > On Mon, Oct 02, 2017 at 10:12:49AM -0700, Jacob Pan wrote: > > On Sat, 30 Sep 2017 01:21:43 +0200 > > "Rafael J. Wysocki" wrote: > > > > > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > > > wrote: > > > > intel idle

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Thomas Gleixner
On Wed, 4 Oct 2017, Michael S. Tsirkin wrote: > On Tue, Oct 03, 2017 at 11:02:55PM +0200, Thomas Gleixner wrote: > > There is the series from Audrey which makes use of the various idle > > prediction mechanisms, scheduler, irq timings, idle governor to get an idea > > about the estimated idle

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Thomas Gleixner
On Wed, 4 Oct 2017, Michael S. Tsirkin wrote: > On Tue, Oct 03, 2017 at 11:02:55PM +0200, Thomas Gleixner wrote: > > There is the series from Audrey which makes use of the various idle > > prediction mechanisms, scheduler, irq timings, idle governor to get an idea > > about the estimated idle

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-03 Thread Michael S. Tsirkin
On Tue, Oct 03, 2017 at 11:02:55PM +0200, Thomas Gleixner wrote: > On Mon, 2 Oct 2017, Jacob Pan wrote: > > On Sat, 30 Sep 2017 01:21:43 +0200 > > "Rafael J. Wysocki" wrote: > > > > > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > > > wrote: > > > >

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-03 Thread Michael S. Tsirkin
On Tue, Oct 03, 2017 at 11:02:55PM +0200, Thomas Gleixner wrote: > On Mon, 2 Oct 2017, Jacob Pan wrote: > > On Sat, 30 Sep 2017 01:21:43 +0200 > > "Rafael J. Wysocki" wrote: > > > > > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > > > wrote: > > > > intel idle driver does not DTRT when

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-03 Thread Michael S. Tsirkin
On Mon, Oct 02, 2017 at 10:12:49AM -0700, Jacob Pan wrote: > On Sat, 30 Sep 2017 01:21:43 +0200 > "Rafael J. Wysocki" wrote: > > > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > > wrote: > > > intel idle driver does not DTRT when running within a VM:

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-03 Thread Michael S. Tsirkin
On Mon, Oct 02, 2017 at 10:12:49AM -0700, Jacob Pan wrote: > On Sat, 30 Sep 2017 01:21:43 +0200 > "Rafael J. Wysocki" wrote: > > > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > > wrote: > > > intel idle driver does not DTRT when running within a VM: > > > when going into a deep power

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-03 Thread Thomas Gleixner
On Mon, 2 Oct 2017, Jacob Pan wrote: > On Sat, 30 Sep 2017 01:21:43 +0200 > "Rafael J. Wysocki" wrote: > > > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > > wrote: > > > intel idle driver does not DTRT when running within a VM: > > > when going into

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-03 Thread Thomas Gleixner
On Mon, 2 Oct 2017, Jacob Pan wrote: > On Sat, 30 Sep 2017 01:21:43 +0200 > "Rafael J. Wysocki" wrote: > > > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > > wrote: > > > intel idle driver does not DTRT when running within a VM: > > > when going into a deep power state, the right thing

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-02 Thread Jacob Pan
On Sat, 30 Sep 2017 01:21:43 +0200 "Rafael J. Wysocki" wrote: > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > wrote: > > intel idle driver does not DTRT when running within a VM: > > when going into a deep power state, the right thing to > > do is to

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-02 Thread Jacob Pan
On Sat, 30 Sep 2017 01:21:43 +0200 "Rafael J. Wysocki" wrote: > On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin > wrote: > > intel idle driver does not DTRT when running within a VM: > > when going into a deep power state, the right thing to > > do is to exit to hypervisor rather than to

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-09-29 Thread Rafael J. Wysocki
On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin wrote: > intel idle driver does not DTRT when running within a VM: > when going into a deep power state, the right thing to > do is to exit to hypervisor rather than to keep polling > within guest using mwait. > > Currently the

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-09-29 Thread Rafael J. Wysocki
On Sat, Sep 30, 2017 at 12:01 AM, Michael S. Tsirkin wrote: > intel idle driver does not DTRT when running within a VM: > when going into a deep power state, the right thing to > do is to exit to hypervisor rather than to keep polling > within guest using mwait. > > Currently the solution is just

[PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-09-29 Thread Michael S. Tsirkin
intel idle driver does not DTRT when running within a VM: when going into a deep power state, the right thing to do is to exit to hypervisor rather than to keep polling within guest using mwait. Currently the solution is just to exit to hypervisor each time we go idle - this is why kvm does not

[PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-09-29 Thread Michael S. Tsirkin
intel idle driver does not DTRT when running within a VM: when going into a deep power state, the right thing to do is to exit to hypervisor rather than to keep polling within guest using mwait. Currently the solution is just to exit to hypervisor each time we go idle - this is why kvm does not