Skip to content

Commit e6b6c48

Browse files
vittyvkbonzini
authored andcommitted
KVM: x86: hyperv: fix 'tlb_lush' typo
Regardless of whether your TLB is lush or not it still needs flushing. Reported-by: Roman Kagan <rkagan@virtuozzo.com> Reviewed-by: Roman Kagan <rkagan@virtuozzo.com> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 2768c0c commit e6b6c48

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ struct kvm_vcpu_hv {
499499
struct kvm_hyperv_exit exit;
500500
struct kvm_vcpu_hv_stimer stimer[HV_SYNIC_STIMER_COUNT];
501501
DECLARE_BITMAP(stimer_pending_bitmap, HV_SYNIC_STIMER_COUNT);
502-
cpumask_t tlb_lush;
502+
cpumask_t tlb_flush;
503503
};
504504

505505
struct kvm_vcpu_arch {

arch/x86/kvm/hyperv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,12 +1354,12 @@ static u64 kvm_hv_flush_tlb(struct kvm_vcpu *current_vcpu, u64 ingpa,
13541354
* vcpu->arch.cr3 may not be up-to-date for running vCPUs so we can't
13551355
* analyze it here, flush TLB regardless of the specified address space.
13561356
*/
1357-
cpumask_clear(&hv_vcpu->tlb_lush);
1357+
cpumask_clear(&hv_vcpu->tlb_flush);
13581358

13591359
if (all_cpus) {
13601360
kvm_make_vcpus_request_mask(kvm,
13611361
KVM_REQ_TLB_FLUSH | KVM_REQUEST_NO_WAKEUP,
1362-
NULL, &hv_vcpu->tlb_lush);
1362+
NULL, &hv_vcpu->tlb_flush);
13631363
goto ret_success;
13641364
}
13651365

@@ -1397,7 +1397,7 @@ static u64 kvm_hv_flush_tlb(struct kvm_vcpu *current_vcpu, u64 ingpa,
13971397
flush_request:
13981398
kvm_make_vcpus_request_mask(kvm,
13991399
KVM_REQ_TLB_FLUSH | KVM_REQUEST_NO_WAKEUP,
1400-
vcpu_bitmap, &hv_vcpu->tlb_lush);
1400+
vcpu_bitmap, &hv_vcpu->tlb_flush);
14011401

14021402
ret_success:
14031403
/* We always do full TLB flush, set rep_done = rep_cnt. */

0 commit comments

Comments
 (0)