Lines Matching defs:msr_index
944 u32 msr_index,
954 if (msr_index == MSR_IA32_TSC) {
966 if (kvm_get_msr(vcpu, msr_index, data)) {
968 msr_index);
1024 static bool nested_msr_store_list_has_msr(struct kvm_vcpu *vcpu, u32 msr_index)
1036 if (e.index == msr_index)
1043 u32 msr_index)
1052 msr_autostore_slot = vmx_find_loadstore_msr_slot(autostore, msr_index);
1054 in_vmcs12_store_list = nested_msr_store_list_has_msr(vcpu, msr_index);
1067 msr_index);
1071 autostore->val[last].index = msr_index;
1234 static void vmx_get_control_msr(struct nested_vmx_msrs *msrs, u32 msr_index,
1237 switch (msr_index) {
1264 vmx_restore_control_msr(struct vcpu_vmx *vmx, u32 msr_index, u64 data)
1269 vmx_get_control_msr(&vmcs_config.nested, msr_index, &lowp, &highp);
1281 vmx_get_control_msr(&vmx->nested.msrs, msr_index, &lowp, &highp);
1336 static u64 *vmx_get_fixed0_msr(struct nested_vmx_msrs *msrs, u32 msr_index)
1338 switch (msr_index) {
1348 static int vmx_restore_fixed0_msr(struct vcpu_vmx *vmx, u32 msr_index, u64 data)
1350 const u64 *msr = vmx_get_fixed0_msr(&vmcs_config.nested, msr_index);
1359 *vmx_get_fixed0_msr(&vmx->nested.msrs, msr_index) = data;
1368 int vmx_set_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data)
1379 switch (msr_index) {
1401 return vmx_restore_control_msr(vmx, msr_index, data);
1406 return vmx_restore_fixed0_msr(vmx, msr_index, data);
1433 int vmx_get_vmx_msr(struct nested_vmx_msrs *msrs, u32 msr_index, u64 *pdata)
1435 switch (msr_index) {
1444 if (msr_index == MSR_IA32_VMX_PINBASED_CTLS)
1452 if (msr_index == MSR_IA32_VMX_PROCBASED_CTLS)
1460 if (msr_index == MSR_IA32_VMX_EXIT_CTLS)
1468 if (msr_index == MSR_IA32_VMX_ENTRY_CTLS)
5986 u32 msr_index = kvm_rcx_read(vcpu);
6000 if (msr_index >= 0xc0000000) {
6001 msr_index -= 0xc0000000;
6005 /* Then read the msr_index'th bit from this bitmap: */
6006 if (msr_index < 1024*8) {
6008 if (kvm_vcpu_read_guest(vcpu, bitmap + msr_index/8, &b, 1))
6010 return 1 & (b >> (msr_index & 7));