Skip to content

Commit 5981ec3

Browse files
committed
tools headers kvm: Sync ARM UAPI headers with the kernel sources
To sync with the changes made in 85bd0ba ("arm/arm64: KVM: Add PSCI version selection API"), that do not cause any changes in the tools, just to silence the build warning: Warning: Kernel ABI header at 'tools/arch/arm/include/uapi/asm/kvm.h' differs from latest version at 'arch/arm/include/uapi/asm/kvm.h' Warning: Kernel ABI header at 'tools/arch/arm64/include/uapi/asm/kvm.h' differs from latest version at 'arch/arm64/include/uapi/asm/kvm.h' Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent d0e9f4c commit 5981ec3

File tree

2 files changed

+12
-0
lines changed
  • tools/arch
    • arm64/include/uapi/asm
    • arm/include/uapi/asm

2 files changed

+12
-0
lines changed

tools/arch/arm/include/uapi/asm/kvm.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ struct kvm_arch_memory_slot {
195195
#define KVM_REG_ARM_VFP_FPINST 0x1009
196196
#define KVM_REG_ARM_VFP_FPINST2 0x100A
197197

198+
/* KVM-as-firmware specific pseudo-registers */
199+
#define KVM_REG_ARM_FW (0x0014 << KVM_REG_ARM_COPROC_SHIFT)
200+
#define KVM_REG_ARM_FW_REG(r) (KVM_REG_ARM | KVM_REG_SIZE_U64 | \
201+
KVM_REG_ARM_FW | ((r) & 0xffff))
202+
#define KVM_REG_ARM_PSCI_VERSION KVM_REG_ARM_FW_REG(0)
203+
198204
/* Device Control API: ARM VGIC */
199205
#define KVM_DEV_ARM_VGIC_GRP_ADDR 0
200206
#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1

tools/arch/arm64/include/uapi/asm/kvm.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ struct kvm_arch_memory_slot {
206206
#define KVM_REG_ARM_TIMER_CNT ARM64_SYS_REG(3, 3, 14, 3, 2)
207207
#define KVM_REG_ARM_TIMER_CVAL ARM64_SYS_REG(3, 3, 14, 0, 2)
208208

209+
/* KVM-as-firmware specific pseudo-registers */
210+
#define KVM_REG_ARM_FW (0x0014 << KVM_REG_ARM_COPROC_SHIFT)
211+
#define KVM_REG_ARM_FW_REG(r) (KVM_REG_ARM64 | KVM_REG_SIZE_U64 | \
212+
KVM_REG_ARM_FW | ((r) & 0xffff))
213+
#define KVM_REG_ARM_PSCI_VERSION KVM_REG_ARM_FW_REG(0)
214+
209215
/* Device Control API: ARM VGIC */
210216
#define KVM_DEV_ARM_VGIC_GRP_ADDR 0
211217
#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1

0 commit comments

Comments
 (0)