Commit 24f83d9a authored by Suleiman Souhlal's avatar Suleiman Souhlal Committed by Tomasz Nowicki
Browse files

CHROMIUM: KVM: x86: Include host suspended time in steal time.

When the host resumes from a suspend, the guest thinks any task
that was running during the suspend ran for a long time, even though
the effective run time was much shorter, which can end up having
negative effects with scheduling. This can be particularly noticeable
if the guest task was RT, as it can end up getting throttled for a
long time.

To mitigate this issue, we include the time that the host was
suspended in steal time, which lets the guest can subtract the
duration from the tasks' runtime.

(based on https://lore.kernel.org/kvm/20240710074410.770409-1-suleiman@google.com/t/

)

BUG=b:340428186
TEST=Built.

Change-Id: Id2cfd69071c875efa6489d26f0c0ec055c325315
Signed-off-by: default avatarSuleiman Souhlal <suleiman@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/5745975


Reviewed-by: default avatarVineeth Pillai <vineethrp@google.com>
Signed-off-by: default avatarHubert Mazur <hmazur@google.com>
parent 6b46e72b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment