KVM
Macros | Functions
kvm-asm-offsets.c File Reference
#include <linux/kbuild.h>
#include "vmx/vmx.h"
#include "svm/svm.h"
Include dependency graph for kvm-asm-offsets.c:

Go to the source code of this file.

Macros

#define COMPILE_OFFSETS
 

Functions

static void __used common (void)
 

Macro Definition Documentation

◆ COMPILE_OFFSETS

#define COMPILE_OFFSETS

Definition at line 7 of file kvm-asm-offsets.c.

Function Documentation

◆ common()

static void __used common ( void  )
static

Definition at line 13 of file kvm-asm-offsets.c.

14 {
15  if (IS_ENABLED(CONFIG_KVM_AMD)) {
16  BLANK();
17  OFFSET(SVM_vcpu_arch_regs, vcpu_svm, vcpu.arch.regs);
18  OFFSET(SVM_current_vmcb, vcpu_svm, current_vmcb);
19  OFFSET(SVM_spec_ctrl, vcpu_svm, spec_ctrl);
20  OFFSET(SVM_vmcb01, vcpu_svm, vmcb01);
21  OFFSET(KVM_VMCB_pa, kvm_vmcb_info, pa);
22  OFFSET(SD_save_area_pa, svm_cpu_data, save_area_pa);
23  }
24 
25  if (IS_ENABLED(CONFIG_KVM_INTEL)) {
26  BLANK();
27  OFFSET(VMX_spec_ctrl, vcpu_vmx, spec_ctrl);
28  }
29 }
Definition: svm.h:209
Definition: vmx.h:251