• James Hogan's avatar
    MIPS: KVM: Use local_flush_icache_range to fix RI on XBurst · facaaec1
    James Hogan authored
    MIPS KVM uses mips32_SyncICache to synchronise the icache with the
    dcache after dynamically modifying guest instructions or writing guest
    exception vector. However this uses rdhwr to get the SYNCI step, which
    causes a reserved instruction exception on Ingenic XBurst cores.
    
    It would seem to make more sense to use local_flush_icache_range()
    instead which does the same thing but is more portable.
    Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Gleb Natapov <gleb@kernel.org>
    Cc: kvm@vger.kernel.org
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: linux-mips@linux-mips.org
    Cc: Sanjay Lal <sanjayl@kymasys.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    facaaec1
kvm_locore.S 14.3 KB