Home
last modified time | relevance | path

Searched refs:smstate (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kvm/
Demulate.c2417 static int rsm_load_seg_32(struct x86_emulate_ctxt *ctxt, const char *smstate, in rsm_load_seg_32() argument
2424 selector = GET_SMSTATE(u32, smstate, 0x7fa8 + n * 4); in rsm_load_seg_32()
2431 set_desc_base(&desc, GET_SMSTATE(u32, smstate, offset + 8)); in rsm_load_seg_32()
2432 set_desc_limit(&desc, GET_SMSTATE(u32, smstate, offset + 4)); in rsm_load_seg_32()
2433 rsm_set_desc_flags(&desc, GET_SMSTATE(u32, smstate, offset)); in rsm_load_seg_32()
2439 static int rsm_load_seg_64(struct x86_emulate_ctxt *ctxt, const char *smstate, in rsm_load_seg_64() argument
2449 selector = GET_SMSTATE(u16, smstate, offset); in rsm_load_seg_64()
2450 rsm_set_desc_flags(&desc, GET_SMSTATE(u16, smstate, offset + 2) << 8); in rsm_load_seg_64()
2451 set_desc_limit(&desc, GET_SMSTATE(u32, smstate, offset + 4)); in rsm_load_seg_64()
2452 set_desc_base(&desc, GET_SMSTATE(u32, smstate, offset + 8)); in rsm_load_seg_64()
[all …]
Dkvm_emulate.h234 const char *smstate);
Dx86.c6925 const char *smstate) in emulator_pre_leave_smm() argument
6927 return kvm_x86_ops.pre_leave_smm(emul_to_vcpu(ctxt), smstate); in emulator_pre_leave_smm()
/kernel/linux/linux-5.10/arch/x86/kvm/svm/
Dsvm.c4035 static int svm_pre_enter_smm(struct kvm_vcpu *vcpu, char *smstate) in svm_pre_enter_smm() argument
4042 put_smstate(u64, smstate, 0x7ed8, 1); in svm_pre_enter_smm()
4044 put_smstate(u64, smstate, 0x7ee0, svm->nested.vmcb12_gpa); in svm_pre_enter_smm()
4057 static int svm_pre_leave_smm(struct kvm_vcpu *vcpu, const char *smstate) in svm_pre_leave_smm() argument
4064 u64 saved_efer = GET_SMSTATE(u64, smstate, 0x7ed0); in svm_pre_leave_smm()
4065 u64 guest = GET_SMSTATE(u64, smstate, 0x7ed8); in svm_pre_leave_smm()
4066 u64 vmcb12_gpa = GET_SMSTATE(u64, smstate, 0x7ee0); in svm_pre_leave_smm()
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dkvm_host.h1271 int (*pre_enter_smm)(struct kvm_vcpu *vcpu, char *smstate);
1272 int (*pre_leave_smm)(struct kvm_vcpu *vcpu, const char *smstate);
/kernel/linux/linux-5.10/arch/x86/kvm/vmx/
Dvmx.c7632 static int vmx_pre_enter_smm(struct kvm_vcpu *vcpu, char *smstate) in vmx_pre_enter_smm() argument
7646 static int vmx_pre_leave_smm(struct kvm_vcpu *vcpu, const char *smstate) in vmx_pre_leave_smm() argument