• P
    Correct alarm deadline computation · 6ad0a1ed
    Paolo Bonzini 提交于
    When the QEMU_CLOCK_HOST clock was added, computation of its
    deadline was added to qemu_next_deadline, which is correct but
    incomplete.
    
    I noticed this by reading the very convoluted rules whereby
    qemu_next_deadline_dyntick is computed, which miss QEMU_CLOCK_HOST
    when use_icount is true.  This patch inlines qemu_next_deadline
    into qemu_next_deadline_dyntick, and then corrects the logic to skip
    only QEMU_CLOCK_VIRTUAL when use_icount is true.
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    Cc: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
    6ad0a1ed
qemu-timer.c 28.4 KB