OSDN Git Service

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)
commit4d9c5c072f03770516cb343bb3ddd42b57cd21b8
treec8151e62d4615e32e8f5cec9759fb5db37ee1933
parent5de52d4a23ad3346c3cb24aae728ef6642d1a92e
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