1 // SPDX-License-Identifier: GPL-2.0
2 #ifndef __LINUX_KBUILD_H
3 # error "Please do not build this file directly, build asm-offsets.c instead"
8 #if defined(CONFIG_KVM_GUEST) && defined(CONFIG_PARAVIRT_SPINLOCKS)
9 #include <asm/kvm_para.h>
14 #ifdef CONFIG_PARAVIRT
15 #ifdef CONFIG_PARAVIRT_XXL
16 OFFSET(PV_CPU_usergs_sysret64
, paravirt_patch_template
,
18 OFFSET(PV_CPU_swapgs
, paravirt_patch_template
, cpu
.swapgs
);
19 #ifdef CONFIG_DEBUG_ENTRY
20 OFFSET(PV_IRQ_save_fl
, paravirt_patch_template
, irq
.save_fl
);
26 #if defined(CONFIG_KVM_GUEST) && defined(CONFIG_PARAVIRT_SPINLOCKS)
27 OFFSET(KVM_STEAL_TIME_preempted
, kvm_steal_time
, preempted
);
31 #define ENTRY(entry) OFFSET(pt_regs_ ## entry, pt_regs, entry)
51 #define ENTRY(entry) OFFSET(saved_context_ ## entry, saved_context, entry)
62 #ifdef CONFIG_STACKPROTECTOR
63 DEFINE(stack_canary_offset
, offsetof(struct fixed_percpu_data
, stack_canary
));