diff options
| author | Joao Martins <joao.m.martins@oracle.com> | 2018-09-17 07:04:54 -0400 |
|---|---|---|
| committer | David Woodhouse <dwmw@amazon.co.uk> | 2023-03-01 09:07:52 +0000 |
| commit | b746a77926f6e84bdb35a38a9ee956ac12693757 (patch) | |
| tree | a6966ad8607bb5ff4c3a00ec45d6fa79b7f596db /hw/i386/kvm/xen_evtchn.h | |
| parent | b46f9745b1b5c8dd6ea1bd1361531f966c404f8c (diff) | |
| download | focaccia-qemu-b746a77926f6e84bdb35a38a9ee956ac12693757.tar.gz focaccia-qemu-b746a77926f6e84bdb35a38a9ee956ac12693757.zip | |
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>
Diffstat (limited to 'hw/i386/kvm/xen_evtchn.h')
| -rw-r--r-- | hw/i386/kvm/xen_evtchn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/i386/kvm/xen_evtchn.h b/hw/i386/kvm/xen_evtchn.h index b03c3108bc..24611478b8 100644 --- a/hw/i386/kvm/xen_evtchn.h +++ b/hw/i386/kvm/xen_evtchn.h @@ -20,6 +20,8 @@ int xen_evtchn_set_callback_param(uint64_t param); void xen_evtchn_connect_gsis(qemu_irq *system_gsis); void xen_evtchn_set_callback_level(int level); +int xen_evtchn_set_port(uint16_t port); + struct evtchn_status; struct evtchn_close; struct evtchn_unmask; |