]> Git Repo - linux.git/commit
KVM: x86/xen: handle PV timers oneshot mode
authorJoao Martins <[email protected]>
Thu, 3 Mar 2022 15:41:22 +0000 (15:41 +0000)
committerPaolo Bonzini <[email protected]>
Sat, 2 Apr 2022 09:41:16 +0000 (05:41 -0400)
commit536395260582be7443b0b35b0bbb89ffe3947f62
treea279baa81d433c68a638fbdceae34120b4133258
parent942c2490c23f2800ad8143f5eb84a79b859aa743
KVM: x86/xen: handle PV timers oneshot mode

If the guest has offloaded the timer virq, handle the following
hypercalls for programming the timer:

    VCPUOP_set_singleshot_timer
    VCPUOP_stop_singleshot_timer
    set_timer_op(timestamp_ns)

The event channel corresponding to the timer virq is then used to inject
events once timer deadlines are met. For now we back the PV timer with
hrtimer.

[ dwmw2: Add save/restore, 32-bit compat mode, immediate delivery,
         don't check timer in kvm_vcpu_has_event() ]

Signed-off-by: Joao Martins <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-Id: <20220303154127[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/irq.c
arch/x86/kvm/xen.c
arch/x86/kvm/xen.h
include/uapi/linux/kvm.h
This page took 0.042761 seconds and 4 git commands to generate.