• Christian Borntraeger's avatar
    KVM: shrink halt polling even more for invalid wakeups · 2086d320
    Christian Borntraeger authored
    commit 3491caf2 ("KVM: halt_polling: provide a way to qualify
     wakeups during poll") added more aggressive shrinking of the
    polling interval if the wakeup did not match some criteria. This
    still allows to keep polling enabled if the polling time was
    smaller that the current max poll time (block_ns <= vcpu->halt_poll_ns).
    Performance measurement shows that even more aggressive shrinking
    (shrink polling on any invalid wakeup) reduces absolute and relative
    (to the workload) CPU usage even further.
    
    Cc: David Matlack <dmatlack@google.com>
    Cc: Wanpeng Li <kernellwp@gmail.com>
    Cc: Radim Krčmář <rkrcmar@redhat.com>
    CC: Paolo Bonzini <pbonzini@redhat.com>
    CC: Cornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    2086d320
kvm_main.c 84.7 KB