i386/xen: handle PV timer hypercalls
authorJoao Martins <joao.m.martins@oracle.com>
Mon, 17 Sep 2018 11:04:54 +0000 (07:04 -0400)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 1 Mar 2023 09:07:52 +0000 (09:07 +0000)
commitb746a77926f6e84bdb35a38a9ee956ac12693757
treea6966ad8607bb5ff4c3a00ec45d6fa79b7f596db
parentb46f9745b1b5c8dd6ea1bd1361531f966c404f8c
i386/xen: handle PV timer hypercalls

Introduce support for one shot and periodic mode of Xen PV timers,
whereby timer interrupts come through a special virq event channel
with deadlines being set through:

1) set_timer_op hypercall (only oneshot)
2) vcpu_op hypercall for {set,stop}_{singleshot,periodic}_timer
hypercalls

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/i386/kvm/xen_evtchn.c
hw/i386/kvm/xen_evtchn.h
target/i386/cpu.h
target/i386/kvm/xen-emu.c
target/i386/machine.c