[PATCH v2 3/3] KVM: vmx: handle vm-exit for UMWAIT and TPAUSE

2019-05-24 Thread Tao Xu
As the latest Intel 64 and IA-32 Architectures Software Developer's Manual, UMWAIT and TPAUSE instructions cause a VM exit if the “RDTSC exiting” and “enable user wait and pause” VM-execution controls are both 1. This patch is to handle the vm-exit for UMWAIT and TPAUSE as invalid_op. Co-develope

[PATCH v2 0/3] KVM: x86: Enable user wait instructions

2019-05-24 Thread Tao Xu
UMONITOR, UMWAIT and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to ente

[PATCH v2 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL

2019-05-24 Thread Tao Xu
UMWAIT and TPAUSE instructions use IA32_UMWAIT_CONTROL at MSR index E1H to determines the maximum time in TSC-quanta that the processor can reside in either C0.1 or C0.2. This patch is to emulate MSR IA32_UMWAIT_CONTROL in guest and differentiate MSR_TEST_CTL between host and guest. Co-developed-

[PATCH v2 1/3] KVM: x86: add support for user wait instructions

2019-05-24 Thread Tao Xu
This patch adds support for UMONITOR, UMWAIT and TPAUSE instructions in kvm, and by default dont't expose it to kvm and provide a capability to enable it. Co-developed-by: Jingqi Liu Signed-off-by: Jingqi Liu Signed-off-by: Tao Xu --- Documentation/virtual/kvm/api.txt | 12 arch/x

Re: [PATCH v2 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-05-24 Thread Peter Zijlstra
(it always helps to Cc the people who actually wrote the code) Ben, can you have a look at this? On Thu, May 23, 2019 at 01:44:47PM -0500, Dave Chiluk wrote: > It has been observed, that highly-threaded, non-cpu-bound applications > running under cpu.cfs_quota_us constraints can hit a high perc

Re: [PATCH] Documentation: gpio: remove duplicated lines

2019-05-24 Thread Linus Walleij
On Fri, May 10, 2019 at 11:03 AM Luca Ceresoli wrote: > The 'default (active high)' lines are repeated twice. Avoid people stare at > their screens looking for differences. > > Signed-off-by: Luca Ceresoli Patch applied with Bartosz's ACK. Yours, Linus Walleij

Re: [PATCH v2 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-05-24 Thread Phil Auld
On Thu, May 23, 2019 at 02:01:58PM -0700 Peter Oskolkov wrote: > On Thu, May 23, 2019 at 11:44 AM Dave Chiluk wrote: > > > > It has been observed, that highly-threaded, non-cpu-bound applications > > running under cpu.cfs_quota_us constraints can hit a high percentage of > > periods throttled whil

Re: [PATCH v2 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-05-24 Thread Dave Chiluk
On Fri, May 24, 2019 at 9:32 AM Phil Auld wrote: > On Thu, May 23, 2019 at 02:01:58PM -0700 Peter Oskolkov wrote: > > If the machine runs at/close to capacity, won't the overallocation > > of the quota to bursty tasks necessarily negatively impact every other > > task? Should the "unused" quota b

Re: [PATCH v2 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-05-24 Thread Phil Auld
On Fri, May 24, 2019 at 10:14:36AM -0500 Dave Chiluk wrote: > On Fri, May 24, 2019 at 9:32 AM Phil Auld wrote: > > On Thu, May 23, 2019 at 02:01:58PM -0700 Peter Oskolkov wrote: > > > > If the machine runs at/close to capacity, won't the overallocation > > > of the quota to bursty tasks necessari

Re: [PATCH v2 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-05-24 Thread Peter Oskolkov
On Fri, May 24, 2019 at 8:15 AM Dave Chiluk wrote: > > On Fri, May 24, 2019 at 9:32 AM Phil Auld wrote: > > On Thu, May 23, 2019 at 02:01:58PM -0700 Peter Oskolkov wrote: > > > > If the machine runs at/close to capacity, won't the overallocation > > > of the quota to bursty tasks necessarily nega

Re: [PATCH v12 03/13] dt-bindings: Add doc for the Ingenic TCU drivers

2019-05-24 Thread Rob Herring
On Tue, May 21, 2019 at 04:51:31PM +0200, Paul Cercueil wrote: > Add documentation about how to properly use the Ingenic TCU > (Timer/Counter Unit) drivers from devicetree. > > Signed-off-by: Paul Cercueil > --- > > Notes: > v4: New patch in this series. Corresponds to V2 patches 3-4-5 with

Re: [PATCH v2 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-05-24 Thread Dave Chiluk
On Fri, May 24, 2019 at 11:28 AM Peter Oskolkov wrote: > > On Fri, May 24, 2019 at 8:15 AM Dave Chiluk wrote: > > > > On Fri, May 24, 2019 at 9:32 AM Phil Auld wrote: > > > On Thu, May 23, 2019 at 02:01:58PM -0700 Peter Oskolkov wrote: > > > > > > If the machine runs at/close to capacity, won't

Re: [PATCH v2 1/1] sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

2019-05-24 Thread Peter Oskolkov
On Fri, May 24, 2019 at 2:35 PM Dave Chiluk wrote: > > On Fri, May 24, 2019 at 11:28 AM Peter Oskolkov wrote: > > > > On Fri, May 24, 2019 at 8:15 AM Dave Chiluk wrote: > > > > > > On Fri, May 24, 2019 at 9:32 AM Phil Auld wrote: > > > > On Thu, May 23, 2019 at 02:01:58PM -0700 Peter Oskolkov w

[PATCH RFC 4/5] rculist: Remove hlist_for_each_entry_rcu_notrace since no users

2019-05-24 Thread Joel Fernandes (Google)
The series removes all users of the API and with this patch, the API itself. Signed-off-by: Joel Fernandes (Google) --- .clang-format | 1 - include/linux/rculist.h | 20 2 files changed, 21 deletions(-) diff --git a/.clang-format b/.clang-format index 2ffd69afc1

[PATCH RFC 1/5] powerpc: Use regular rcu_dereference_raw API

2019-05-24 Thread Joel Fernandes (Google)
rcu_dereference_raw already does not do any tracing. There is no need to use the _notrace variant of it and this series removes that API, so let us use the regular variant here. Signed-off-by: Joel Fernandes (Google) --- arch/powerpc/include/asm/kvm_book3s_64.h | 2 +- 1 file changed, 1 insertio

[PATCH RFC 0/5] Remove some notrace RCU APIs

2019-05-24 Thread Joel Fernandes (Google)
The series removes users of the following APIs, and the APIs themselves, since the regular non - _notrace variants don't do any tracing anyway. * hlist_for_each_entry_rcu_notrace * rcu_dereference_raw_notrace Joel Fernandes (Google) (5): powerpc: Use regular rcu_dereference_raw API trace: Use re

[PATCH RFC 5/5] rcu: Remove rcu_dereference_raw_notrace since no users

2019-05-24 Thread Joel Fernandes (Google)
The series removes all users of the API and with this patch, the API itself. Also fix documentation. Signed-off-by: Joel Fernandes (Google) --- Documentation/RCU/Design/Requirements/Requirements.html | 6 +++--- include/linux/rcupdate.h| 9 - 2 files chang

[PATCH RFC 3/5] hashtable: Use the regular hlist_for_each_entry_rcu API

2019-05-24 Thread Joel Fernandes (Google)
hlist_for_each_entry_rcu already does not do any tracing. This series removes the notrace variant of it, so let us just use the regular API. In a future patch, we can also remove the hash_for_each_possible_rcu_notrace API that this patch touches. Signed-off-by: Joel Fernandes (Google) --- inclu

[PATCH RFC 2/5] trace: Use regular rcu_dereference_raw API

2019-05-24 Thread Joel Fernandes (Google)
rcu_dereference_raw already does not do any tracing. There is no need to use the _notrace variant of it and this series removes that API, so let us use the regular variant here. While at it, also replace the only user of hlist_for_each_entry_rcu_notrace (which indirectly uses the rcu_dereference_r

Re: [PATCH RFC 0/5] Remove some notrace RCU APIs

2019-05-24 Thread Steven Rostedt
On Fri, 24 May 2019 19:49:28 -0400 "Joel Fernandes (Google)" wrote: > The series removes users of the following APIs, and the APIs themselves, since > the regular non - _notrace variants don't do any tracing anyway. > * hlist_for_each_entry_rcu_notrace > * rcu_dereference_raw_notrace > I gues