Home
last modified time | relevance | path

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

/openbmc/linux/arch/x86/kvm/svm/
H A Dsvm.c818 u32 *msrpm; in msr_write_intercepted() local
829 msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm: in msr_write_intercepted()
830 to_svm(vcpu)->msrpm; in msr_write_intercepted()
834 tmp = msrpm[offset]; in msr_write_intercepted()
841 static void set_msr_interception_bitmap(struct kvm_vcpu *vcpu, u32 *msrpm, in set_msr_interception_bitmap() argument
865 tmp = msrpm[offset]; in set_msr_interception_bitmap()
872 msrpm[offset] = tmp; in set_msr_interception_bitmap()
878 void set_msr_interception(struct kvm_vcpu *vcpu, u32 *msrpm, u32 msr, in set_msr_interception() argument
882 set_msr_interception_bitmap(vcpu, msrpm, msr, read, write); in set_msr_interception()
889 u32 *msrpm; in svm_vcpu_alloc_msrpm() local
[all …]
H A Dsvm.h165 u32 *msrpm; member
233 u32 *msrpm; member
542 void svm_vcpu_init_msrpm(struct kvm_vcpu *vcpu, u32 *msrpm);
543 void svm_vcpu_free_msrpm(u32 *msrpm);
557 void set_msr_interception(struct kvm_vcpu *vcpu, u32 *msrpm, u32 msr,
H A Dnested.c232 svm->nested.msrpm[p] = svm->msrpm[p] | value; in nested_svm_vmrun_msrpm()
238 svm->vmcb->control.msrpm_base_pa = __sme_set(__pa(svm->nested.msrpm)); in nested_svm_vmrun_msrpm()
1192 svm->nested.msrpm = svm_vcpu_alloc_msrpm(); in svm_allocate_nested()
1193 if (!svm->nested.msrpm) in svm_allocate_nested()
1195 svm_vcpu_init_msrpm(&svm->vcpu, svm->nested.msrpm); in svm_allocate_nested()
1213 svm_vcpu_free_msrpm(svm->nested.msrpm); in svm_free_nested()
1214 svm->nested.msrpm = NULL; in svm_free_nested()
H A Dsev.c3003 set_msr_interception(vcpu, svm->msrpm, MSR_TSC_AUX, v_tsc_aux, v_tsc_aux); in sev_es_vcpu_after_set_cpuid()
3021 set_msr_interception(vcpu, svm->msrpm, MSR_IA32_XSS, 1, 1); in sev_es_vcpu_after_set_cpuid()
3023 set_msr_interception(vcpu, svm->msrpm, MSR_IA32_XSS, 0, 0); in sev_es_vcpu_after_set_cpuid()
3095 set_msr_interception(vcpu, svm->msrpm, MSR_EFER, 1, 1); in sev_es_init_vmcb()
3096 set_msr_interception(vcpu, svm->msrpm, MSR_IA32_CR_PAT, 1, 1); in sev_es_init_vmcb()