KVM: x86: use a separate asm-offsets.c file
[platform/kernel/linux-starfive.git] / arch / x86 / kvm / kvm-asm-offsets.c
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
9 #include <linux/kbuild.h>
10 #include "vmx/vmx.h"
11
12 static void __used common(void)
13 {
14         if (IS_ENABLED(CONFIG_KVM_INTEL)) {
15                 BLANK();
16                 OFFSET(VMX_spec_ctrl, vcpu_vmx, spec_ctrl);
17         }
18 }