asm-offsets.c (14e77332e74603efab8347c89d3cda447c3b97c9) | asm-offsets.c (debc5a1ec0d195ffea70d11efeffb713de9fdbc7) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Generate definitions needed by assembly language modules. 4 * This code generates raw asm output which is post-processed to extract 5 * and format the required data. 6 */ 7#define COMPILE_OFFSETS 8 --- 5 unchanged lines hidden (view full) --- 14#include <linux/kbuild.h> 15#include <asm/processor.h> 16#include <asm/thread_info.h> 17#include <asm/sigframe.h> 18#include <asm/bootparam.h> 19#include <asm/suspend.h> 20#include <asm/tlbflush.h> 21#include <asm/tdx.h> | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Generate definitions needed by assembly language modules. 4 * This code generates raw asm output which is post-processed to extract 5 * and format the required data. 6 */ 7#define COMPILE_OFFSETS 8 --- 5 unchanged lines hidden (view full) --- 14#include <linux/kbuild.h> 15#include <asm/processor.h> 16#include <asm/thread_info.h> 17#include <asm/sigframe.h> 18#include <asm/bootparam.h> 19#include <asm/suspend.h> 20#include <asm/tlbflush.h> 21#include <asm/tdx.h> |
22#include "../kvm/vmx/vmx.h" | |
23 24#ifdef CONFIG_XEN 25#include <xen/interface/xen.h> 26#endif 27 28#ifdef CONFIG_X86_32 29# include "asm-offsets_32.c" 30#else --- 72 unchanged lines hidden (view full) --- 103 OFFSET(CPU_ENTRY_AREA_entry_stack, cpu_entry_area, entry_stack_page); 104 DEFINE(SIZEOF_entry_stack, sizeof(struct entry_stack)); 105 DEFINE(MASK_entry_stack, (~(sizeof(struct entry_stack) - 1))); 106 107 /* Offset for fields in tss_struct */ 108 OFFSET(TSS_sp0, tss_struct, x86_tss.sp0); 109 OFFSET(TSS_sp1, tss_struct, x86_tss.sp1); 110 OFFSET(TSS_sp2, tss_struct, x86_tss.sp2); | 22 23#ifdef CONFIG_XEN 24#include <xen/interface/xen.h> 25#endif 26 27#ifdef CONFIG_X86_32 28# include "asm-offsets_32.c" 29#else --- 72 unchanged lines hidden (view full) --- 102 OFFSET(CPU_ENTRY_AREA_entry_stack, cpu_entry_area, entry_stack_page); 103 DEFINE(SIZEOF_entry_stack, sizeof(struct entry_stack)); 104 DEFINE(MASK_entry_stack, (~(sizeof(struct entry_stack) - 1))); 105 106 /* Offset for fields in tss_struct */ 107 OFFSET(TSS_sp0, tss_struct, x86_tss.sp0); 108 OFFSET(TSS_sp1, tss_struct, x86_tss.sp1); 109 OFFSET(TSS_sp2, tss_struct, x86_tss.sp2); |
111 112 if (IS_ENABLED(CONFIG_KVM_INTEL)) { 113 BLANK(); 114 OFFSET(VMX_spec_ctrl, vcpu_vmx, spec_ctrl); 115 } | |
116} | 110} |