Skip to content

Commit 32eb12a

Browse files
James Hoganrkrcmar
authored andcommitted
KVM: MIPS: Flush KVM entry code from icache globally
Flush the KVM entry code from the icache on all CPUs, not just the one that built the entry code. Signed-off-by: James Hogan <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: "Radim Krčmář" <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: [email protected] Cc: [email protected] Cc: <[email protected]> # 3.16.x- Signed-off-by: Radim Krčmář <[email protected]>
1 parent 4c88145 commit 32eb12a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/mips/kvm/mips.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id)
360360
dump_handler("kvm_exit", gebase + 0x2000, vcpu->arch.vcpu_run);
361361

362362
/* Invalidate the icache for these ranges */
363-
local_flush_icache_range((unsigned long)gebase,
364-
(unsigned long)gebase + ALIGN(size, PAGE_SIZE));
363+
flush_icache_range((unsigned long)gebase,
364+
(unsigned long)gebase + ALIGN(size, PAGE_SIZE));
365365

366366
/*
367367
* Allocate comm page for guest kernel, a TLB will be reserved for

0 commit comments

Comments
 (0)