Skip to content

Commit 2e7e5eb

Browse files
committed
Merge branch kvm-arm64/writable-id-regs into kvmarm/next
* kvm-arm64/writable-id-regs: : Writable ID registers, courtesy of Jing Zhang : : This series significantly expands the architectural feature set that : userspace can manipulate via the ID registers. A new ioctl is defined : that makes the mutable fields in the ID registers discoverable to : userspace. KVM: arm64: selftests: Test for setting ID register from usersapce tools headers arm64: Update sysreg.h with kernel sources KVM: selftests: Generate sysreg-defs.h and add to include path perf build: Generate arm64's sysreg-defs.h and add to include path tools: arm64: Add a Makefile for generating sysreg-defs.h Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
2 parents cad9fde + 54a9ea7 commit 2e7e5eb

12 files changed

Lines changed: 787 additions & 667 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
generated/
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
#ifndef __ASM_GPR_NUM_H
3+
#define __ASM_GPR_NUM_H
4+
5+
#ifdef __ASSEMBLY__
6+
7+
.irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30
8+
.equ .L__gpr_num_x\num, \num
9+
.equ .L__gpr_num_w\num, \num
10+
.endr
11+
.equ .L__gpr_num_xzr, 31
12+
.equ .L__gpr_num_wzr, 31
13+
14+
#else /* __ASSEMBLY__ */
15+
16+
#define __DEFINE_ASM_GPR_NUMS \
17+
" .irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n" \
18+
" .equ .L__gpr_num_x\\num, \\num\n" \
19+
" .equ .L__gpr_num_w\\num, \\num\n" \
20+
" .endr\n" \
21+
" .equ .L__gpr_num_xzr, 31\n" \
22+
" .equ .L__gpr_num_wzr, 31\n"
23+
24+
#endif /* __ASSEMBLY__ */
25+
26+
#endif /* __ASM_GPR_NUM_H */

0 commit comments

Comments
 (0)