Home
last modified time | relevance | path

Searched refs:hostsa (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/arch/x86/kvm/svm/
Dsev.c3081 void sev_es_prepare_switch_to_guest(struct sev_es_save_area *hostsa) in sev_es_prepare_switch_to_guest() argument
3100 hostsa->xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in sev_es_prepare_switch_to_guest()
3101 hostsa->pkru = read_pkru(); in sev_es_prepare_switch_to_guest()
3102 hostsa->xss = host_xss; in sev_es_prepare_switch_to_guest()
3110 hostsa->dr0 = native_get_debugreg(0); in sev_es_prepare_switch_to_guest()
3111 hostsa->dr1 = native_get_debugreg(1); in sev_es_prepare_switch_to_guest()
3112 hostsa->dr2 = native_get_debugreg(2); in sev_es_prepare_switch_to_guest()
3113 hostsa->dr3 = native_get_debugreg(3); in sev_es_prepare_switch_to_guest()
3114 hostsa->dr0_addr_mask = amd_get_dr_addr_mask(0); in sev_es_prepare_switch_to_guest()
3115 hostsa->dr1_addr_mask = amd_get_dr_addr_mask(1); in sev_es_prepare_switch_to_guest()
[all …]
Dsvm.h693 void sev_es_prepare_switch_to_guest(struct sev_es_save_area *hostsa);
Dsvm.c693 struct sev_es_save_area *hostsa; in svm_hardware_enable() local
696 hostsa = (struct sev_es_save_area *)(page_address(sd->save_area) + 0x400); in svm_hardware_enable()
698 rdmsr(MSR_TSC_AUX, hostsa->tsc_aux, msr_hi); in svm_hardware_enable()
1540 struct sev_es_save_area *hostsa; in svm_prepare_switch_to_guest() local
1541 hostsa = (struct sev_es_save_area *)(page_address(sd->save_area) + 0x400); in svm_prepare_switch_to_guest()
1543 sev_es_prepare_switch_to_guest(hostsa); in svm_prepare_switch_to_guest()