2022-11-08 09:44:53 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/*
|
|
|
|
* Generate definitions needed by assembly language modules.
|
|
|
|
* This code generates raw asm output which is post-processed to extract
|
|
|
|
* and format the required data.
|
|
|
|
*/
|
|
|
|
#define COMPILE_OFFSETS
|
|
|
|
|
|
|
|
#include <linux/kbuild.h>
|
|
|
|
#include "vmx/vmx.h"
|
2022-09-30 14:14:44 -04:00
|
|
|
#include "svm/svm.h"
|
2022-11-08 09:44:53 +01:00
|
|
|
|
|
|
|
static void __used common(void)
|
|
|
|
{
|
2022-09-30 14:14:44 -04:00
|
|
|
if (IS_ENABLED(CONFIG_KVM_AMD)) {
|
|
|
|
BLANK();
|
|
|
|
OFFSET(SVM_vcpu_arch_regs, vcpu_svm, vcpu.arch.regs);
|
|
|
|
}
|
|
|
|
|
2022-11-08 09:44:53 +01:00
|
|
|
if (IS_ENABLED(CONFIG_KVM_INTEL)) {
|
|
|
|
BLANK();
|
|
|
|
OFFSET(VMX_spec_ctrl, vcpu_vmx, spec_ctrl);
|
|
|
|
}
|
|
|
|
}
|