commit | 124b3958e0237b013da86b89e506c1f86358c193 | [log] [tgz] |
---|---|---|
author | Marc Zyngier <marc.zyngier@arm.com> | Thu Jun 21 10:43:59 2018 +0100 |
committer | Marc Zyngier <marc.zyngier@arm.com> | Mon Jul 02 16:25:12 2018 +0100 |
tree | 4edaa265064fb6381c079cf6442225284573e064 | |
parent | 021c91791a5e7e85c567452f1be3e4c2c6cb6063 [diff] |
KVM: arm/arm64: Enable adaptative WFE trapping Trapping blocking WFE is extremely beneficial in situations where the system is oversubscribed, as it allows another thread to run while being blocked. In a non-oversubscribed environment, this is the complete opposite, and trapping WFE is just unnecessary overhead. Let's only enable WFE trapping if the CPU has more than a single task to run (that is, more than just the vcpu thread). Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>