• Home
  • Raw
  • Download

Lines Matching refs:msr_info

1890 static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info)  in vmx_get_msr()  argument
1896 switch (msr_info->index) { in vmx_get_msr()
1899 msr_info->data = vmcs_readl(GUEST_FS_BASE); in vmx_get_msr()
1902 msr_info->data = vmcs_readl(GUEST_GS_BASE); in vmx_get_msr()
1905 msr_info->data = vmx_read_guest_kernel_gs_base(vmx); in vmx_get_msr()
1909 return kvm_get_msr_common(vcpu, msr_info); in vmx_get_msr()
1911 if (!msr_info->host_initiated && in vmx_get_msr()
1916 if (!msr_info->host_initiated && !vmx_has_waitpkg(vmx)) in vmx_get_msr()
1919 msr_info->data = vmx->msr_ia32_umwait_control; in vmx_get_msr()
1922 if (!msr_info->host_initiated && in vmx_get_msr()
1926 msr_info->data = to_vmx(vcpu)->spec_ctrl; in vmx_get_msr()
1929 msr_info->data = vmcs_read32(GUEST_SYSENTER_CS); in vmx_get_msr()
1932 msr_info->data = vmcs_readl(GUEST_SYSENTER_EIP); in vmx_get_msr()
1935 msr_info->data = vmcs_readl(GUEST_SYSENTER_ESP); in vmx_get_msr()
1939 (!msr_info->host_initiated && in vmx_get_msr()
1942 msr_info->data = vmcs_read64(GUEST_BNDCFGS); in vmx_get_msr()
1945 if (!msr_info->host_initiated && in vmx_get_msr()
1949 msr_info->data = vcpu->arch.mcg_ext_ctl; in vmx_get_msr()
1952 msr_info->data = vmx->msr_ia32_feature_control; in vmx_get_msr()
1957 if (vmx_get_vmx_msr(&vmx->nested.msrs, msr_info->index, in vmx_get_msr()
1958 &msr_info->data)) in vmx_get_msr()
1967 if (!msr_info->host_initiated && in vmx_get_msr()
1969 nested_evmcs_filter_control_msr(msr_info->index, in vmx_get_msr()
1970 &msr_info->data); in vmx_get_msr()
1975 msr_info->data = vmx->pt_desc.guest.ctl; in vmx_get_msr()
1980 msr_info->data = vmx->pt_desc.guest.status; in vmx_get_msr()
1987 msr_info->data = vmx->pt_desc.guest.cr3_match; in vmx_get_msr()
1996 msr_info->data = vmx->pt_desc.guest.output_base; in vmx_get_msr()
2005 msr_info->data = vmx->pt_desc.guest.output_mask; in vmx_get_msr()
2008 index = msr_info->index - MSR_IA32_RTIT_ADDR0_A; in vmx_get_msr()
2014 msr_info->data = vmx->pt_desc.guest.addr_b[index / 2]; in vmx_get_msr()
2016 msr_info->data = vmx->pt_desc.guest.addr_a[index / 2]; in vmx_get_msr()
2019 if (!msr_info->host_initiated && in vmx_get_msr()
2025 msr = vmx_find_uret_msr(vmx, msr_info->index); in vmx_get_msr()
2027 msr_info->data = msr->data; in vmx_get_msr()
2030 return kvm_get_msr_common(vcpu, msr_info); in vmx_get_msr()
2051 static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) in vmx_set_msr() argument
2056 u32 msr_index = msr_info->index; in vmx_set_msr()
2057 u64 data = msr_info->data; in vmx_set_msr()
2062 ret = kvm_set_msr_common(vcpu, msr_info); in vmx_set_msr()
2101 ret = kvm_set_msr_common(vcpu, msr_info); in vmx_set_msr()
2106 (!msr_info->host_initiated && in vmx_set_msr()
2115 if (!msr_info->host_initiated && !vmx_has_waitpkg(vmx)) in vmx_set_msr()
2125 if (!msr_info->host_initiated && in vmx_set_msr()
2153 if (!msr_info->host_initiated && in vmx_set_msr()
2160 if (!msr_info->host_initiated && in vmx_set_msr()
2199 ret = kvm_set_msr_common(vcpu, msr_info); in vmx_set_msr()
2202 ret = kvm_set_msr_common(vcpu, msr_info); in vmx_set_msr()
2205 if ((!msr_info->host_initiated && in vmx_set_msr()
2215 FEAT_CTL_LOCKED && !msr_info->host_initiated)) in vmx_set_msr()
2218 if (msr_info->host_initiated && data == 0) in vmx_set_msr()
2222 if (!msr_info->host_initiated) in vmx_set_msr()
2276 index = msr_info->index - MSR_IA32_RTIT_ADDR0_A; in vmx_set_msr()
2288 if (!msr_info->host_initiated && in vmx_set_msr()
2302 ret = kvm_set_msr_common(vcpu, msr_info); in vmx_set_msr()