linux/arch/arm64/include/uapi/asm
Christoffer Dall 99a1db7a2c KVM: arm/arm64: Allow setting the timer IRQ numbers from userspace
First we define an ABI using the vcpu devices that lets userspace set
the interrupt numbers for the various timers on both the 32-bit and
64-bit KVM/ARM implementations.

Second, we add the definitions for the groups and attributes introduced
by the above ABI.  (We add the PMU define on the 32-bit side as well for
symmetry and it may get used some day.)

Third, we set up the arch-specific vcpu device operation handlers to
call into the timer code for anything related to the
KVM_ARM_VCPU_TIMER_CTRL group.

Fourth, we implement support for getting and setting the timer interrupt
numbers using the above defined ABI in the arch timer code.

Fifth, we introduce error checking upon enabling the arch timer (which
is called when first running a VCPU) to check that all VCPUs are
configured to use the same PPI for the timer (as mandated by the
architecture) and that the virtual and physical timers are not
configured to use the same IRQ number.

Signed-off-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
2017-06-08 16:59:57 +02:00
..
auxvec.h arm64: Define AT_VECTOR_SIZE_ARCH for ARCH_DLINFO 2016-07-29 10:45:58 +01:00
bitsperlong.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
byteorder.h arm64: big-endian: fix byteorder include 2013-10-25 15:59:32 +01:00
fcntl.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
hwcap.h arm64: v8.3: Support for weaker release consistency 2017-03-20 16:30:22 +00:00
Kbuild uapi: export all headers under uapi directories 2017-05-11 00:21:54 +09:00
kvm.h KVM: arm/arm64: Allow setting the timer IRQ numbers from userspace 2017-06-08 16:59:57 +02:00
param.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
perf_regs.h ARM64: perf: add support for perf registers API 2014-03-13 11:22:37 +00:00
posix_types.h arm64: uid16: fix __kernel_old_{gid,uid}_t definitions 2014-06-18 12:41:09 +01:00
ptrace.h arm64/ptrace: Avoid uninitialised struct padding in fpr_set() 2017-01-18 18:05:10 +00:00
setup.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
sigcontext.h arm64: fix build error in sigcontext.h 2014-06-18 12:41:56 +01:00
siginfo.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
signal.h arm64: Fix MINSIGSTKSZ and SIGSTKSZ 2015-10-12 17:40:12 +01:00
stat.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
statfs.h UAPI: (Scripted) Disintegrate arch/arm64/include/asm 2012-10-11 11:05:13 +01:00
ucontext.h arm64: uapi: expose our struct ucontext to the uapi headers 2015-01-23 18:07:49 +00:00
unistd.h asm-generic: Drop renameat syscall from default list 2016-05-05 00:42:21 +02:00