Anup Patel
cea8896bd9
RISC-V: KVM: Fix kvm_riscv_vcpu_timer_pending() for Sstc
...
The kvm_riscv_vcpu_timer_pending() checks per-VCPU next_cycles
and per-VCPU software injected VS timer interrupt. This function
returns incorrect value when Sstc is available because the per-VCPU
next_cycles are only updated by kvm_riscv_vcpu_timer_save() called
from kvm_arch_vcpu_put(). As a result, when Sstc is available the
VCPU does not block properly upon WFI traps.
To fix the above issue, we introduce kvm_riscv_vcpu_timer_sync()
which will update per-VCPU next_cycles upon every VM exit instead
of kvm_riscv_vcpu_timer_save().
Fixes: 8f5cb44b1b ("RISC-V: KVM: Support sstc extension")
Signed-off-by: Anup Patel <apatel@ventanamicro.com >
Reviewed-by: Atish Patra <atishp@rivosinc.com >
Signed-off-by: Anup Patel <anup@brainfault.org >
2022-10-21 11:52:45 +05:30
..
2022-08-11 08:03:49 -07:00
2022-06-02 15:55:22 -07:00
2022-05-11 21:36:33 -07:00
2022-01-05 17:53:29 -08:00
2021-07-06 12:11:38 -07:00
2022-07-21 17:17:29 -07:00
2022-05-21 10:31:47 -07:00
2022-07-21 17:17:29 -07:00
2022-01-15 08:47:31 -08:00
2022-05-19 23:46:10 +02:00
2022-07-28 15:30:51 -07:00
2022-10-21 11:52:39 +05:30
2020-09-15 18:46:08 -07:00
2020-09-19 13:21:11 -07:00
2020-06-10 19:47:16 -07:00
2022-05-21 10:31:45 -07:00
2022-04-26 13:36:12 -07:00
2022-08-11 13:46:51 -07:00
2022-08-11 13:06:47 -07:00
2022-03-10 09:29:21 -08:00
2022-08-11 14:41:52 -07:00
2022-03-30 15:15:27 -07:00
2019-06-05 17:36:37 +02:00
2022-06-28 20:13:09 +02:00
2022-10-13 11:06:56 -07:00
2022-08-10 20:49:32 -07:00
2022-01-05 17:52:54 -08:00
2022-05-11 21:36:33 -07:00
2021-04-26 08:25:01 -07:00
2022-01-05 17:53:29 -08:00
2020-07-09 20:12:28 -07:00
2022-10-02 10:17:58 +05:30
2020-06-03 20:09:46 -07:00
2022-10-02 10:18:31 +05:30
2019-12-19 09:32:45 -07:00
2022-10-02 10:18:37 +05:30
2022-10-13 14:27:00 -07:00
2022-06-01 21:46:31 -07:00
2021-03-09 20:46:00 -08:00
2019-11-05 09:20:42 -08:00
2020-07-30 11:37:43 -07:00
2022-01-19 17:54:09 -08:00
2022-05-11 11:50:10 -07:00
2020-05-18 11:38:10 -07:00
2022-05-30 16:04:37 -07:00
2021-06-30 20:55:41 -07:00
2020-07-09 20:12:28 -07:00
2021-09-30 21:24:06 -04:00
2022-10-02 10:19:16 +05:30
2022-01-06 14:38:50 +05:30
2022-07-29 17:14:11 +05:30
2022-07-29 17:14:53 +05:30
2022-10-02 10:18:25 +05:30
2022-10-21 11:52:45 +05:30
2019-06-05 17:36:37 +02:00
2020-07-30 11:37:46 -07:00
2020-05-13 17:11:46 -07:00
2021-06-30 20:55:39 -07:00
2022-10-13 11:16:52 -07:00
2021-01-14 15:08:58 -08:00
2020-04-23 10:50:26 +09:00
2022-03-29 14:31:07 -07:00
2021-01-14 15:08:58 -08:00
2022-06-28 13:20:21 +02:00
2020-05-18 11:38:12 -07:00
2020-05-18 11:38:13 -07:00
2022-08-06 15:04:48 -07:00
2022-03-21 14:58:12 -07:00
2022-02-14 16:32:39 -08:00
2022-05-11 21:36:33 -07:00
2022-07-11 09:33:35 +05:30
2022-05-11 21:36:33 -07:00
2022-08-05 16:32:45 -07:00
2021-01-14 15:09:06 -08:00
2022-09-11 21:55:07 -07:00
2020-06-03 20:09:50 -07:00
2021-07-05 20:53:09 -07:00
2022-08-11 14:58:32 -07:00
2020-11-20 11:16:35 -08:00
2021-06-30 21:18:58 -07:00
2021-06-30 21:18:58 -07:00
2022-05-17 16:37:21 -07:00
2022-08-18 14:42:52 -07:00
2022-07-19 16:39:09 -07:00
2021-01-07 19:00:50 -08:00
2022-01-19 17:54:07 -08:00
2021-01-14 15:09:10 -08:00
2021-01-14 15:09:11 -08:00
2021-03-09 18:18:31 -08:00
2022-03-10 09:29:31 -08:00
2022-06-16 10:51:31 -07:00
2022-04-26 13:36:25 -07:00
2022-08-18 14:42:58 -07:00
2022-05-13 23:59:23 +02:00
2019-06-05 17:36:37 +02:00
2021-06-08 17:05:03 -07:00
2022-02-25 09:36:05 +01:00
2022-06-01 21:46:36 -07:00
2021-01-14 15:09:08 -08:00
2022-04-26 13:36:53 -07:00
2022-05-11 21:36:33 -07:00
2020-04-23 10:50:26 +09:00
2019-12-10 10:12:55 +01:00
2019-06-05 17:36:37 +02:00
2022-05-25 14:43:33 -07:00