diff options
| author | Benjamin Segall <bsegall@google.com> | 2021-04-29 19:22:34 +0300 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-05-03 18:25:36 +0300 |
| commit | 262de4102c7bb8e59f26a967a8ffe8cce85cc537 (patch) | |
| tree | 5edd83d866953237b4971e9c1ab9e60d7bc416e9 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | d981dd15498b188636ec5a7d8ad485e650f63d8d (diff) | |
| download | linux-262de4102c7bb8e59f26a967a8ffe8cce85cc537.tar.xz | |
kvm: exit halt polling on need_resched() as well
single_task_running() is usually more general than need_resched()
but CFS_BANDWIDTH throttling will use resched_task() when there
is just one task to get the task to block. This was causing
long-need_resched warnings and was likely allowing VMs to
overrun their quota when halt polling.
Signed-off-by: Ben Segall <bsegall@google.com>
Signed-off-by: Venkatesh Srinivas <venkateshs@chromium.org>
Message-Id: <20210429162233.116849-1-venkateshs@chromium.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Jim Mattson <jmattson@google.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
