Skip to content

Commit

Permalink
KVM: VMX: rename vpid_sync_vcpu_all() to vpid_sync_vcpu_single()
Browse files Browse the repository at this point in the history
The name "pid_sync_vcpu_all" isn't appropriate since it just affect
a single vpid, so rename it to vpid_sync_vcpu_single().

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Gui Jianfeng authored and Avi Kivity committed Aug 1, 2010
1 parent b9d762f commit 1760dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ static void vcpu_clear(struct vcpu_vmx *vmx)
smp_call_function_single(vmx->vcpu.cpu, __vcpu_clear, vmx, 1);
}

static inline void vpid_sync_vcpu_all(struct vcpu_vmx *vmx)
static inline void vpid_sync_vcpu_single(struct vcpu_vmx *vmx)
{
if (vmx->vpid == 0)
return;
Expand All @@ -527,7 +527,7 @@ static inline void vpid_sync_vcpu_global(void)
static inline void vpid_sync_context(struct vcpu_vmx *vmx)
{
if (cpu_has_vmx_invvpid_single())
vpid_sync_vcpu_all(vmx);
vpid_sync_vcpu_single(vmx);
else
vpid_sync_vcpu_global();
}
Expand Down

0 comments on commit 1760dd4

Please sign in to comment.