Skip to content

Commit dee04ee

Browse files
avpatelpaul-walmsley-sifive
authored andcommitted
KVM: RISC-V: Add KVM_REG_RISCV for ONE_REG interface
We will be using ONE_REG interface accessing VCPU registers from user-space hence we add KVM_REG_RISCV for RISC-V VCPU registers. 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> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
1 parent b47613d commit dee04ee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/uapi/linux/kvm.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,7 @@ struct kvm_dirty_tlb {
11451145
#define KVM_REG_S390 0x5000000000000000ULL
11461146
#define KVM_REG_ARM64 0x6000000000000000ULL
11471147
#define KVM_REG_MIPS 0x7000000000000000ULL
1148+
#define KVM_REG_RISCV 0x8000000000000000ULL
11481149

11491150
#define KVM_REG_SIZE_SHIFT 52
11501151
#define KVM_REG_SIZE_MASK 0x00f0000000000000ULL

0 commit comments

Comments
 (0)