docs: kvm: riscv: document EBUSY in KVM_SET_ONE_REG
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Thu, 3 Aug 2023 16:33:02 +0000 (13:33 -0300)
committerAnup Patel <anup@brainfault.org>
Tue, 8 Aug 2023 11:56:03 +0000 (17:26 +0530)
The EBUSY errno is being used for KVM_SET_ONE_REG as a way to tell
userspace that a given reg can't be changed after the vcpu started.

Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Documentation/virt/kvm/api.rst

index c0ddd3035462bd8ad99bb4147381b79399cff807..3249fb56cc69688d8040d80bd14ee66a8aa80959 100644 (file)
@@ -2259,6 +2259,8 @@ Errors:
   EINVAL   invalid register ID, or no such register or used with VMs in
            protected virtualization mode on s390
   EPERM    (arm64) register access not allowed before vcpu finalization
+  EBUSY    (riscv) changing register value not allowed after the vcpu
+           has run at least once
   ======   ============================================================
 
 (These error codes are indicative only: do not rely on a specific error