]> www.infradead.org Git - users/dwmw2/linux.git/commit
RISC-V: KVM: Implement SBI STA extension
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 20 Dec 2023 16:00:22 +0000 (17:00 +0100)
committerAnup Patel <anup@brainfault.org>
Sat, 30 Dec 2023 05:56:38 +0000 (11:26 +0530)
commite9f12b5fff8ad0eefd0340273767d329ef65fd69
treec15f725133659699d351f06b7fdbb9760a9c2165
parentf61ce890b1f0742f17b3a5d1f8c72574a33ffeb2
RISC-V: KVM: Implement SBI STA extension

Add a select SCHED_INFO to the KVM config in order to get run_delay
info. Then implement SBI STA's set-steal-time-shmem function and
kvm_riscv_vcpu_record_steal_time() to provide the steal-time info
to guests.

Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/Kconfig
arch/riscv/kvm/vcpu_sbi_sta.c