summaryrefslogtreecommitdiff
path: root/arch/riscv/kvm
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2021-02-15 10:43:39 +0530
committerAnup Patel <anup@brainfault.org>2022-03-11 19:02:34 +0530
commitc38ff47bf094dc776ad4b586e47c4a7077a94f28 (patch)
tree2ea0f3cd8a48115b34d6fce5ceb81e03b8de8cde /arch/riscv/kvm
parentbe78aa8a38c8dc5c9676612c36329441132bccab (diff)
downloadlinux-riscv-c38ff47bf094dc776ad4b586e47c4a7077a94f28.tar.gz
linux-riscv-c38ff47bf094dc776ad4b586e47c4a7077a94f28.tar.bz2
linux-riscv-c38ff47bf094dc776ad4b586e47c4a7077a94f28.zip
RISC-V: Add SBI HSM suspend related defines
We add defines related to SBI HSM suspend call and also update HSM states naming as-per the latest SBI specification. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/kvm')
-rw-r--r--arch/riscv/kvm/vcpu_sbi_hsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/kvm/vcpu_sbi_hsm.c b/arch/riscv/kvm/vcpu_sbi_hsm.c
index 2e383687fa48..1ac4b2e8e4ec 100644
--- a/arch/riscv/kvm/vcpu_sbi_hsm.c
+++ b/arch/riscv/kvm/vcpu_sbi_hsm.c
@@ -60,9 +60,9 @@ static int kvm_sbi_hsm_vcpu_get_status(struct kvm_vcpu *vcpu)
if (!target_vcpu)
return -EINVAL;
if (!target_vcpu->arch.power_off)
- return SBI_HSM_HART_STATUS_STARTED;
+ return SBI_HSM_STATE_STARTED;
else
- return SBI_HSM_HART_STATUS_STOPPED;
+ return SBI_HSM_STATE_STOPPED;
}
static int kvm_sbi_ext_hsm_handler(struct kvm_vcpu *vcpu, struct kvm_run *run,