diff options
Diffstat (limited to 'arch/powerpc/include/uapi/asm/kvm.h')
-rw-r--r-- | arch/powerpc/include/uapi/asm/kvm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/uapi/asm/kvm.h b/arch/powerpc/include/uapi/asm/kvm.h index e0e49dbb145d..ab4d4732c492 100644 --- a/arch/powerpc/include/uapi/asm/kvm.h +++ b/arch/powerpc/include/uapi/asm/kvm.h | |||
@@ -476,6 +476,11 @@ struct kvm_get_htab_header { | |||
476 | 476 | ||
477 | /* FP and vector status/control registers */ | 477 | /* FP and vector status/control registers */ |
478 | #define KVM_REG_PPC_FPSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x80) | 478 | #define KVM_REG_PPC_FPSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x80) |
479 | /* | ||
480 | * VSCR register is documented as a 32-bit register in the ISA, but it can | ||
481 | * only be accesses via a vector register. Expose VSCR as a 32-bit register | ||
482 | * even though the kernel represents it as a 128-bit vector. | ||
483 | */ | ||
479 | #define KVM_REG_PPC_VSCR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x81) | 484 | #define KVM_REG_PPC_VSCR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0x81) |
480 | 485 | ||
481 | /* Virtual processor areas */ | 486 | /* Virtual processor areas */ |
@@ -557,6 +562,7 @@ struct kvm_get_htab_header { | |||
557 | #define KVM_REG_PPC_DABRX (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xb8) | 562 | #define KVM_REG_PPC_DABRX (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xb8) |
558 | #define KVM_REG_PPC_WORT (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb9) | 563 | #define KVM_REG_PPC_WORT (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xb9) |
559 | #define KVM_REG_PPC_SPRG9 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xba) | 564 | #define KVM_REG_PPC_SPRG9 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xba) |
565 | #define KVM_REG_PPC_DBSR (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xbb) | ||
560 | 566 | ||
561 | /* Transactional Memory checkpointed state: | 567 | /* Transactional Memory checkpointed state: |
562 | * This is all GPRs, all VSX regs and a subset of SPRs | 568 | * This is all GPRs, all VSX regs and a subset of SPRs |