sev_es_save_area
DEFINE_PER_CPU(struct sev_es_save_area *, sev_vmsa);
static int vmgexit_ap_control(u64 event, struct sev_es_save_area *vmsa, u32 apic_id)
static void snp_cleanup_vmsa(struct sev_es_save_area *vmsa, int apic_id)
struct sev_es_save_area *vmsa;
struct sev_es_save_area *cur_vmsa, *vmsa;
vmsa = (struct sev_es_save_area *)snp_alloc_vmsa_page(cpu);
DECLARE_PER_CPU(struct sev_es_save_area *, sev_vmsa);
static DEFINE_PER_CPU(struct sev_es_save_area *, hv_sev_vmsa);
static void snp_cleanup_vmsa(struct sev_es_save_area *vmsa)
struct sev_es_save_area *vmsa = (struct sev_es_save_area *)
struct sev_es_save_area *cur_vmsa;
struct sev_es_save_area host_sev_es_save;
BUILD_BUG_ON(sizeof(struct sev_es_save_area) != EXPECTED_SEV_ES_SAVE_AREA_SIZE);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0xc8);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0xcc);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0xd8);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0x1c0);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0x248);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0x298);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0x300);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0x320);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0x380);
BUILD_BUG_RESERVED_OFFSET(sev_es_save_area, 0x3f0);
void sev_es_prepare_switch_to_guest(struct vcpu_svm *svm, struct sev_es_save_area *hostsa)
struct sev_es_save_area *save = svm->sev_es.vmsa;
struct sev_es_save_area *vmsa = (struct sev_es_save_area *)save;
static __always_inline struct sev_es_save_area *sev_es_host_save_area(struct svm_cpu_data *sd)
struct sev_es_save_area *vmsa;
void sev_es_prepare_switch_to_guest(struct vcpu_svm *svm, struct sev_es_save_area *hostsa);
struct sev_es_save_area *hostsa);