diff options
author | Sean Christopherson <seanjc@google.com> | 2021-10-09 04:12:09 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-12-08 10:24:52 +0100 |
commit | 109a98260b533722d1190dcfa18447dd39fee5ff (patch) | |
tree | dc9abf706ab963d37bc436c2401670dd4842de41 /COPYING | |
parent | KVM: stats: Add stat to detect if vcpu is currently blocking (diff) | |
download | linux-109a98260b533722d1190dcfa18447dd39fee5ff.tar.xz linux-109a98260b533722d1190dcfa18447dd39fee5ff.zip |
KVM: Don't redo ktime_get() when calculating halt-polling stop/deadline
Calculate the halt-polling "stop" time using "start" instead of redoing
ktime_get(). In practice, the numbers involved are in the noise (e.g.,
in the happy case where hardware correctly predicts do_halt_poll and
there are no interrupts, "start" is probably only a few cycles old)
and either approach is perfectly ok. But it's more precise to count
any extra latency toward the halt-polling time.
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211009021236.4122790-17-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions