Home
last modified time | relevance | path

Searched refs:smram (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/arch/x86/kvm/
Dsmm.c184 struct kvm_smram_state_32 *smram) in enter_smm_save_state_32() argument
190 smram->cr0 = kvm_read_cr0(vcpu); in enter_smm_save_state_32()
191 smram->cr3 = kvm_read_cr3(vcpu); in enter_smm_save_state_32()
192 smram->eflags = kvm_get_rflags(vcpu); in enter_smm_save_state_32()
193 smram->eip = kvm_rip_read(vcpu); in enter_smm_save_state_32()
196 smram->gprs[i] = kvm_register_read_raw(vcpu, i); in enter_smm_save_state_32()
199 smram->dr6 = (u32)val; in enter_smm_save_state_32()
201 smram->dr7 = (u32)val; in enter_smm_save_state_32()
203 enter_smm_save_seg_32(vcpu, &smram->tr, &smram->tr_sel, VCPU_SREG_TR); in enter_smm_save_state_32()
204 enter_smm_save_seg_32(vcpu, &smram->ldtr, &smram->ldtr_sel, VCPU_SREG_LDTR); in enter_smm_save_state_32()
[all …]
/linux-6.6.21/arch/x86/include/asm/
Dkvm_host.h1723 int (*enter_smm)(struct kvm_vcpu *vcpu, union kvm_smram *smram);
1724 int (*leave_smm)(struct kvm_vcpu *vcpu, const union kvm_smram *smram);
/linux-6.6.21/arch/x86/kvm/svm/
Dsvm.c4604 static int svm_enter_smm(struct kvm_vcpu *vcpu, union kvm_smram *smram) in svm_enter_smm() argument
4621 smram->smram64.svm_guest_flag = 1; in svm_enter_smm()
4622 smram->smram64.svm_guest_vmcb_gpa = svm->nested.vmcb12_gpa; in svm_enter_smm()
4656 static int svm_leave_smm(struct kvm_vcpu *vcpu, const union kvm_smram *smram) in svm_leave_smm() argument
4663 const struct kvm_smram_state_64 *smram64 = &smram->smram64; in svm_leave_smm()
/linux-6.6.21/arch/x86/kvm/vmx/
Dvmx.c8133 static int vmx_enter_smm(struct kvm_vcpu *vcpu, union kvm_smram *smram) in vmx_enter_smm() argument
8154 static int vmx_leave_smm(struct kvm_vcpu *vcpu, const union kvm_smram *smram) in vmx_leave_smm() argument