]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: KVM: Implement ONE REG interface for FP registers
authorAtish Patra <atish.patra@wdc.com>
Mon, 27 Sep 2021 11:40:13 +0000 (17:10 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 4 Oct 2021 10:39:32 +0000 (16:09 +0530)
commit2202a70903ccbd52e8c480148240586771107f5a
treec8151e62d4615e32e8f5cec9759fb5db37ee1933
parent4c53754bd2607a7e389aa7c692b83a89169b546c
RISC-V: KVM: Implement ONE REG interface for FP registers

Add a KVM_GET_ONE_REG/KVM_SET_ONE_REG ioctl interface for floating
point registers such as F0-F31 and FCSR. This support is added for
both 'F' and 'D' extensions.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/uapi/asm/kvm.h
arch/riscv/kvm/vcpu.c