Lines Matching defs:msr_index

934 					    u32 msr_index,
944 if (msr_index == MSR_IA32_TSC) {
956 if (kvm_get_msr(vcpu, msr_index, data)) {
958 msr_index);
1014 static bool nested_msr_store_list_has_msr(struct kvm_vcpu *vcpu, u32 msr_index)
1026 if (e.index == msr_index)
1033 u32 msr_index)
1042 msr_autostore_slot = vmx_find_loadstore_msr_slot(autostore, msr_index);
1044 in_vmcs12_store_list = nested_msr_store_list_has_msr(vcpu, msr_index);
1057 msr_index);
1061 autostore->val[last].index = msr_index;
1271 static void vmx_get_control_msr(struct nested_vmx_msrs *msrs, u32 msr_index,
1274 switch (msr_index) {
1301 vmx_restore_control_msr(struct vcpu_vmx *vmx, u32 msr_index, u64 data)
1306 vmx_get_control_msr(&vmcs_config.nested, msr_index, &lowp, &highp);
1318 vmx_get_control_msr(&vmx->nested.msrs, msr_index, &lowp, &highp);
1373 static u64 *vmx_get_fixed0_msr(struct nested_vmx_msrs *msrs, u32 msr_index)
1375 switch (msr_index) {
1385 static int vmx_restore_fixed0_msr(struct vcpu_vmx *vmx, u32 msr_index, u64 data)
1387 const u64 *msr = vmx_get_fixed0_msr(&vmcs_config.nested, msr_index);
1396 *vmx_get_fixed0_msr(&vmx->nested.msrs, msr_index) = data;
1405 int vmx_set_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data)
1416 switch (msr_index) {
1438 return vmx_restore_control_msr(vmx, msr_index, data);
1443 return vmx_restore_fixed0_msr(vmx, msr_index, data);
1470 int vmx_get_vmx_msr(struct nested_vmx_msrs *msrs, u32 msr_index, u64 *pdata)
1472 switch (msr_index) {
1481 if (msr_index == MSR_IA32_VMX_PINBASED_CTLS)
1489 if (msr_index == MSR_IA32_VMX_PROCBASED_CTLS)
1497 if (msr_index == MSR_IA32_VMX_EXIT_CTLS)
1505 if (msr_index == MSR_IA32_VMX_ENTRY_CTLS)
5712 u32 msr_index = kvm_rcx_read(vcpu);
5726 if (msr_index >= 0xc0000000) {
5727 msr_index -= 0xc0000000;
5731 /* Then read the msr_index'th bit from this bitmap: */
5732 if (msr_index < 1024*8) {
5734 if (kvm_vcpu_read_guest(vcpu, bitmap + msr_index/8, &b, 1))
5736 return 1 & (b >> (msr_index & 7));