Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146509
b: refs/heads/master
c: 919818a
h: refs/heads/master
i:
  146507: b1dff67
v: v3
  • Loading branch information
Avi Kivity committed Jun 10, 2009
1 parent b2de79a commit 55c0570
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4462d21a615dfd0c0f672c10832a011d6f280d5a
refs/heads/master: 919818abc2ca0721f1cd296fbc24601d9044f993
5 changes: 4 additions & 1 deletion trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,9 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf)
vmx_capability.ept, vmx_capability.vpid);
}

if (!cpu_has_vmx_vpid())
enable_vpid = 0;

min = 0;
#ifdef CONFIG_X86_64
min |= VM_EXIT_HOST_ADDR_SPACE_SIZE;
Expand Down Expand Up @@ -2082,7 +2085,7 @@ static void allocate_vpid(struct vcpu_vmx *vmx)
int vpid;

vmx->vpid = 0;
if (!enable_vpid || !cpu_has_vmx_vpid())
if (!enable_vpid)
return;
spin_lock(&vmx_vpid_lock);
vpid = find_first_zero_bit(vmx_vpid_bitmap, VMX_NR_VPIDS);
Expand Down

0 comments on commit 55c0570

Please sign in to comment.