mirror_ubuntu-kernels/arch/riscv/kvm
Atish Patra 3a9f66cb25 RISC-V: KVM: Add timer functionality
The RISC-V hypervisor specification doesn't have any virtual timer
feature.

Due to this, the guest VCPU timer will be programmed via SBI calls.
The host will use a separate hrtimer event for each guest VCPU to
provide timer functionality. We inject a virtual timer interrupt to
the guest VCPU whenever the guest VCPU hrtimer event expires.

This patch adds guest VCPU timer implementation along with ONE_REG
interface to access VCPU timer state from user space.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-10-04 16:07:16 +05:30
..
Kconfig RISC-V: KVM: Implement MMU notifiers 2021-10-04 16:03:39 +05:30
main.c RISC-V: KVM: Implement stage2 page table programming 2021-10-04 16:02:19 +05:30
Makefile RISC-V: KVM: Add timer functionality 2021-10-04 16:07:16 +05:30
mmu.c RISC-V: KVM: Implement MMU notifiers 2021-10-04 16:03:39 +05:30
tlb.S RISC-V: KVM: Implement VMID allocator 2021-10-04 16:01:04 +05:30
vcpu_exit.c RISC-V: KVM: Handle WFI exits for VCPU 2021-10-04 15:55:01 +05:30
vcpu_switch.S RISC-V: KVM: Handle MMIO exits for VCPU 2021-10-04 15:51:47 +05:30
vcpu_timer.c RISC-V: KVM: Add timer functionality 2021-10-04 16:07:16 +05:30
vcpu.c RISC-V: KVM: Add timer functionality 2021-10-04 16:07:16 +05:30
vm.c RISC-V: KVM: Add timer functionality 2021-10-04 16:07:16 +05:30
vmid.c RISC-V: KVM: Implement VMID allocator 2021-10-04 16:01:04 +05:30