diff options
author | Gui Jianfeng <guijianfeng@cn.fujitsu.com> | 2010-06-06 22:33:27 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 03:46:16 -0400 |
commit | 1760dd4939a62591e492971858fac8cce1e4539e (patch) | |
tree | edd00356dd27c060e5ff794d57fbf58504f3e22c /arch/x86/kvm/vmx.c | |
parent | b9d762fa79f541ab480cdb733b46fdb0b4471c2d (diff) |
KVM: VMX: rename vpid_sync_vcpu_all() to vpid_sync_vcpu_single()
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>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 622d83b0caf3..7d7361750bf2 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -509,7 +509,7 @@ static void vcpu_clear(struct vcpu_vmx *vmx) | |||
509 | smp_call_function_single(vmx->vcpu.cpu, __vcpu_clear, vmx, 1); | 509 | smp_call_function_single(vmx->vcpu.cpu, __vcpu_clear, vmx, 1); |
510 | } | 510 | } |
511 | 511 | ||
512 | static inline void vpid_sync_vcpu_all(struct vcpu_vmx *vmx) | 512 | static inline void vpid_sync_vcpu_single(struct vcpu_vmx *vmx) |
513 | { | 513 | { |
514 | if (vmx->vpid == 0) | 514 | if (vmx->vpid == 0) |
515 | return; | 515 | return; |
@@ -527,7 +527,7 @@ static inline void vpid_sync_vcpu_global(void) | |||
527 | static inline void vpid_sync_context(struct vcpu_vmx *vmx) | 527 | static inline void vpid_sync_context(struct vcpu_vmx *vmx) |
528 | { | 528 | { |
529 | if (cpu_has_vmx_invvpid_single()) | 529 | if (cpu_has_vmx_invvpid_single()) |
530 | vpid_sync_vcpu_all(vmx); | 530 | vpid_sync_vcpu_single(vmx); |
531 | else | 531 | else |
532 | vpid_sync_vcpu_global(); | 532 | vpid_sync_vcpu_global(); |
533 | } | 533 | } |