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 #ifdef CONFIG_DEBUG_ENTRY
19 OFFSET(PV_IRQ_save_fl, paravirt_patch_template, irq.save_fl);
25 #if defined(CONFIG_KVM_GUEST) && defined(CONFIG_PARAVIRT_SPINLOCKS)
26 OFFSET(KVM_STEAL_TIME_preempted, kvm_steal_time, preempted);
30 #define ENTRY(entry) OFFSET(pt_regs_ ## entry, pt_regs, entry)
50 #define ENTRY(entry) OFFSET(saved_context_ ## entry, saved_context, entry)
61 #ifdef CONFIG_STACKPROTECTOR
62 DEFINE(stack_canary_offset, offsetof(struct fixed_percpu_data, stack_canary));