Lines Matching defs:vpid
79 module_param_named(vpid, enable_vpid, bool, 0444);
458 noinline void invvpid_error(unsigned long ext, u16 vpid, gva_t gva)
460 vmx_insn_failed("kvm: invvpid failed: ext=0x%lx vpid=%u gva=0x%lx\n",
461 ext, vpid, gva);
2552 &vmx_cap->ept, &vmx_cap->vpid);
2566 vmx_cap->vpid) {
2567 vmx_cap->vpid = 0;
2991 vpid_sync_vcpu_single(vmx->vpid);
3001 return to_vmx(vcpu)->vpid;
3023 * vpid_sync_vcpu_addr() is a nop if vpid==0, see the comment in
3032 * vpid_sync_context() is a nop if vpid==0, e.g. if enable_vpid==0 or a
3033 * vpid couldn't be allocated for this vCPU. VM-Enter and VM-Exit are
3034 * required to flush GVA->{G,H}PA mappings from the TLB if vpid is
3035 * disabled (VM-Enter with vpid enabled and vpid==0 is disallowed),
3748 int vpid;
3753 vpid = find_first_zero_bit(vmx_vpid_bitmap, VMX_NR_VPIDS);
3754 if (vpid < VMX_NR_VPIDS)
3755 __set_bit(vpid, vmx_vpid_bitmap);
3757 vpid = 0;
3759 return vpid;
3762 void free_vpid(int vpid)
3764 if (!enable_vpid || vpid == 0)
3767 __clear_bit(vpid, vmx_vpid_bitmap);
4337 if (vmx->vpid == 0)
4487 if (vmx->vpid != 0)
4488 vmcs_write16(VIRTUAL_PROCESSOR_ID, vmx->vpid);
4599 vpid_sync_context(vmx->vpid);
6992 free_vpid(vmx->vpid);
7007 vmx->vpid = allocate_vpid();
7141 free_vpid(vmx->vpid);