• Home
  • Raw
  • Download

Lines Matching refs:msrpm

104 	u32 *msrpm;  member
159 u32 *msrpm; member
782 u32 *msrpm; in msr_write_intercepted() local
784 msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm: in msr_write_intercepted()
785 to_svm(vcpu)->msrpm; in msr_write_intercepted()
789 tmp = msrpm[offset]; in msr_write_intercepted()
796 static void set_msr_interception(u32 *msrpm, unsigned msr, in set_msr_interception() argument
812 tmp = msrpm[offset]; in set_msr_interception()
819 msrpm[offset] = tmp; in set_msr_interception()
822 static void svm_vcpu_init_msrpm(u32 *msrpm) in svm_vcpu_init_msrpm() argument
826 memset(msrpm, 0xff, PAGE_SIZE * (1 << MSRPM_ALLOC_ORDER)); in svm_vcpu_init_msrpm()
832 set_msr_interception(msrpm, direct_access_msrs[i].index, 1, 1); in svm_vcpu_init_msrpm()
881 u32 *msrpm = svm->msrpm; in svm_enable_lbrv() local
884 set_msr_interception(msrpm, MSR_IA32_LASTBRANCHFROMIP, 1, 1); in svm_enable_lbrv()
885 set_msr_interception(msrpm, MSR_IA32_LASTBRANCHTOIP, 1, 1); in svm_enable_lbrv()
886 set_msr_interception(msrpm, MSR_IA32_LASTINTFROMIP, 1, 1); in svm_enable_lbrv()
887 set_msr_interception(msrpm, MSR_IA32_LASTINTTOIP, 1, 1); in svm_enable_lbrv()
892 u32 *msrpm = svm->msrpm; in svm_disable_lbrv() local
895 set_msr_interception(msrpm, MSR_IA32_LASTBRANCHFROMIP, 0, 0); in svm_disable_lbrv()
896 set_msr_interception(msrpm, MSR_IA32_LASTBRANCHTOIP, 0, 0); in svm_disable_lbrv()
897 set_msr_interception(msrpm, MSR_IA32_LASTINTFROMIP, 0, 0); in svm_disable_lbrv()
898 set_msr_interception(msrpm, MSR_IA32_LASTINTTOIP, 0, 0); in svm_disable_lbrv()
1084 control->msrpm_base_pa = __pa(svm->msrpm); in init_vmcb()
1207 svm->msrpm = page_address(msrpm_pages); in svm_create_vcpu()
1208 svm_vcpu_init_msrpm(svm->msrpm); in svm_create_vcpu()
1210 svm->nested.msrpm = page_address(nested_msrpm_pages); in svm_create_vcpu()
1211 svm_vcpu_init_msrpm(svm->nested.msrpm); in svm_create_vcpu()
1242 __free_pages(virt_to_page(svm->msrpm), MSRPM_ALLOC_ORDER); in svm_free_vcpu()
1244 __free_pages(virt_to_page(svm->nested.msrpm), MSRPM_ALLOC_ORDER); in svm_free_vcpu()
2427 svm->nested.msrpm[p] = svm->msrpm[p] | value; in nested_svm_vmrun_msrpm()
2430 svm->vmcb->control.msrpm_base_pa = __pa(svm->nested.msrpm); in nested_svm_vmrun_msrpm()
3223 set_msr_interception(svm->msrpm, MSR_IA32_SPEC_CTRL, 1, 1); in svm_set_msr()
3239 set_msr_interception(svm->msrpm, MSR_IA32_PRED_CMD, 0, 1); in svm_set_msr()