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 /target/i386/machine.c | |
parent | b46f9745b1b5c8dd6ea1bd1361531f966c404f8c (diff) | |
download | qemu-b746a77926f6e84bdb35a38a9ee956ac12693757.zip qemu-b746a77926f6e84bdb35a38a9ee956ac12693757.tar.gz qemu-b746a77926f6e84bdb35a38a9ee956ac12693757.tar.bz2 |
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 'target/i386/machine.c')
-rw-r--r-- | target/i386/machine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/machine.c b/target/i386/machine.c index 603a107..c7ac808 100644 --- a/target/i386/machine.c +++ b/target/i386/machine.c @@ -1277,6 +1277,7 @@ static const VMStateDescription vmstate_xen_vcpu = { VMSTATE_UINT8(env.xen_vcpu_callback_vector, X86CPU), VMSTATE_UINT16_ARRAY(env.xen_virq, X86CPU, XEN_NR_VIRQS), VMSTATE_UINT64(env.xen_singleshot_timer_ns, X86CPU), + VMSTATE_UINT64(env.xen_periodic_timer_period, X86CPU), VMSTATE_END_OF_LIST() } }; |