Skip to content

Commit

Permalink
KVM: RISC-V: Add KVM_REG_RISCV for ONE_REG interface
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: Alexander Graf <[email protected]>
Signed-off-by: Paul Walmsley <[email protected]>
  • Loading branch information
avpatel authored and paul-walmsley-sifive committed Sep 20, 2019
1 parent b47613d commit dee04ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/uapi/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@ struct kvm_dirty_tlb {
#define KVM_REG_S390 0x5000000000000000ULL
#define KVM_REG_ARM64 0x6000000000000000ULL
#define KVM_REG_MIPS 0x7000000000000000ULL
#define KVM_REG_RISCV 0x8000000000000000ULL

#define KVM_REG_SIZE_SHIFT 52
#define KVM_REG_SIZE_MASK 0x00f0000000000000ULL
Expand Down

0 comments on commit dee04ee

Please sign in to comment.