RISC-V: KVM: Add steal-update vcpu request
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 20 Dec 2023 16:00:18 +0000 (17:00 +0100)
committerAnup Patel <anup@brainfault.org>
Sat, 30 Dec 2023 05:56:22 +0000 (11:26 +0530)
commit2a1f6bf079700f0f9d8045ab77b302aeb4d12c06
tree72fd530c895a6571383541f3347933a7d40c37ca
parent5fed84a800e6048656c17be6e921787db2b5c6c0
RISC-V: KVM: Add steal-update vcpu request

Add a new vcpu request to inform a vcpu that it should record its
steal-time information. The request is made each time it has been
detected that the vcpu task was not assigned a cpu for some time,
which is easy to do by making the request from vcpu-load. The record
function is just a stub for now and will be filled in with the rest
of the steal-time support functions in following patches.

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/include/asm/kvm_host.h
arch/riscv/kvm/vcpu.c
arch/riscv/kvm/vcpu_sbi_sta.c