| /linux/arch/loongarch/kvm/ |
| H A D | main.c | 207 unsigned long vpid; in kvm_update_vpid() local 211 vpid = context->vpid_cache + 1; in kvm_update_vpid() 212 if (!(vpid & vpid_mask)) { in kvm_update_vpid() 213 /* finish round of vpid loop */ in kvm_update_vpid() 214 if (unlikely(!vpid)) in kvm_update_vpid() 215 vpid = vpid_mask + 1; in kvm_update_vpid() 217 ++vpid; /* vpid 0 reserved for root */ in kvm_update_vpid() 219 /* start new vpid cycle */ in kvm_update_vpid() 223 context->vpid_cache = vpid; in kvm_update_vpid() 224 vcpu->arch.vpid = vpid; in kvm_update_vpid() [all …]
|
| H A D | vcpu.c | 213 vcpu->arch.vpid = 0; /* Drop vpid for this vCPU */ in kvm_check_requests() 1515 vcpu->arch.vpid = 0; in kvm_arch_vcpu_unlocked_ioctl()
|
| H A D | mmu.c | 312 /* Flush vpid for each vCPU individually */ in kvm_flush_range()
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_sriov_pf.c | 73 int ret = -EIO, vpid, id; in qlcnic_sriov_pf_cal_res_limit() local 77 vpid = qlcnic_sriov_pf_get_vport_handle(adapter, func); in qlcnic_sriov_pf_cal_res_limit() 78 if (vpid < 0) in qlcnic_sriov_pf_cal_res_limit() 129 ret = qlcnic_sriov_pf_set_vport_info(adapter, info, vpid); in qlcnic_sriov_pf_cal_res_limit() 293 int vpid; in qlcnic_sriov_pf_config_vport() local 301 vpid = qlcnic_sriov_pf_get_vport_handle(adapter, func); in qlcnic_sriov_pf_config_vport() 302 if (vpid < 0) { in qlcnic_sriov_pf_config_vport() 306 cmd.req.arg[3] = ((vpid & 0xffff) << 8) | 1; in qlcnic_sriov_pf_config_vport() 318 vpid = cmd.rsp.arg[2] & 0xffff; in qlcnic_sriov_pf_config_vport() 319 qlcnic_sriov_pf_set_vport_handle(adapter, vpid, func); in qlcnic_sriov_pf_config_vport() [all …]
|
| /linux/drivers/media/common/b2c2/ |
| H A D | flexcop-hw-filter.c | 66 flexcop_ibi_value vpid = fc->read_ibi_reg(fc, vregname), \ 68 vpid.vregname.field = onoff ? pid : 0x1fff; \ 69 vpid.vregname.trans_field = transval; \ 71 fc->write_ibi_reg(fc, vregname, vpid); \ 148 flexcop_ibi_value vpid, vid; in flexcop_pid_control() local 155 vpid = fc->read_ibi_reg(fc, pid_n_reg_314); in flexcop_pid_control() 156 vpid.pid_n_reg_314.PID = onoff ? pid : 0x1fff; in flexcop_pid_control() 157 vpid.pid_n_reg_314.PID_enable_bit = onoff; in flexcop_pid_control() 158 fc->write_ibi_reg(fc, pid_n_reg_314, vpid); in flexcop_pid_control()
|
| /linux/arch/x86/kvm/vmx/ |
| H A D | capabilities.h | 69 u32 vpid; 356 return vmx_capability.vpid & VMX_VPID_INVVPID_BIT; in cpu_has_vmx_invept_global() 361 return vmx_capability.vpid & VMX_VPID_EXTENT_INDIVIDUAL_ADDR_BIT; in cpu_has_vmx_invvpid() 366 return vmx_capability.vpid & VMX_VPID_EXTENT_SINGLE_CONTEXT_BIT; in cpu_has_vmx_invvpid_individual_addr() 371 return vmx_capability.vpid & VMX_VPID_EXTENT_GLOBAL_CONTEXT_BIT; in cpu_has_vmx_invvpid_single() 68 u32 vpid; global() member
|
| H A D | nested.c | 1241 * If L1 uses VPID and we allocated a vpid02, TLB entries are tagged in nested_vmx_transition_tlb_flush() 1242 * with different VPID (L1 entries are tagged with vmx->vpid in nested_vmx_transition_tlb_flush() 1263 * If VPID is disabled, then guest TLB accesses use VPID=0, i.e. the in nested_vmx_transition_tlb_flush() 1264 * same VPID as the host, and so architecturally, linear and combined in nested_vmx_transition_tlb_flush() 1265 * mappings for VPID=0 must be flushed at VM-Enter and VM-Exit. KVM in nested_vmx_transition_tlb_flush() 1266 * emulates L2 sharing L1's VPID=0 by using vpid01 while running L2, in nested_vmx_transition_tlb_flush() 1267 * and so KVM must also emulate TLB flush of VPID=0, i.e. vpid01. This in nested_vmx_transition_tlb_flush() 1268 * is required if VPID i in nested_vmx_transition_tlb_flush() 6044 u64 vpid; handle_invvpid() member [all...] |
| H A D | vmx.c | 95 module_param_named(vpid, enable_vpid, bool, 0444); 580 noinline void invvpid_error(unsigned long ext, u16 vpid, gva_t gva) 582 vmx_insn_failed("invvpid failed: ext=0x%lx vpid=%u gva=0x%lx\n", in invept_error() 583 ext, vpid, gva); in invept_error() 1531 * Flush all EPTP/VPID contexts, the new pCPU may have stale in vmx_vcpu_load_vmcs() 2791 &vmx_cap->ept, &vmx_cap->vpid); in setup_vmcs_config() 2806 vmx_cap->vpid) { in setup_vmcs_config() 2807 pr_warn_once("VPID CAP should not exist if not support " in setup_vmcs_config() 2808 "1-setting enable VPID VM-execution control\n"); in setup_vmcs_config() 2813 vmx_cap->vpid in setup_vmcs_config() 575 invvpid_error(unsigned long ext,u16 vpid,gva_t gva) invvpid_error() argument 4039 int vpid; allocate_vpid() local 4053 free_vpid(int vpid) free_vpid() argument [all...] |
| H A D | nested.h | 92 return vmx->nested.vpid02 ? vmx->nested.vpid02 : vmx->vpid; in nested_get_vpid02()
|
| /linux/arch/x86/include/asm/ |
| H A D | vmxfeatures.h | 16 /* Pin-Based VM-Execution Controls, EPT/VPID, APIC and VM-Functions, word 0 */ 23 /* EPT/VPID features, scattered to bits 16-23 */ 67 #define VMX_FEATURE_VPID ( 2*32+ 5) /* "vpid" Virtual Processor ID (TLB ASID modifier) */
|
| /linux/drivers/scsi/bnx2fc/ |
| H A D | bnx2fc_fcoe.c | 2120 struct fc_vport_identifiers vpid; in bnx2fc_npiv_create_vports() 2138 vpid.roles = FC_PORT_ROLE_FCP_INITIATOR; in bnx2fc_npiv_create_vports() 2139 vpid.vport_type = FC_PORTTYPE_NPIV; in bnx2fc_npiv_create_vports() 2140 vpid.disable = false; in bnx2fc_npiv_create_vports() 2151 vpid.node_name = wwnn; in bnx2fc_npiv_create_vports() 2152 vpid.port_name = wwn_to_u64(npiv_tbl->wwpn[i]); in bnx2fc_npiv_create_vports() 2153 scnprintf(vpid.symbolic_name, sizeof(vpid.symbolic_name), in bnx2fc_npiv_create_vports() 2155 created, vpid.port_name, vpid in bnx2fc_npiv_create_vports() 2117 struct fc_vport_identifiers vpid; bnx2fc_npiv_create_vports() local [all...] |
| /linux/arch/loongarch/include/asm/ |
| H A D | kvm_host.h | 235 /* vcpu's vpid */ 236 u64 vpid; 238 u64 vpid; global() member
|
| /linux/kernel/futex/ |
| H A D | pi.c | 523 u32 uval, newval, vpid = task_pid_vnr(task); in futex_lock_pi_atomic() local 540 if ((unlikely((uval & FUTEX_TID_MASK) == vpid))) in futex_lock_pi_atomic() 566 newval |= vpid; in futex_lock_pi_atomic() 1143 u32 curval, uval, vpid = task_pid_vnr(current); in futex_unlock_pi() 1156 if ((uval & FUTEX_TID_MASK) != vpid) in futex_unlock_pi() 1144 u32 curval, uval, vpid = task_pid_vnr(current); futex_unlock_pi() local
|
| /linux/drivers/staging/media/av7110/ |
| H A D | av7110.h | 289 int ChangePIDs(struct av7110 *av7110, u16 vpid, u16 apid, u16 ttpid,
|
| /linux/tools/perf/pmu-events/arch/x86/rocketlake/ |
| H A D | virtual-memory.json | 199 "PublicDescription": "Counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3 write, etc.).",
|
| /linux/tools/perf/pmu-events/arch/x86/tigerlake/ |
| H A D | virtual-memory.json | 199 "PublicDescription": "Counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3 write, etc.).",
|
| /linux/tools/perf/pmu-events/arch/x86/icelake/ |
| H A D | virtual-memory.json | 199 "PublicDescription": "Counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3 write, etc.).",
|
| /linux/tools/perf/pmu-events/arch/x86/icelakex/ |
| H A D | virtual-memory.json | 199 …"PublicDescription": "Counts the number of any STLB flush attempts (such as entire, VPID, PCID, In…
|
| /linux/tools/perf/pmu-events/arch/x86/skylake/ |
| H A D | virtual-memory.json | 252 …"PublicDescription": "Counts the number of any STLB flush attempts (such as entire, VPID, PCID, In…
|
| /linux/tools/perf/pmu-events/arch/x86/skylakex/ |
| H A D | virtual-memory.json | 252 …"PublicDescription": "Counts the number of any STLB flush attempts (such as entire, VPID, PCID, In…
|
| /linux/tools/perf/pmu-events/arch/x86/cascadelakex/ |
| H A D | virtual-memory.json | 252 …"PublicDescription": "Counts the number of any STLB flush attempts (such as entire, VPID, PCID, In…
|
| /linux/tools/perf/pmu-events/arch/x86/broadwellx/ |
| H A D | virtual-memory.json | 346 …"This event counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3…
|
| /linux/tools/perf/pmu-events/arch/x86/broadwellde/ |
| H A D | virtual-memory.json | 346 …"This event counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3…
|
| /linux/tools/perf/pmu-events/arch/x86/broadwell/ |
| H A D | virtual-memory.json | 346 …"This event counts the number of any STLB flush attempts (such as entire, VPID, PCID, InvPage, CR3…
|
| /linux/kernel/bpf/ |
| H A D | helpers.c | 3003 * bpf_task_from_vpid - Find a struct task_struct from its vpid by looking it up 3006 * @vpid: The vpid of the task being looked up. 3008 __bpf_kfunc struct task_struct *bpf_task_from_vpid(s32 vpid) 3016 p = find_task_by_vpid(vpid); 2911 bpf_task_from_vpid(s32 vpid) bpf_task_from_vpid() argument
|