Home
last modified time | relevance | path

Searched refs:msrpm (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kvm/svm/
H A Dsvm.c617 u32 *msrpm; in msr_write_intercepted() local
619 msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm: in msr_write_intercepted()
620 to_svm(vcpu)->msrpm; in msr_write_intercepted()
624 tmp = msrpm[offset]; in msr_write_intercepted()
631 static void set_msr_interception_bitmap(struct kvm_vcpu *vcpu, u32 *msrpm, in set_msr_interception_bitmap() argument
654 tmp = msrpm[offset]; in set_msr_interception_bitmap()
661 msrpm[offset] = tmp; in set_msr_interception_bitmap()
664 static void set_msr_interception(struct kvm_vcpu *vcpu, u32 *msrpm, u32 msr, in set_msr_interception() argument
668 set_msr_interception_bitmap(vcpu, msrpm, ms in set_msr_interception()
674 u32 *msrpm; svm_vcpu_alloc_msrpm() local
685 svm_vcpu_init_msrpm(struct kvm_vcpu *vcpu, u32 *msrpm) svm_vcpu_init_msrpm() argument
697 svm_vcpu_free_msrpm(u32 *msrpm) svm_vcpu_free_msrpm() argument
[all...]
H A Dsvm.h92 u32 *msrpm; member
134 u32 *msrpm; member
353 void svm_vcpu_init_msrpm(struct kvm_vcpu *vcpu, u32 *msrpm);
354 void svm_vcpu_free_msrpm(u32 *msrpm);
H A Dnested.c211 svm->nested.msrpm[p] = svm->msrpm[p] | value; in nested_svm_vmrun_msrpm()
214 svm->vmcb->control.msrpm_base_pa = __sme_set(__pa(svm->nested.msrpm)); in nested_svm_vmrun_msrpm()
756 svm->nested.msrpm = svm_vcpu_alloc_msrpm(); in svm_allocate_nested()
757 if (!svm->nested.msrpm) in svm_allocate_nested()
759 svm_vcpu_init_msrpm(&svm->vcpu, svm->nested.msrpm); in svm_allocate_nested()
774 svm_vcpu_free_msrpm(svm->nested.msrpm); in svm_free_nested()
775 svm->nested.msrpm = NULL; in svm_free_nested()
/kernel/linux/linux-6.6/arch/x86/kvm/svm/
H A Dsvm.c816 u32 *msrpm; in msr_write_intercepted() local
827 msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm: in msr_write_intercepted()
828 to_svm(vcpu)->msrpm; in msr_write_intercepted()
832 tmp = msrpm[offset]; in msr_write_intercepted()
839 static void set_msr_interception_bitmap(struct kvm_vcpu *vcpu, u32 *msrpm, in set_msr_interception_bitmap() argument
863 tmp = msrpm[offset]; in set_msr_interception_bitmap()
870 msrpm[offset] = tmp; in set_msr_interception_bitmap()
876 void set_msr_interception(struct kvm_vcpu *vcpu, u32 *msrpm, u32 msr, in set_msr_interception() argument
880 set_msr_interception_bitmap(vcpu, msrpm, ms in set_msr_interception()
887 u32 *msrpm; svm_vcpu_alloc_msrpm() local
898 svm_vcpu_init_msrpm(struct kvm_vcpu *vcpu, u32 *msrpm) svm_vcpu_init_msrpm() argument
932 svm_vcpu_free_msrpm(u32 *msrpm) svm_vcpu_free_msrpm() argument
[all...]
H A Dsvm.h164 u32 *msrpm; member
232 u32 *msrpm; member
541 void svm_vcpu_init_msrpm(struct kvm_vcpu *vcpu, u32 *msrpm);
542 void svm_vcpu_free_msrpm(u32 *msrpm);
555 void set_msr_interception(struct kvm_vcpu *vcpu, u32 *msrpm, u32 msr,
H A Dnested.c228 svm->nested.msrpm[p] = svm->msrpm[p] | value; in nested_svm_vmrun_msrpm()
234 svm->vmcb->control.msrpm_base_pa = __sme_set(__pa(svm->nested.msrpm)); in nested_svm_vmrun_msrpm()
1188 svm->nested.msrpm = svm_vcpu_alloc_msrpm(); in svm_allocate_nested()
1189 if (!svm->nested.msrpm) in svm_allocate_nested()
1191 svm_vcpu_init_msrpm(&svm->vcpu, svm->nested.msrpm); in svm_allocate_nested()
1209 svm_vcpu_free_msrpm(svm->nested.msrpm); in svm_free_nested()
1210 svm->nested.msrpm = NULL; in svm_free_nested()
H A Dsev.c2973 set_msr_interception(vcpu, svm->msrpm, MSR_TSC_AUX, v_tsc_aux, v_tsc_aux); in sev_es_vcpu_after_set_cpuid()
3047 set_msr_interception(vcpu, svm->msrpm, MSR_EFER, 1, 1); in sev_es_init_vmcb()
3048 set_msr_interception(vcpu, svm->msrpm, MSR_IA32_CR_PAT, 1, 1); in sev_es_init_vmcb()
3049 set_msr_interception(vcpu, svm->msrpm, MSR_IA32_LASTBRANCHFROMIP, 1, 1); in sev_es_init_vmcb()
3050 set_msr_interception(vcpu, svm->msrpm, MSR_IA32_LASTBRANCHTOIP, 1, 1); in sev_es_init_vmcb()
3051 set_msr_interception(vcpu, svm->msrpm, MSR_IA32_LASTINTFROMIP, 1, 1); in sev_es_init_vmcb()
3052 set_msr_interception(vcpu, svm->msrpm, MSR_IA32_LASTINTTOIP, 1, 1); in sev_es_init_vmcb()

Completed in 29 milliseconds