diff options
| author | Christoffer Dall <c.dall@virtualopensystems.com> | 2013-01-20 18:28:06 -0500 |
|---|---|---|
| committer | Christoffer Dall <c.dall@virtualopensystems.com> | 2013-01-23 13:29:10 -0500 |
| commit | 749cf76c5a363e1383108a914ea09530bfa0bd43 (patch) | |
| tree | a1bd85e41d1a8e6eb13529681431c3aea641d202 /include/uapi/linux | |
| parent | 9e9a367c29cebd25a356d53414612e115efdadcf (diff) | |
KVM: ARM: Initial skeleton to compile KVM support
Targets KVM support for Cortex A-15 processors.
Contains all the framework components, make files, header files, some
tracing functionality, and basic user space API.
Only supported core is Cortex-A15 for now.
Most functionality is in arch/arm/kvm/* or arch/arm/include/asm/kvm_*.h.
Reviewed-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/kvm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index e6e5d4b13708..24978d525c6e 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
| @@ -764,6 +764,11 @@ struct kvm_dirty_tlb { | |||
| 764 | #define KVM_REG_SIZE_U512 0x0060000000000000ULL | 764 | #define KVM_REG_SIZE_U512 0x0060000000000000ULL |
| 765 | #define KVM_REG_SIZE_U1024 0x0070000000000000ULL | 765 | #define KVM_REG_SIZE_U1024 0x0070000000000000ULL |
| 766 | 766 | ||
| 767 | struct kvm_reg_list { | ||
| 768 | __u64 n; /* number of regs */ | ||
| 769 | __u64 reg[0]; | ||
| 770 | }; | ||
| 771 | |||
| 767 | struct kvm_one_reg { | 772 | struct kvm_one_reg { |
| 768 | __u64 id; | 773 | __u64 id; |
| 769 | __u64 addr; | 774 | __u64 addr; |
| @@ -932,6 +937,8 @@ struct kvm_s390_ucas_mapping { | |||
| 932 | #define KVM_SET_ONE_REG _IOW(KVMIO, 0xac, struct kvm_one_reg) | 937 | #define KVM_SET_ONE_REG _IOW(KVMIO, 0xac, struct kvm_one_reg) |
| 933 | /* VM is being stopped by host */ | 938 | /* VM is being stopped by host */ |
| 934 | #define KVM_KVMCLOCK_CTRL _IO(KVMIO, 0xad) | 939 | #define KVM_KVMCLOCK_CTRL _IO(KVMIO, 0xad) |
| 940 | #define KVM_ARM_VCPU_INIT _IOW(KVMIO, 0xae, struct kvm_vcpu_init) | ||
| 941 | #define KVM_GET_REG_LIST _IOWR(KVMIO, 0xb0, struct kvm_reg_list) | ||
| 935 | 942 | ||
| 936 | #define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) | 943 | #define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) |
| 937 | #define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1) | 944 | #define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1) |
